/* =========================================
   TRUST REGISTRATION PAGE
   Independent stylesheet
========================================= */

.registration-page {
    min-height: 100vh;
    background: #FFF9EF;
    color: #30231F;
}

/* =========================================
   Banner
========================================= */

.registration-hero {
    position: relative;
    width: 100%;
    min-height: 520px;
    padding: 55px 0;
    box-sizing: border-box;
    overflow: hidden;
    background-color: #F8E8CD;
    background-image:
        linear-gradient(
            90deg,
            rgba(255, 249, 239, 0.96) 0%,
            rgba(255, 249, 239, 0.88) 32%,
            rgba(255, 249, 239, 0.25) 52%,
            rgba(255, 249, 239, 0) 68%
        ),
        url("/assets/images/acharyaji-cover.jpg");
    background-repeat: no-repeat, no-repeat;
    background-position: center center, right center;
    background-size: 100% 100%, 90% auto;
}

.registration-banner {
    display: none;
    width: 100%;
}

.registration-hero-content {
    position: absolute;
    top: 7%;
    left: max(24px, calc((100% - 1180px) / 2));
    width: min(58%, 700px);
    max-width: calc(100% - 48px);
    padding: 20px 24px;
    box-sizing: border-box;
    text-align: left;
    color: #FFF9EF;
    background: transparent;
    border-radius: 8px;
}

.registration-eyebrow {
    margin: 0 0 18px;
    color: #741D26 !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 2vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: anywhere;
    text-shadow: none;
}

.registration-mission-line {
    max-width: 620px;
    margin: 0 0 20px;
    color: #30231F;
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.75;
    text-shadow: none;
}

.registration-hero-content h1 {
    margin: 0;
    color: #30231F;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 1.2;
}

/* =========================================
   Registration card
========================================= */

.registration-form-section {
    width: min(760px, calc(100% - 36px));
    margin: 42px auto 64px;
    padding: 36px;
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1px solid rgba(116, 29, 38, 0.14);
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(67, 37, 25, 0.08);
}

.registration-form-section h2 {
    margin: 0 0 12px;
    color: #741D26;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    text-align: center;
}

.registration-form-section > p,
.registration-form-intro {
    color: #66564D;
    line-height: 1.7;
    text-align: center;
}

.registration-form-section > p {
    margin: 0;
}

.registration-form-intro {
    margin: 0 0 28px;
}

/* =========================================
   Form grid
========================================= */

.trust-registration-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
    margin-top: 28px;
}

.registration-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.registration-field-full {
    grid-column: 1 / -1;
}

.registration-field > label {
    color: #30231F;
    font-size: 0.96rem;
    font-weight: 600;
}

/* =========================================
   Inputs
========================================= */

.registration-field input:not([type="checkbox"]):not([type="radio"]),
.registration-field textarea {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    box-sizing: border-box;
    border: 1px solid #D8C9B8;
    border-radius: 9px;
    background: #FFFDF9;
    color: #30231F;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.registration-field input:focus,
.registration-field textarea:focus {
    outline: none;
    border-color: #741D26;
    box-shadow: 0 0 0 3px rgba(116, 29, 38, 0.12);
}

.registration-field textarea {
    resize: vertical;
}

/* =========================================
   Honeypot
========================================= */

.registration-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================================
   Consent checkbox
========================================= */

.registration-consent {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
    line-height: 1.6;
}

.registration-consent input {
    width: auto;
    margin-top: 5px;
    accent-color: #741D26;
    flex-shrink: 0;
}

/* =========================================
   Submit button
========================================= */

.registration-submit {
    width: 100%;
    padding: 15px 22px;
    border: none;
    border-radius: 9px;
    background: #741D26;
    color: #FFF9EF;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.registration-submit:hover {
    background: #54131B;
}

.registration-submit:focus-visible {
    outline: 3px solid #D9912B;
    outline-offset: 3px;
}

/* =========================================
   Donation panel
========================================= */

.registration-donation {
    min-width: 0;
    margin: 0;
    padding: 22px;
    box-sizing: border-box;
    border: 1px solid rgba(116, 29, 38, 0.2);
    border-radius: 14px;
    background: linear-gradient(145deg, #FFF9EF, #FFFFFF);
}

.registration-donation legend {
    max-width: 100%;
    padding: 0 8px;
    color: #741D26;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.registration-donation-intro {
    margin: 4px 0 18px;
    color: #66564D;
    line-height: 1.6;
}

/* =========================================
   Yes / No choices
========================================= */

.registration-donation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.registration-donation-option {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: 100%;
    padding: 10px 13px;
    box-sizing: border-box;
    border: 1px solid #D8C9B8;
    border-radius: 8px;
    background: #FFFFFF;
    color: #30231F;
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
}

.registration-donation-option:has(input:checked) {
    border-color: #741D26;
    background: #F8EDE8;
}

.registration-donation-option input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    accent-color: #741D26;
    flex: 0 0 16px;
}

/* =========================================
   Conditional donation methods area
========================================= */

.registration-upi-area {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #E7D9C9;
    text-align: center;
}

.registration-upi-area[hidden] {
    display: none !important;
}

.registration-upi-area > h3 {
    margin: 0 0 10px;
    color: #741D26;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
}

.registration-donation-method-intro {
    margin: 0 0 22px;
    color: #66564D;
    line-height: 1.6;
}

/* =========================================
   Two-column donation layout
========================================= */

.registration-donation-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    text-align: left;
}

