/* Modern Registration Form Styles */

/* === CSS Variables for Theme === */
:root {
    --primary-green: #46b450;
    --primary-green-dark: #3a9a3d;
    --primary-green-light: #6bc86f;
    --primary-green-lighter: #e8f5e9;
    --text-black: #1a1a1a;
    --text-gray: #4a4a4a;
    --text-light-gray: #6b6b6b;
    --border-color: #e0e0e0;
    --border-color-dark: #d0d0d0;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-gray: #f5f5f5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === General Form Styles === */
.registration-form {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-black);
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.registration-form-container {
    max-width: 100%;
    padding: 1rem;
    box-sizing: border-box;
}

/* === Step Progress Indicator === */
.step-progress {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
    padding: 1rem 0;
}

.step-progress:before {
    content: '';
    position: absolute;
    top: 24px;
    left: 18px;
    right: 18px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-green) 0%, var(--border-color) 0%);
    background-size: 100% 3px;
    z-index: 1;
    border-radius: 2px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1 1 0;
    min-width: 0;
    padding: 0 5px;
    box-sizing: border-box;
    text-align: center;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    color: var(--text-gray);
}

.step-label {
    width: 100%;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 5px;
    color: var(--text-light-gray);
    font-weight: 500;
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Step Status Styles */
.step-item.active .step-circle {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    border-color: var(--primary-green);
    color: white;
    box-shadow: 0 4px 12px rgba(70, 180, 80, 0.3);
    transform: scale(1.1);
}

.step-item.active .step-label {
    color: var(--primary-green);
    font-weight: 600;
}

.step-item.completed .step-circle {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    border-color: var(--primary-green);
    color: white;
    box-shadow: var(--shadow-sm);
}

.step-item.completed .step-label {
    color: var(--text-gray);
}

/* === Step 1: Terms === */
.terms-container {
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.terms-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    margin: 1.5rem 0;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) var(--bg-light);
}

.terms-content::-webkit-scrollbar {
    width: 8px;
}

.terms-content::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

.terms-agreement {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--primary-green-lighter);
    border-radius: var(--radius-md);
    border: 1px solid var(--primary-green-light);
}

.terms-agreement label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-black);
}

.terms-agreement input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-green);
}

.terms-checkbox-container {
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.terms-checkboxes {
    margin: 1.5rem 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.term-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.term-item:hover {
    background: var(--bg-light);
}

.term-item:last-child {
    border-bottom: none;
}

.term-item label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
}

.term-checkbox {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--primary-green);
}

.term-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.term-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-black);
    font-size: 15px;
}

.term-description {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-black);
}

/* === Step 2: Participants Information === */
.representative-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-section {
    flex: 1 1 100%;
    min-width: 280px;
    margin-bottom: 1rem;
}

.contact-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-black);
    font-size: 1.25rem;
    font-weight: 600;
}

.email-row, .phone-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.email-row input, .phone-row input {
    flex-grow: 1;
    width: auto;
    box-sizing: border-box;
    height: 44px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-black);
}

.email-row input:focus, .phone-row input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(70, 180, 80, 0.1);
}

.remove-email, .remove-phone {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    font-weight: 500;
    transition: var(--transition);
    height: 44px;
}

.remove-email:hover, .remove-phone:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.add-contact-btn {
    margin-top: 8px;
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
}

.add-contact-btn:hover {
    background: var(--primary-green-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.field-description {
    font-size: 0.875rem;
    color: var(--text-light-gray);
    margin-top: 6px;
}

.phone-warning {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: -5px;
    margin-bottom: 5px;
    display: none;
}

.invalid-phone {
    border-color: #ef4444 !important;
}

.preference-description-box {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.preference-description-box h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    color: var(--text-black);
    font-weight: 600;
}

.preference-description-box p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-gray);
}

.preference-description-box p:last-child {
    margin-bottom: 0;
}

/* Participant Rows */
.participant-row {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.participant-row:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green-light);
}

.participant-fields {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.field-group {
    flex: 1 1 180px;
    min-width: 150px;
    display: flex;
    flex-direction: column;
}

.field-group.gender-field {
    flex: 0 0 140px;
    min-width: 140px;
    max-width: 140px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-black);
    font-size: 14px;
}

.field-group input[type="text"],
.field-group input[type="date"],
.field-group input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-black);
}

