/* main.css */

:root {
	--lgt-blue: #083f58;
	--lgt-blue-75: rgb(26 62 86 / 75%);
	--lgt-blue-50: rgb(26 62 86 / 50%);
	/* --lgt-blue: #1a3e56; */
	--lgt-gray: #f0f3f7;
}

body {
	/* font-family: Arial, sans-serif; */
	font-family: 'proxima-nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	
}

h1 {
}

form {
	margin-bottom: 20px;
}

#response {
	color: red;
}

/* index page */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	/* font-family: Arial, sans-serif; */
}

body {
	/* background-color: #f0f4f8; */
	background-color: var(--lgt-gray);
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

body:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 50%;
	background: var(--lgt-blue);
	z-index: 1;
	position: fixed;
}

.container {
	z-index: 2;
}

.registration-container {
	background-color: #ffffff;
	padding: 32px;
	width: 380px;
	text-align: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	
	border-radius: 10px;
	box-shadow: 0 0 20px rgb(0 0 0 / 10%);
	
	margin-left: auto;
	margin-right: auto;
}

.registration-container input[name="code"] {
	text-align: center;
	/* text-align: left;
	text-indent: 101px; */
}

.logo {
	max-width: 140px;
	margin-bottom: 16px;
}

h1 {
	font-size: 24px;
	margin-bottom: 12px;
}

h2 {
	text-align: center;
}

p {
	margin-bottom: 24px;
}

form {
	margin-bottom: 16px;
}

input[type="text"] {
	width: 100%;
	padding: 14px;
	/* margin-bottom: 12px; */
	border: 1px solid #ccd1d9;
	/* background-color: #f9f9f9; */
	font-size: 16px;
}

button, .button {
	width: 100%;
	padding: 14px;
	background-color: #1d3557;
	color: white;
	border: none;
	font-size: 16px;
	cursor: pointer;
}

button:hover, .button:hover {
	background-color: #457b9d;
}

a {
	/* display: block; */
	color: #1d3557;
	text-decoration: none;
	margin-bottom: 20px;
}

a span {
	text-decoration: underline;
}

.info-box {
	background-color: #f0f8ff;
	padding: 12px;
	font-size: 14px;
	color: #4a4a4a;
}

/* form page */

