/* Registration Form Page Styles */

/* Form Page Specific Styles */
.form-page {
    background-color: var(--lynne-white);
    min-height: 100vh;
}

/* Registration page specific hero section styling */
.form-page .hero-section {
    background-color: #f3f2f2;
}

.form-page .header {
    padding-bottom: 1px;
}

.form-title-section {
    text-align: center;
    padding: 40px 0 30px;
}

.form-main-title {
    font-family: 'Didot', serif;
    font-size: 39px;
    font-weight: 400;
    line-height: 1;
    color: #000000;
    margin: 0 0 15px 0;
}

.form-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;
    color: var(--lynne-text-brown);
    margin: 0;
}

.form-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 144px 80px;
}

.registration-form {
    background-color: var(--lynne-white);
    /* border: 1px solid var(--lynne-primary-variant-2-light); */
    /* border-radius: var(--lynne-border-radius); */
    /* padding: 40px; */
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid var(--lynne-primary-variant-2-light);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-family: 'Didot', serif;
    font-size: 31px;
    font-weight: 400;
    line-height: 1;
    color: var(--lynne-primary);
    margin: 0 0 20px 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    color: #000000;
    margin-bottom: 8px;
}

/* Apply typography to form labels */
.form-label,
.form-input,
.form-select,
.form-textarea,
.option-label span,
.waiver-text,
.submit-button,
.back-link,
.waiver-list,
.waiver-btn,
.country-code-select select {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;
}

.form-hint {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.2;
    color: #777;
    margin: 0 0 8px 0;
}

.form-label {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    color: #000000;
    background-color: #f2f2f2;
    border: none;
    border-radius: var(--lynne-border-radius);
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

/* Phone input with country code */
.phone-input-wrapper {
    display: flex;
    gap: 8px;
    width: 100%;
}

.country-code-select {
    position: relative;
    flex-shrink: 0;
    width: 130px;
}

.country-code-select select {
    width: 100%;
    padding: 12px 8px 12px 36px;
    color: #000000;
    background-color: #f2f2f2;
    border: none;
    border-radius: var(--lynne-border-radius);
    cursor: pointer;
    appearance: none;
    transition: background-color 0.3s ease;
}

.country-code-select select:focus {
    outline: none;
    background-color: #fff8f6;
}

.country-flag {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    pointer-events: none;
    box-shadow: 0 0 1px rgba(0,0,0,0.2);
}

.phone-input-wrapper .form-input {
    flex: 1;
    min-width: 0;
}

/* Dropdown arrow for country select */
.country-code-select::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #000000;
    pointer-events: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    /* background-color: var(--lynne-white); */
    background-color: #fff8f6;
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.inline-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.option-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000000;
    cursor: pointer;
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--lynne-primary);
}

.waiver-text {
    color: var(--lynne-text-brown);
    padding: 16px;
    background-color: var(--schemes-surface-container-low-light);
    border-radius: var(--lynne-border-radius);
    margin-bottom: 20px;
}

.form-footer {
    margin-top: 40px;
    text-align: center;
}

.submit-button {
    background-color: var(--lynne-primary-variant-2-light);
    color: #000000;
    padding: 9px 16px;
    border: none;
    border-radius: var(--lynne-border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 22.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.submit-button:hover {
    background-color: #bdb2a5;
}

.back-link {
    display: inline-block;
    color: var(--lynne-primary);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--lynne-on-primary-container);
}

.back-link::before {
    content: "← ";
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .form-container {
        padding: 0 80px 60px;
    }
}

@media screen and (max-width: 768px) {
    .form-container {
        padding: 0 40px 40px;
    }
    
    /* .registration-form {
        padding: 30px 24px;
    } */
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-brand-name {
        font-size: 39px;
    }
    
    .form-tagline {
        font-size: 24px;
    }
    
    .form-main-title {
        font-size: 31px;
    }
    
    .phone-input-wrapper {
        flex-direction: row;
    }
    
    .country-code-select {
        width: 110px;
    }
}

@media screen and (max-width: 480px) {
    .form-container {
        padding: 0 20px 40px;
    }
    
    /* .registration-form {
        padding: 24px 16px;
    } */
    
    .form-brand-name {
        font-size: 31px;
    }
    
    .form-tagline {
        font-size: 20px;
    }
    
    .form-main-title {
        font-size: 24px;
    }
    
    .inline-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .country-code-select {
        width: 100px;
    }
    
    .country-code-select select {
        padding-left: 32px;
        font-size: 13px;
    }
}

/* Modal Styles */
.waiver-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.waiver-modal-content {
    background-color: var(--lynne-white);
    margin: 2% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.waiver-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: var(--lynne-primary);
    background-color: #C2272D;
    color: var(--lynne-white);
    border-radius: 8px 8px 0 0;
}

.waiver-modal-title {
    font-family: 'Didot', serif;
    font-size: 31px;
    font-weight: 400;
    line-height: 1;
    margin: 0;
    color: var(--lynne-white);
}

.waiver-modal-close {
    background: none;
    border: none;
    color: var(--lynne-white);
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.waiver-modal-close:hover {
    transform: scale(1.2);
}

.waiver-modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.waiver-modal-body::-webkit-scrollbar {
    width: 8px;
}

.waiver-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.waiver-modal-body::-webkit-scrollbar-thumb {
    background: var(--lynne-primary);
    border-radius: 4px;
}

.waiver-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--lynne-accent);
}

