@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --registration-ink: #0f172a;
    --registration-muted: #64748b;
    --registration-gold: #c2954a;
    --registration-gold-soft: #fef8eb;
    --registration-line: #e2e8f0;
    --registration-bg: #f8fafc;
    --registration-card: #ffffff;
    --registration-primary: #d4af37;
    --registration-primary-hover: #c2954a;
}

body {
    min-height: 100vh;
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background: 
        radial-gradient(circle at 15% 50%, rgba(245, 158, 11, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.08), transparent 25%),
        var(--registration-bg);
    color: var(--registration-ink);
    margin: 0;
    padding: 0;
}

.public-head {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 72px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.public-head>a:first-child {
    transition: opacity .2s ease, transform .2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.public-head>a:first-child:hover {
    opacity: .9;
    transform: scale(1.02);
}

.public-head>a:first-child img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.public-head>a:first-child span {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--registration-ink);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.public-head>a:first-child small {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--registration-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.back {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 16px;
    border: 1px solid var(--registration-line);
    border-radius: 999px;
    color: var(--registration-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all .2s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.back:hover {
    border-color: var(--registration-primary);
    color: var(--registration-primary);
    background: var(--registration-gold-soft);
    transform: translateY(-1px);
}

.public-main {
    width: min(1000px, calc(100% - 40px));
    margin: 60px auto 100px;
}

.registration-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.registration-intro>span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--registration-primary-hover);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--registration-gold-soft);
    padding: 6px 14px;
    border-radius: 999px;
}

.registration-intro>span::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--registration-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    content: "";
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.registration-intro h1 {
    margin: 16px 0 0;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--registration-ink);
    line-height: 1.1;
}

.public-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.public-form>section {
    position: relative;
    padding: clamp(28px, 4vw, 40px);
    background: var(--registration-card);
    border: 1px solid var(--registration-line);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.public-form>section:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05);
}

.public-form header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.public-form header>b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    color: var(--registration-primary);
    background: var(--registration-gold-soft);
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.public-form h2 {
    margin: 0 0 6px;
    color: var(--registration-ink);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.public-form header p {
    margin: 0;
    max-width: 600px;
    color: var(--registration-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-grid,
.parents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.public-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--registration-ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.public-form input,
.public-form select,
.public-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--registration-line);
    border-radius: 12px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    color: var(--registration-ink);
    transition: all 0.2s ease;
}

.public-form input:hover,
.public-form select:hover,
.public-form textarea:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.public-form input:focus,
.public-form select:focus,
.public-form textarea:focus {
    border-color: var(--registration-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
    outline: none;
}

.parents fieldset {
    padding: 24px;
    border: 1px solid var(--registration-line);
    border-radius: 16px;
    background: #f8fafc;
    margin: 0;
}

.parents legend {
    color: var(--registration-ink);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0 12px;
    background: #f8fafc;
    border-radius: 6px;
}

.photo-picker {
    min-height: 140px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.photo-picker:hover {
    border-color: var(--registration-primary);
    background: var(--registration-gold-soft);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
}

.waiting {
    padding: 32px;
    border: 2px dashed var(--registration-line);
    border-radius: 16px;
    background: var(--registration-bg);
    color: var(--registration-muted);
    text-align: center;
    font-weight: 500;
}

.public-form>footer {
    position: relative;
    padding: clamp(28px, 4vw, 40px);
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--registration-line);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.public-form>footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0) 100%);
    pointer-events: none;
}

.public-form>footer p,
.public-form>footer .approval-notice strong {
    color: var(--registration-ink);
}

.approval-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
}

.approval-notice>span:last-child {
    color: var(--registration-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.approval-notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    color: var(--registration-primary);
    background: rgba(212, 175, 55, 0.15);
}

.approval-notice-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.public-form button {
    position: relative;
    min-height: 60px;
    padding: 0 32px;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--registration-primary), var(--registration-primary-hover));
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.public-form button::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
    pointer-events: none;
}

.public-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

.public-form button:active {
    transform: translateY(1px);
}

.public-form button span {
    transition: transform 0.3s ease;
}

.public-form button:hover span {
    transform: translateX(4px);
}

@media (max-width: 700px) {
    .public-head {
        height: 68px;
    }

    .public-main {
        width: min(100% - 24px, 560px);
        margin: 28px auto 48px;
    }

    .registration-intro {
        margin-bottom: 22px;
    }

    .registration-intro h1 {
        font-size: clamp(36px, 12vw, 48px);
    }

    .public-form {
        gap: 12px;
    }

    .public-form>section,
    .public-form>footer {
        padding: 21px 17px;
        border-radius: 10px;
    }

    .public-form header {
        margin-bottom: 22px;
    }

    .public-form h2 {
        font-size: 21px;
    }

    .public-form input,
    .public-form select {
        min-height: 56px;
        font-size: 16px;
    }

    .parents fieldset {
        padding: 17px 14px;
    }

    .photo-picker {
        min-height: 108px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-head a,
    .photo-picker,
    .public-form button {
        transition: none;
    }
}

.payment-choice,
.payment-summary,
.withdrawal-notice,
.transfer-destinations,
.payment-proof-fields {
    margin-bottom: 24px;
}

.payment-choice {
    display: grid;
    gap: 16px;
}

.payment-unit-prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.payment-unit-prices article {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--registration-line);
    border-radius: 16px;
    background: var(--registration-bg);
}