.registration-donation-method {
    min-width: 0;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #E7D9C9;
    border-radius: 12px;
    background: #FFFFFF;
}

.registration-donation-method h4 {
    margin: 0 0 12px;
    color: #741D26;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    text-align: center;
}

.registration-donation-method > p {
    margin: 0 0 14px;
    color: #66564D;
    font-size: 0.94rem;
    line-height: 1.6;
    text-align: center;
}

/* =========================================
   UPI QR code
========================================= */

.registration-upi-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(270px, 100%);
    min-height: 180px;
    margin: 18px auto 0;
    padding: 18px;
    box-sizing: border-box;
    border: 2px dashed #D8C9B8;
    border-radius: 12px;
    background: #FFFFFF;
    color: #66564D;
    text-align: center;
}

.registration-upi-placeholder strong {
    color: #741D26;
}

.registration-upi-placeholder img {
    display: block;
    width: 270px;
    max-width: 100%;
    height: auto;
    margin: 12px auto;
    object-fit: contain;
}

.registration-upi-placeholder span {
    color: #66564D;
    font-size: 0.9rem;
    font-weight: 600;
}

/* =========================================
   Bank transfer details
========================================= */

.registration-bank-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 18px;
    border: 1px solid #E7D9C9;
    border-radius: 10px;
    overflow: hidden;
}

.registration-bank-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 13px 14px;
    border-bottom: 1px solid #E7D9C9;
    background: #FFFDF9;
}

.registration-bank-detail:last-child {
    border-bottom: none;
}

.registration-bank-detail > span {
    color: #66564D;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.registration-bank-detail > strong {
    color: #30231F;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.registration-account-number,
.registration-ifsc {
    color: #741D26 !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.04em;
}

/* =========================================
   Donation note
========================================= */

.registration-donation-note {
    margin: 18px 0 0 !important;
    color: #66564D;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.6;
    text-align: center;
}

/* =========================================
   Mobile layout
========================================= */

@media (max-width: 600px) {

    .registration-hero {
        min-height: 440px;
        padding: 28px 0;
        background-position: center center, 68% top;
        background-size: 100% 100%, auto 100%;
    }

    .registration-hero-content {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 58%;
        max-width: 100%;
        margin: 0;
        padding: 0 0 0 16px;
        box-sizing: border-box;
    }

    .registration-eyebrow {
        margin-bottom: 6px;
        font-size: clamp(0.7rem, 3vw, 0.95rem);
        letter-spacing: 0.02em;
        line-height: 1.35;
        white-space: normal;
        overflow-wrap: anywhere;
        text-shadow: none;
    }

    .registration-mission-line {
        font-size: 0.95rem;
        line-height: 1.55;
        text-shadow: none;
    }

    .registration-hero-content h1 {
        font-size: clamp(1.1rem, 4.5vw, 1.7rem);
        line-height: 1.2;
    }

    .registration-form-section {
        margin: 28px auto 42px;
        padding: 24px 18px;
        border-radius: 14px;
    }

    .trust-registration-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .registration-field-full {
        grid-column: auto;
    }

    .registration-donation {
        padding: 18px 14px;
    }

    .registration-donation-options {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Stack UPI and bank transfer panels on mobile */
    .registration-donation-methods {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .registration-donation-method {
        padding: 16px 13px;
    }

    .registration-upi-placeholder {
        width: min(270px, 100%);
    }

    .registration-bank-detail {
        padding: 12px;
    }
}

/* =========================================
   Align registration content with site layout
========================================= */

.registration-page > .container {
    width: min(1180px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .registration-page > .container {
        width: calc(100% - 32px);
    }
}