/* Reset and base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
  }
  
  body {
	/* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; */
	line-height: 1.6;
	color: #333;
	/* background-color: #f5f5f5; */
  }
  
  /* Container styles */
  .container {
	max-width: 800px;
	max-width: 960px;
	max-width: 800px;
	margin: 0 auto;
	/* padding: 2rem; */
  }
  
  /* Header styles */
  .tour-header {
	text-align: center;
	margin-bottom: 2rem;
	background-color: #1a365d;
	color: white;
	padding: 2rem;
  }
  
  .tour-header img {
	max-width: 150px;
	max-width: 220px;
	margin-bottom: 1rem;
  }
  
  .tour-header h1 {
	font-size: 1.8rem;
	margin-bottom: 0.5rem;
  }
  
  .tour-header .tour-dates {
	font-size: 1.1rem;
	margin-bottom: 1rem;
  }
  
  .tour-code {
	background-color: rgba(255, 255, 255, 0.1);
	padding: 0.5rem 1rem;
	border-radius: 4px;
	display: inline-block;
  }
  
  /* Payment Schedule styles */
  .payment-schedule {
	background: white;
	border-radius: 8px;
	padding: 2rem;
	margin-bottom: 2rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	
	border-radius: 10px;
	box-shadow: 0 0 20px rgb(0 0 0 / 10%);
	
	border-radius: 10px;
	box-shadow: 0 5px 10px rgb(27 62 85 / 10%);
  }
  
  .payment-schedule h2 {
	color: #1a365d;
	margin-bottom: 1.5rem;
  }
  
  .payment-table {
	width: 100%;
	border-collapse: collapse;
  }
  
  .payment-table th,
  .payment-table td {
	padding: 0.75rem;
	border-bottom: 1px solid #e2e8f0;
	text-align: left;
  }
  
  .payment-notes {
	margin-top: 1.5rem;
	font-size: 0.9rem;
	color: #666;
  }
  
  /* Registration Form styles */
  .registration-form {
	background: white;
	border-radius: 8px;
	padding: 2rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	
	border-radius: 10px;
	box-shadow: 0 0 20px rgb(0 0 0 / 10%);
	
	border-radius: 10px;
	box-shadow: 0 5px 10px rgb(27 62 85 / 10%);
  }
  
  
  .payment-schedule, .registration-form {
	border-radius: 10px;
	box-shadow: 0 4px 12px rgb(27 62 85 / 7.5%);
	box-shadow: 0 4px 12px 1px rgb(27 62 85 / 10%);
	padding: 5.5rem; /* roo's design */
	padding: 4.5rem;
	padding: 3.5rem;
	padding: 5rem;
	padding: 4rem 5rem;
	margin-bottom: 2.5rem;
  }
  .registration-form h2 {
	color: #1a365d;
	margin-bottom: 1.5rem;
  }
  
  .form-section {
	margin-bottom: 2rem;
  }
  
  .form-section h3 {
	color: #1a365d;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	
	font-size: 1.65rem;
	font-size: 1.5rem;
	font-weight: 600;
  }
  
  .info-icon {
	color: #718096;
	cursor: help;
  }
  
  .form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
  }
  
  .form-field {
	margin-bottom: 1rem;
	margin-bottom: 1.5rem;
	margin-bottom: 1.55rem;
	position: relative;
  }
  
  .form-field label {
	display: block;
	margin-bottom: 0.5rem;
	color: #4a5568;
	font-weight: 500;
	
	display: inline-block;
	color: var(--lgt-blue);
	font-weight: 500;
	font-size: .9rem;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1rem;
  }
  
  .form-field input,
  .form-field select {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	font-size: 1rem;
	border: 1px solid rgb(28 62 85 / 15%);
  }
  
  .form-field input:focus,
  .form-field select:focus {
	outline: none;
	border-color: #4299e1;
	box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
  }
  
.required-field {
	color: #e53e3e;
	margin-left: 0.25rem;
	
	color: #ed8625;
	margin-left: 0.2rem;
	font-size: 1.3rem;
	vertical-align: top;
	line-height: 1rem;
	display: inline-block;
	margin-top: 2px;
	display: inline-block;
	color: var(--lgt-blue);
	color: rgb(28 62 85 / 50%);
}
  
  .passport-upload {
	background-color: #f7fafc;
	padding: 1.5rem;
	border-radius: 4px;
	border: 2px dashed #e2e8f0;
	text-align: center;
  }
  
  .submit-button {
	background-color: #1a365d;
	color: white;
	padding: 1rem 2rem;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
	width: 100%;
	margin-top: 2rem;
  }
  
  .submit-button:hover {
	background-color: #2c5282;
  }
  
  .terms-checkbox {
	margin-top: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
  }
  
  .terms-checkbox input[type="checkbox"] {
	width: auto;
  }
  
  /* Footer styles */
  .tour-footer {
	text-align: center;
	margin-top: 2rem;
	/* padding: 2rem; */
	color: #718096;
  }
  
  .partner-logos {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	margin-top: 1rem;
  }
  
  .partner-logos img {
	height: 30px;
	object-fit: contain;
  }
  
  /* Base styles */