.payment-unit-prices article span {
    color: var(--registration-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.payment-unit-prices article strong {
    color: var(--registration-ink);
    font-size: 1.5rem;
    font-weight: 800;
}

.payment-month-choice,
.transfer-destinations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.payment-month-choice label,
.transfer-destinations article {
    padding: 20px;
    border: 1px solid var(--registration-line);
    border-radius: 16px;
    background: var(--registration-bg);
    transition: border-color 0.2s ease;
}

.transfer-destinations article:hover {
    border-color: #cbd5e1;
}

.payment-month-choice label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.payment-month-choice input {
    width: 20px;
    min-height: 20px;
    accent-color: var(--registration-primary);
}

.payment-summary {
    overflow: hidden;
    border: 1px solid var(--registration-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.payment-summary > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--registration-line);
    font-size: 1.05rem;
}

.payment-summary > div:last-child {
    border-bottom: none;
}

.payment-summary > div span {
    color: var(--registration-muted);
}

.payment-summary > div strong {
    color: var(--registration-ink);
    font-weight: 700;
}

.payment-summary .payment-total {
    background: var(--registration-gold-soft);
    color: var(--registration-ink);
    border-top: 2px solid var(--registration-primary);
}

.payment-summary .payment-total span {
    color: #92400e;
    font-weight: 700;
}

.payment-summary .payment-total strong {
    color: var(--registration-ink);
    font-size: 1.35rem;
}

.withdrawal-notice {
    padding: 16px 20px;
    border-radius: 12px;
    color: #92400e;
    background: var(--registration-gold-soft);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.withdrawal-notice::before {
    content: "ℹ";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--registration-primary);
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
}

.transfer-destinations article {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transfer-destinations article span {
    color: var(--registration-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.transfer-destinations article strong {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--registration-ink);
    letter-spacing: 0.02em;
}

.transfer-destinations article small {
    color: var(--registration-muted);
    font-weight: 500;
}

.payment-notes {
    grid-column: 1 / -1;
}

@media (max-width: 700px) {
    .payment-unit-prices,
    .payment-month-choice,
    .transfer-destinations {
        grid-template-columns: 1fr;
    }
}
.public-registration-alert{border-radius:24px!important;padding:30px!important;font-family:inherit!important}.public-registration-alert .swal2-title{color:#171717!important;font-size:1.55rem!important}.public-registration-alert .swal2-html-container{color:#69635a!important;font-size:.9rem!important;line-height:1.65!important}.public-registration-alert-button{min-width:150px;min-height:48px;padding:0 22px;border:0;border-radius:12px;color:#fff;font-weight:800;background:#171717;cursor:pointer}.public-registration-alert-button:focus{outline:3px solid #c9a75d55;outline-offset:3px}


.registration-success-page{min-height:100vh;background:radial-gradient(circle at 50% 12%,#fff8e8 0,#f5f3ee 46%,#ece8df 100%)}.registration-success{display:grid;min-height:calc(100vh - 82px);place-items:center;padding:42px 20px}.registration-success-card{width:min(100%,680px);padding:clamp(34px,7vw,72px);border:1px solid #e1d8c6;border-radius:30px;text-align:center;background:#fff;box-shadow:0 30px 90px #3d2d0b18}.registration-success-icon{display:grid;width:78px;height:78px;margin:0 auto 25px;place-items:center;border-radius:24px;color:#fff;background:#2f8752;box-shadow:0 14px 32px #2f875235}.registration-success-icon svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.registration-success-kicker{color:#95702c;font-size:11px;font-weight:800;letter-spacing:.15em}.registration-success-card h1{margin:12px 0 14px;font:700 clamp(38px,7vw,62px)/1 Outfit}.registration-success-card>p{margin:0;color:#676159;font-size:17px}.registration-success-notice{display:flex;flex-direction:column;gap:7px;margin:28px 0;padding:19px;border:1px solid #e7d5a7;border-radius:15px;color:#675b3b;background:#fff9e9}.registration-success-notice strong{color:#211d15;font-size:15px}.registration-success-notice span{font-size:13px;line-height:1.55}.registration-success-actions{display:flex;justify-content:center;gap:10px}.registration-success-actions a{display:inline-flex;min-height:50px;align-items:center;justify-content:center;padding:0 19px;border:1px solid #d9d2c7;border-radius:12px;color:#222;font-size:14px;font-weight:700;text-decoration:none;background:#fff}.registration-success-actions .is-primary{border-color:#111;color:#fff;background:#111}@media(max-width:600px){.registration-success{min-height:calc(100vh - 70px);padding:24px 14px}.registration-success-card{padding:34px 20px;border-radius:22px}.registration-success-actions{flex-direction:column}.registration-success-actions a{width:100%}}

.registration-success-page .public-head>a:first-child img{width:48px;height:48px;max-width:48px;object-fit:cover}
@media(max-width:600px){.registration-success-page .public-head>a:first-child img{width:40px;height:40px;max-width:40px}}

.public-payment-method{display:grid;gap:12px;margin:22px 0}.public-payment-method>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.public-payment-method label{cursor:pointer}.public-payment-method label span{display:flex;min-height:48px;align-items:center;justify-content:center;border:1px solid #ded8cd;border-radius:12px;font-weight:750;background:#fff;transition:.18s}.public-payment-method input{position:absolute;opacity:0}.public-payment-method input:checked+span{border-color:#b78a32;color:#76530f;background:#fff7e2;box-shadow:0 0 0 3px #d7b86b24}.cash-payment-notice{display:flex;flex-direction:column;gap:5px;padding:16px;border:1px solid #d8c58f;border-radius:14px;background:#fff9e9}.cash-payment-notice span{color:#6d624c;font-size:14px}@media(max-width:600px){.public-payment-method>div{grid-template-columns:1fr}.public-payment-method label span{min-height:52px}}