.field-group select {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    line-height: 1.5;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-black);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.field-group input[type="text"]:focus,
.field-group input[type="date"]:focus,
.field-group input[type="number"]:focus,
.field-group select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(70, 180, 80, 0.1);
}

/* Birthdate Fields - Three Input Layout */
.birthdate-group {
    flex: 1 1 280px;
    min-width: 280px;
    max-width: 100%;
}

.birthdate-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    flex-wrap: nowrap;
}

.birthdate-field {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.birthdate-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-black);
    font-size: 12px;
    white-space: nowrap;
}

.birthdate-input {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0.5rem 0.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-black);
    text-align: center;
}

.birthdate-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(70, 180, 80, 0.1);
}

.birthdate-input::-webkit-inner-spin-button,
.birthdate-input::-webkit-outer-spin-button {
    opacity: 1;
    cursor: pointer;
}

input[type="date"] {
    appearance: textfield;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    min-height: 44px;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
    margin: 0;
    cursor: pointer;
}

/* Family Room Preference Section - New Single Checkbox Design */
.family-room-preference-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.family-room-preference-section:hover {
    border-color: var(--primary-green-light);
    box-shadow: var(--shadow-md);
}

.family-room-checkbox-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.family-room-main-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.family-room-main-label:hover {
    background: rgba(70, 180, 80, 0.05);
}

.family-room-main-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    margin-top: 2px;
    accent-color: var(--primary-green);
    cursor: pointer;
    flex-shrink: 0;
}

.family-room-label-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-black);
}

.family-room-label-text strong {
    font-weight: 600;
    color: var(--text-black);
}

.family-room-description {
    margin: 0;
    padding-left: 2rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-gray);
}

.family-room-description strong {
    color: var(--text-black);
}

/* Legacy styles - keeping for backward compatibility but not used in new design */
.field-group.family-room-preference {
    flex-grow: 0;
    flex-basis: auto;
    min-width: 150px;
    align-self: center;
    padding-top: 24px;
}

.family-room-preference label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
}

.family-room-preference input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-green);
}

.remove-participant {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    height: fit-content;
    flex-shrink: 0;
    font-weight: 500;
    transition: var(--transition);
}

.remove-participant:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

#add-participant {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    margin-top: 1rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

#add-participant:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.apply-all-row {
    border-bottom: 2px dashed var(--border-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-top: none;
    border-left: none;
    border-right: none;
}

.apply-all-row .participant-fields {
    justify-content: flex-end;
}

.apply-all-row .field-group.empty-field {
    visibility: hidden;
}

/* === Step 3: Participation Type === */
.participant-type-selection {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.participant-type-selection h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-black);
}

.radio-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-black);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.radio-group label:hover {
    background: var(--bg-light);
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-green);
    cursor: pointer;
}

.date-selection-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-light);
}

.date-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 1rem 0;
}

.date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    position: relative;
    background: var(--bg-white);
    font-weight: 500;
    color: var(--text-black);
}

.date-box input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.date-box.selected {
    border-color: var(--primary-green);
    background: var(--primary-green-lighter);
    font-weight: 600;
    color: var(--primary-green-dark);
    box-shadow: 0 0 0 3px rgba(70, 180, 80, 0.1);
    transform: scale(1.05);
}

.date-box:hover {
    border-color: var(--primary-green);
    background: var(--primary-green-lighter);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* === Step 4: Food Preferences === */
.food-options-section {
    margin: 2rem 0;
}

.participant-food-options {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.participant-food-options h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-black);
    font-size: 1.1rem;
}

.participant-food-options label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-black);
    font-size: 14px;
}

.participant-food-options textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 80px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    line-height: 1.5;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-black);
    resize: vertical;
}

.participant-food-options textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(70, 180, 80, 0.1);
}

.global-preference {
    margin: 1rem 0 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
}

.checkbox-label input[type="checkbox"] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--primary-green);
}

.preference-content {
    display: flex;
    flex-direction: column;
}

.preference-title {
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 4px;
}

.preference-description {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.meal-options {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.date-meals-container {
    margin-top: 1rem;
}

.date-meal-row {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.date-meal-row:last-child {
    border-bottom: none;
}

.date-label {
    flex: 0 0 100px;
    font-weight: 600;
    color: var(--text-black);
}

.meal-checkboxes {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meal-checkboxes label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-black);
}

.meal-checkboxes input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-green);
}