body {
	/* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; */
	line-height: 1.6;
	color: #333;
	margin: 0;
	padding: 0;
	/* background: linear-gradient(to bottom, var(--lgt-blue) 500px, var(--lgt-gray) 500px); */
  }
  
  .container {
	max-width: 800px;
	max-width: 960px;
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem;
	padding: 2rem 0;
  }
  
  /* Tour Header - now transparent */
  .tour-header {
	text-align: center;
	margin-bottom: 2rem;
	color: white;
	padding: 2rem;
	background: transparent;
  }
  
  /* Modified grid systems */
  .form-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
  }
  
  .form-grid-3 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1rem;
  }
  
  /* Section dividers */
  .section-divider {
	border: 0;
	border-top: 1px solid #e2e8f0;
	margin: 2rem 0;
  }
  
  /* Passport name warning */
  .passport-name-warning {
	background-color: #fff3cd;
	border: 1px solid #ffeeba;
	color: #856404;
	padding: 0.75rem;
	margin: 1rem 0;
	border-radius: 4px;
	font-size: 0.9rem;
  }
  
  /* Grays out disabled passport fields */
.passport-fields input.disabled,
.passport-fields select.disabled {
	/* background-color: #f0f0f0; */
	/* color: #999; */
	pointer-events: none;
	color: rgb(0 0 0 / 20%);
	color: transparent;
	user-select: none;
}

label {
	user-select: none;
}

  
  /* Rest of the CSS remains the same */
    
  .passport-skip-checkbox {
	font-size: .9rem;
	margin-bottom: 20px;
  }
  
  .passport-skip-checkbox .explanation {
	font-size: .8rem;
	display: block;
  }
  
  /* receipt */
  
  :root {
	--lgt-blue: #1a3e56;
	--lgt-gray: #f0f3f7;
}

body {
	font-family: 'proxima-nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	/* background: linear-gradient(to bottom, var(--lgt-blue) 500px, var(--lgt-gray) 500px); */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 24px;
}

.receipt-container {
	background: white;
	border-radius: 10px;
	box-shadow: 0 5px 10px rgb(27 62 85 / 10%);
	width: 100%;
	max-width: 720px;
	padding: 32px;
	text-align: center;
	padding: 4rem;
	margin-left: auto;
	margin-right: auto;
}

.logo {
	max-width: 140px;
	margin-bottom: 48px;
}

h1 {
	/* color: var(--lgt-blue); */
	font-size: 32px;
	font-weight: 600;
	margin-bottom: 24px;
}

.message {
	color: #666;
	max-width: 560px;
	margin: 0 auto 48px;
	line-height: 1.6;
}

.details-box {
	background: var(--lgt-gray);
	border-radius: 8px;
	padding: 32px;
	margin-bottom: 48px;
	text-align: left;
}

.details-grid {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px;
	line-height: 1.8;
}

.details-label {
	color: #666;
}

.details-value {
	color: #333;
}

h2 {
	/* color: var(--lgt-blue); */
	font-size: 24px;
	font-weight: 600;
	
	margin-bottom: 16px;
	font-size: 2.2rem;
	line-height: 1;
	font-weight: 600;
}

.register-more {
	color: #666;
	margin-bottom: 24px;
	line-height: 1.6;
}

.new-registration-btn {
	display: inline-block;
	border: 1px solid var(--lgt-blue);
	color: var(--lgt-blue);
	padding: 12px 32px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
}

.new-registration-btn:hover {
	background: var(--lgt-blue);
	color: white;
}

/* form errors */

:root {
	--error-color: #f44336;
}

/* Form validation styles */
.field-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    /* display: none; */
}

.error-field {
	border-color: var(--error-color) !important;
}

.field-error {
    opacity: 0;
    transition: opacity 150ms ease-in-out;
	
	position: absolute;
	bottom: -21px;
	font-size: .8rem;
}

.field-error.show {
    opacity: 1;
}

.form-error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #dc2626;
    border-radius: 0.25rem;
    background-color: #fee2e2;
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* progress bar */

/* Progress Bar Container */
.form-progress {
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem;
	padding: 10px 10px 30px;
	padding: 12px 10px 35px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
	/* border-bottom: 1px solid #ccc; */
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto 2rem;
    max-width: 800px;
}

/* Progress Step */
.progress-step {
    position: relative;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    flex: 1;
    cursor: pointer;
}

.progress-step:last-child {
    flex: 0;
}

:root {
	--progress-yay: #bade47;
	--progress-nay: #f44336;
	--progress-fill: #afbdcd;
}