.waiver-section {
    margin-bottom: 30px;
}

.waiver-section:last-child {
    margin-bottom: 0;
}

.waiver-section-title {
    font-family: 'Didot', serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--lynne-primary);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--lynne-primary);
}

.waiver-subtitle {
    font-family: 'Didot', serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--lynne-primary);
    margin: 20px 0 12px 0;
}

.waiver-text {
    color: var(--lynne-text-brown);
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.waiver-list {
    color: var(--lynne-text-brown);
    padding-left: 24px;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.waiver-list li {
    margin-bottom: 8px;
}

.waiver-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
}

.waiver-btn {
    background-color: var(--lynne-primary-variant-2-light);
    color: #000000;
    padding: 9px 16px;
    border: none;
    border-radius: var(--lynne-border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 22.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.waiver-btn:hover {
    background-color: #bdb2a5;
}

.waiver-btn-primary {
    background-color: #380D00;
    color: white;
    padding: 9px 16px;
    border: none;
    border-radius: var(--lynne-border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 22.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.waiver-btn-primary:hover {
    background-color: #C2272D;
}

.waiver-btn-secondary {
    /* Same style as base waiver-btn */
}

/* Modal Responsive Styles */
@media screen and (max-width: 768px) {
    .waiver-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .waiver-modal-header {
        padding: 15px 20px;
    }
    
    .waiver-modal-title {
        font-size: 22px;
    }
    
    .waiver-modal-body {
        padding: 20px;
        max-height: 60vh;
    }
    
    .waiver-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .waiver-btn {
        width: 100%;
    }
}

/* =============================================
   PAYMENT PAGE STYLES
   ============================================= */

.payment-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

/* Order Summary */
.order-summary {
    /* background-color: var(--schemes-surface-container-low-light); */
    background-color: #ECE9E0;
    border-radius: var(--lynne-border-radius);
    padding: 30px;
    position: sticky;
    top: 20px;
}

.summary-title {
    color: var(--lynne-primary);
    margin: 0 0 25px 0;
}

.summary-section {
    margin-bottom: 25px;
}

.summary-subtitle {
    color: var(--lynne-primary);
    margin: 0 0 15px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
}

.summary-label {
    color: var(--lynne-text-brown);
    flex-shrink: 0;
}

.summary-value {
    color: #000000;
    text-align: right;
    word-break: break-word;
}

.summary-divider {
    height: 1px;
    background-color: var(--lynne-primary-variant-2-light);
    margin: 20px 0;
}

.summary-pricing {
    margin-top: 25px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.price-label,
.price-value {
    color: var(--lynne-text-brown);
}

.total-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--lynne-primary);
}

.total-row .price-label,
.total-row .price-value {
    color: var(--lynne-primary);
}

.summary-note {
    margin-top: 25px;
    padding: 15px;
    background-color: white;
    border-radius: var(--lynne-border-radius);
}

.summary-note p {
    margin: 0;
    color: var(--lynne-text-brown);
    font-size: 13px;
    line-height: 1.5;
}

/* Payment Form */
.payment-form-container {
    background-color: var(--lynne-white);
}

.payment-methods {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    /* background-color: var(--schemes-surface-container-low-light); */
    background-color: #ECE9E0;
    border: 2px solid transparent;
    border-radius: var(--lynne-border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-option:has(input:checked) {
    background-color: #ECE9E0;
    border-color: var(--lynne-primary);
}

.payment-method-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--lynne-primary);
}

.payment-method-label {
    cursor: pointer;
    color: #000000;
}

.payment-security-note {
    margin-top: 20px;
    text-align: center;
}

/* Payment Page Responsive */
@media screen and (max-width: 1200px) {
    .payment-layout {
        grid-template-columns: 320px 1fr;
        gap: 30px;
    }
    
    .order-summary {
        padding: 25px;
    }
}

@media screen and (max-width: 968px) {
    .payment-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .order-summary {
        position: static;
        order: -1;
    }
}

@media screen and (max-width: 480px) {
    .order-summary {
        padding: 20px;
    }
    
    .summary-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .summary-value {
        text-align: left;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .payment-method-option {
        width: 100%;
    }
}