/* === Form Navigation === */
.form-navigation {
    margin-top: 2.5rem;
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.back-button {
    margin-right: auto;
    order: 0;
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.back-button:hover:not(:disabled) {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.next-button,
.submit-button {
    margin-left: auto;
    order: 1;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(70, 180, 80, 0.3);
}

.next-button:hover:not(:disabled),
.submit-button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, #2d7a30 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 180, 80, 0.4);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.submit-button:disabled {
    background: var(--bg-gray);
    color: var(--text-light-gray);
    opacity: 0.6;
    box-shadow: none;
}

.submit-button:disabled:hover {
    transform: none;
    box-shadow: none;
    background: var(--bg-gray);
}

/* === Step 6: Review & Confirmation === */
.confirmation-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.additional-info-list {
    margin-top: 1rem;
}

.participant-additional-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-green);
}

.participant-additional-info:last-child {
    margin-bottom: 0;
}

.participant-additional-info h4 {
    margin: 0 0 0.75rem 0;
    color: var(--primary-green);
    font-size: 16px;
    font-weight: 600;
}

.participant-additional-info .info-details {
    margin: 0;
    padding-left: 1.5rem;
    list-style: disc;
}

.participant-additional-info .info-details li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-black);
}

.participant-additional-info .info-details li:last-child {
    margin-bottom: 0;
}

.participant-additional-info .info-details li strong {
    color: var(--text-black);
    font-weight: 600;
}

.confirmation-section h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: var(--text-black);
    font-size: 1.25rem;
    font-weight: 600;
}

.confirmation-section p {
    margin-bottom: 0.75rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.confirmation-section p strong {
    color: var(--text-black);
    font-weight: 600;
}

.confirmation-section ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    color: var(--text-gray);
}

.confirmation-section ul li {
    margin-bottom: 0.5rem;
}

.participants-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.participants-table thead {
    background: var(--primary-green-lighter);
}

.participants-table thead tr:first-child th:first-child {
    border-top-left-radius: var(--radius-lg);
}

.participants-table thead tr:first-child th:last-child {
    border-top-right-radius: var(--radius-lg);
}

.participants-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-black);
    font-size: 14px;
    border-bottom: 2px solid var(--primary-green);
}

.participants-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 14px;
}

.participants-table tbody tr:hover {
    background: var(--bg-light);
}

.participants-table tbody tr:last-child td {
    border-bottom: none;
}

.participants-table tfoot {
    background: var(--bg-light);
    font-weight: 600;
}

.participants-table tfoot tr:first-child td {
    border-top: 2px solid var(--border-color);
}

.participants-table tfoot td {
    padding: 1.25rem 1rem;
    color: var(--text-black);
    border-bottom: none;
}

.participants-table tfoot tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius-lg);
}

.participants-table tfoot tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius-lg);
}

.participants-table tfoot tr:last-child td {
    background: var(--primary-green-lighter);
    color: var(--primary-green-dark);
    font-size: 18px;
    border-top: 2px solid var(--primary-green);
    padding: 1.5rem 1rem;
}

.donation-row-table {
    background: var(--bg-light);
}

.donation-row-table td {
    padding: 1.25rem 1rem;
    border-top: 1px solid var(--border-color);
}

.donation-cell {
    text-align: right !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.donation-cell label {
    font-weight: 600;
    color: var(--text-black);
    white-space: nowrap;
    margin: 0;
}

.donation-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.donation-input-group input[type="number"] {
    width: 100px;
    padding: 0.625rem 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-black);
}

.donation-input-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(70, 180, 80, 0.1);
}

.donation-input-group span {
    font-weight: 600;
    color: var(--text-gray);
    font-size: 14px;
}

.donation-display-cell {
    text-align: left !important;
}

.donation-display {
    font-weight: 600;
    color: var(--primary-green-dark);
    font-size: 15px;
}

.total-row-table td {
    border-top: 1px solid var(--border-color);
}

.total-amount {
    font-weight: 700;
    color: var(--primary-green-dark);
    font-size: 18px;
}

.address-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.address-form .field-group {
    flex: 1 1 300px;
    min-width: 250px;
}

.address-form .field-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-black);
    font-size: 14px;
}

.address-form .field-group .required {
    color: #ef4444;
}

.address-form .field-group input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-black);
    box-sizing: border-box;
}

.address-form .field-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(70, 180, 80, 0.1);
}