/* Progress Circle */
.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #ccc;
	border: 3px solid var(--progress-fill);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
	
	border: 2px solid var(--progress-fill);
}

.progress-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-circle.complete {
    border-color: #4CAF50;
    background-color: #4CAF50;
    border-color: var(--progress-yay);
    background-color: var(--progress-yay);
}

.progress-circleX.complete::after {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234CAF50' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
}

.progress-circle.complete::after {
    opacity: 1;
    background-image: url('/images/check-mark-white.svg');
}

.progress-circle.error {
    border-color: #f44336;
    background-color: #f44336;
    border-color: var(--progress-nay);
    background-color: var(--progress-nay);
}

.progress-circleX.error::after {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f44336' d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
}

.progress-circle.error::after {
    opacity: 1;
    background-image: url('/images/exclamation-mark-white.svg');
}


/* Progress Line */
.progress-line {
    position: absolute;
    height: 3px;
    /* height: 6px; */
    background-color: var(--lgt-gray);
    width: 100%;
    /* left: 50%; */
	width: calc(100% - 36px);
	left: 38px;
    top: 14px;
    top: 19px;
    /* top: 13px; */
    z-index: 0;
	
	height: 2px;
	top: 20px;
}

.progress-step:first-child .progress-line {
    /* width: 50%; */
    /* left: 50%; */
}

.progress-step:last-child .progress-line {
    display: none;
}

.progress-line-fill {
    height: 100%;
    width: 0;
    background-color: #4CAF50;
    background-color: var(--progress-fill);
    transition: width 0.3s ease;
	border-radius: 0 10px 10px 0;
}

.progress-circle.complete + .progress-line .progress-line-fill {
    background-color: #4CAF50;
    background-color: var(--progress-yay);
}

.progress-line-fill.error {
    background-color: #f44336;
    background-color: var(--progress-nay);
}

/* Step Label */
.progress-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    transition: font-weight 0.3s ease;
	
	position: absolute;
	bottom: -30px;
	left: 50%;
	transform: translateX(-50%);
	
	font-size: .9rem;
	color: var(--lgt-blue);
	color: #b0bdcd;
	/* font-weight: 600; */
	bottom: -34px;
	bottom: -30px;
}

.progress-step.current .progress-label {
    font-weight: 600;
	color: var(--lgt-blue);
}

.progress-step.current .progress-circle {
	/* box-shadow: 0 0 0 6px rgb(0 0 0 / 5%); */
	border-color: rgb(0 0 0 / 24%);
}

/* passport drop zone */

/* Passport Upload Styling */
.passport-upload.upload-drop-zone {
    border: 2px dashed #ccc;
    border: 1px solid rgb(28 62 85 / 6%);
    background-color: var(--lgt-gray);
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: border-color 0.15s ease;
    margin-top: 20px;
}

.passport-upload.upload-drop-zone.drag-over {
    border-color: #007bff;
}

.passport-upload .upload-icon {
    margin-bottom: 10px;
	position: absolute;
	opacity: .2;
	pointer-events: none;
}

.passport-upload .upload-text {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
}

.passport-upload .upload-instructions {
    color: #aaa;
    margin-bottom: 10px;
}

.passport-upload .browse-files-btn {
    background-color: var(--lgt-blue);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    width: auto;
    display: inline-block;
}

.passport-upload .browse-files-btn:hover {
    opacity: 0.9;
}

.passport-icon {
	width: 70px;
}

.passport-upload .upload-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
}

.passport-upload .remove-file-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    width: auto;
    display: inline-flex;
    align-items: center;
}

.passport-upload .remove-file-btn:hover {
    opacity: 0.8;
}

footer {
	color: var(--lgt-blue-75);
}

footer .button-outline {
    background-color: transparent;
    color: var(--lgt-blue);
    border: 1px solid var(--lgt-blue);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    width: auto;
    display: inline-block;
	font-weight: 600;
}

footer .copyright {
	font-size: .75rem;
	
}