/* === Registration Success/Error Pages === */
.registration-success-container,
.registration-error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 2rem 1rem;
}

.registration-success,
.registration-error {
    max-width: 600px;
    width: 100%;
    padding: 3rem 2.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.registration-success {
    border-top: 4px solid var(--primary-green);
}

.registration-error {
    border-top: 4px solid #ef4444;
}

.success-icon,
.error-icon {
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
}

.success-icon svg,
.error-icon svg {
    display: block;
    margin: 0 auto;
}

.registration-success h2,
.registration-error h2 {
    margin: 0 0 1rem 0;
    color: var(--text-black);
    font-size: 1.75rem;
    font-weight: 700;
}

.success-message,
.error-message {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.success-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--primary-green-lighter);
    border-radius: var(--radius-md);
    border: 1px solid var(--primary-green-light);
    text-align: left;
}

.success-details p {
    margin-bottom: 0.75rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.success-details p:last-child {
    margin-bottom: 0;
}

.success-details strong {
    color: var(--text-black);
    font-weight: 600;
}

.email-address {
    font-weight: 600;
    color: var(--primary-green-dark);
    word-break: break-word;
}

.error-details {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #fef2f2;
    border-radius: var(--radius-md);
    border: 1px solid #fecaca;
    color: #991b1b;
    line-height: 1.6;
}

.error-details strong {
    color: #dc2626;
    font-weight: 600;
}

.registration-error .back-button {
    margin-top: 1.5rem;
}

.download-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.download-pdf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(70, 180, 80, 0.3);
}

.download-pdf-button:hover {
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, #2d7a30 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 180, 80, 0.4);
    color: white;
    text-decoration: none;
}

.download-pdf-button svg {
    flex-shrink: 0;
}

/* === Step 5: Contributions === */
.contribution-options-section {
    margin-bottom: 2rem;
}

.participant-contribution-options {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.participant-contribution-options h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-black);
    font-weight: 600;
    font-size: 1.125rem;
}

.option-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.option-box {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    width: 180px;
    min-height: 100px;
    height: 100px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.option-box:hover {
    border-color: var(--primary-green);
    background: var(--primary-green-lighter);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.option-box.selected {
    border-color: var(--primary-green);
    background: var(--primary-green-lighter);
    box-shadow: 0 0 0 3px rgba(70, 180, 80, 0.1);
}

.option-box input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-box span {
    font-size: 14px;
    color: var(--text-black);
    pointer-events: none;
    font-weight: 500;
    line-height: 1.4;
}

/* Custom tooltip for option boxes */
.option-box[data-tooltip] {
    cursor: help;
    position: relative;
}

.option-box[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    max-width: 250px;
    white-space: normal;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.option-box[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    pointer-events: none;
}

.other-contribution {
    margin-top: 1.5rem;
    width: 100%;
}

.other-contribution label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-black);
}

.other-contribution input[type="text"] {
    width: 100%;
    max-width: 500px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-black);
}

.other-contribution input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(70, 180, 80, 0.1);
}

/* === Responsiveness === */
@media screen and (max-width: 767px) {
    .registration-form {
        padding: 1rem;
    }

    .step-item .step-label {
        font-size: 10px;
        min-height: 2.4em;
        line-height: 1.3;
    }

    .step-progress:before {
        left: 16px;
        right: 16px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .representative-contact {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .contact-section {
        min-width: 0;
    }

    .participant-fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        width: 100%;
    }

    .field-group {
        min-width: 0;
        margin-right: 0;
        width: 100%;
        padding-top: 0;
        align-self: start;
    }

    .field-group.family-room-preference {
        grid-column: span 2;
        justify-self: start;
        padding-top: 8px;
        min-width: 0;
    }

    .field-group.gender-field {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
    }

    .birthdate-group {
        grid-column: span 2;
    }

    .birthdate-inputs {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.5rem;
    }

    .birthdate-field {
        min-width: 0;
    }

    .birthdate-input {
        font-size: 14px;
        padding: 0.5rem 0.25rem;
    }

    .family-room-preference-section {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }

    .family-room-main-label {
        gap: 0.5rem;
    }

    .family-room-main-label input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }

    .family-room-label-text {
        font-size: 0.9375rem;
    }

    .family-room-description {
        padding-left: 1.75rem;
        font-size: 0.8125rem;
    }

    .participant-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }

    .remove-participant {
        margin-top: 0.75rem;
        align-self: flex-end;
    }

    .apply-all-row .field-group.empty-field {
        display: none;
    }

    .apply-all-row .field-group.family-room-preference {
        grid-column: span 2;
        justify-self: start;
    }

    input[type="text"],
    input[type="email"],
    input[type="date"],
    input[type="tel"],
    select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .date-boxes {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }

    .date-box {
        width: auto;
        min-height: 70px;
        padding: 8px;
        font-size: 13px;
    }

    .date-meal-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1rem;
    }

    .date-label {
        margin-bottom: 8px;
        flex-basis: auto;
    }

    .meal-checkboxes {
        flex-wrap: wrap;
    }

    .meal-checkboxes label {
        margin-right: 1rem;
        margin-bottom: 0.5rem;
    }

    .form-navigation {
        flex-direction: column;
    }

    .form-navigation button {
        width: 100%;
        padding: 1rem;
        font-size: 16px;
    }

    .back-button {
        order: 1;
    }

    .next-button,
    .submit-button {
        order: 0;
    }

    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .radio-group label {
        margin-bottom: 0;
    }

    .option-box {
        width: 100%;
        min-height: 90px;
        height: 90px;
    }

    .other-contribution input[type="text"] {
        width: 100%;
        max-width: 100%;
    }

    .donation-cell {
        flex-direction: column;
        align-items: flex-end !important;
        gap: 0.75rem;
    }

    .donation-input-group {
        width: 100%;
        max-width: 200px;
    }

    .donation-input-group input[type="number"] {
        width: 100%;
    }

    .address-form {
        flex-direction: column;
    }

    .address-form .field-group {
        flex: 1 1 100%;
        min-width: 0;
    }

    .registration-success,
    .registration-error {
        padding: 2rem 1.5rem;
    }

    .registration-success h2,
    .registration-error h2 {
        font-size: 1.5rem;
    }

    /* Make table responsive on mobile */
    .participants-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .participants-table thead,
    .participants-table tbody,
    .participants-table tfoot,
    .participants-table tr {
        display: block;
    }

    .participants-table thead {
        display: none;
    }

    .participants-table tbody tr {
        display: block;
        margin-bottom: 1.5rem;
        padding: 1rem;
        background: var(--bg-white);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }

    .participants-table tbody td {
        display: block;
        padding: 0.5rem 0;
        text-align: left !important;
        border-bottom: 1px solid var(--border-color);
        border: none;
    }

    .participants-table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-black);
        display: inline-block;
        width: 100px;
        margin-right: 0.5rem;
    }

    .participants-table tbody td:last-child {
        border-bottom: none;
    }

    .participants-table tfoot {
        display: block;
        margin-top: 1.5rem;
    }

    .participants-table tfoot tr {
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
        background: var(--bg-light);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
    }

    .participants-table tfoot td {
        display: block;
        padding: 0.5rem 0;
        text-align: left !important;
        border: none;
    }

    .participants-table tfoot tr:last-child {
        background: var(--primary-green-lighter);
        border: 2px solid var(--primary-green);
        padding: 1.25rem;
    }

    .donation-row-table {
        display: block;
        margin-bottom: 1rem;
    }

    .donation-row-table td {
        display: block;
        padding: 0.75rem 0;
        border: none;
    }

    .donation-cell {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem;
        text-align: left !important;
    }

    .donation-display-cell {
        text-align: left !important;
        padding-top: 0.5rem;
    }

    .total-row-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .date-boxes {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media screen and (min-width: 1024px) {
    .contact-section {
        flex-basis: calc(50% - 0.75rem);
        flex-grow: 1;
    }

    .participant-fields {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .field-group {
        flex: 1 1 180px;
        width: auto;
    }

    .field-group.family-room-preference {
        flex-grow: 0;
        flex-basis: auto;
        min-width: 150px;
        align-self: center;
        padding-top: 24px;
    }

    .apply-all-row .field-group.empty-field {
        display: block;
        visibility: hidden;
    }
}

/* Price Display Styles */
.price-display {
    font-size: 0.9em;
    color: #666;
    font-weight: normal;
    margin-left: 8px;
}

.participant-price-summary {
    margin-top: 15px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 4px;
    border-left: 3px solid #0073aa;
}

.participant-price-summary strong {
    color: #0073aa;
    font-size: 1.05em;
}

#calculated-price {
    color: #0073aa;
    font-size: 1.1em;
}
