/* Belwood Junior School Enrollment — Premium WordPress Form */
:root {
    --bwe-red: #d3131b;
    --bwe-red-dark: #9f0f15;
    --bwe-gold: #f4c84a;
    --bwe-gold-soft: #fff6d8;
    --bwe-charcoal: #272629;
    --bwe-muted: #6d6970;
    --bwe-border: #e8e3e1;
    --bwe-surface: #ffffff;
    --bwe-bg: #f7f4f2;
    --bwe-success: #1d7a46;
    --bwe-danger: #b73333;
    --bwe-shadow: 0 30px 80px rgba(43, 31, 32, 0.14);
}

.bwe-shell,
.bwe-shell * {
    box-sizing: border-box;
}

.bwe-shell {
    position: relative;
    width: 100%;
    margin: 36px auto;
    padding: 32px 18px;
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(circle at 8% 8%, rgba(244, 200, 74, 0.18), transparent 29%),
        radial-gradient(circle at 96% 22%, rgba(211, 19, 27, 0.12), transparent 28%),
        linear-gradient(145deg, #fbfaf9 0%, #f5f0ed 100%);
    color: var(--bwe-charcoal);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

.bwe-accent {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.bwe-accent-one {
    width: 240px;
    height: 240px;
    right: -120px;
    top: -120px;
    border: 38px solid rgba(211, 19, 27, 0.07);
}

.bwe-accent-two {
    width: 180px;
    height: 180px;
    left: -90px;
    bottom: -90px;
    border: 30px solid rgba(244, 200, 74, 0.12);
}

.bwe-card {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--bwe-shadow);
    overflow: hidden;
}

.bwe-hero {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-height: 210px;
    padding: 36px 44px;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(28, 25, 27, 0.98), rgba(48, 42, 43, 0.96)),
        var(--bwe-charcoal);
}

.bwe-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--bwe-red) 0 9px, transparent 9px),
        radial-gradient(circle at 88% 20%, rgba(244, 200, 74, 0.18), transparent 25%);
    pointer-events: none;
}

.bwe-logo-wrap,
.bwe-hero-copy,
.bwe-hero-badge {
    position: relative;
    z-index: 1;
}

.bwe-logo-wrap {
    display: grid;
    place-items: center;
    width: 134px;
    height: 134px;
    border-radius: 28px;
    background: #fff;
    border: 4px solid rgba(244, 200, 74, 0.8);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    transform: rotate(-1deg);
}

.bwe-logo {
    width: 116px;
    height: 116px;
    object-fit: contain;
    display: block;
}

.bwe-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    color: var(--bwe-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.bwe-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--bwe-gold);
}

.bwe-hero h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.06;
    letter-spacing: -0.04em;
    font-weight: 850;
}

.bwe-hero p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 16px;
}

.bwe-hero-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 112px;
    padding: 14px;
    border: 1px solid rgba(244, 200, 74, 0.42);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

.bwe-hero-badge span {
    color: rgba(255, 255, 255, 0.66);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.bwe-hero-badge strong {
    color: var(--bwe-gold);
    font-size: 30px;
    line-height: 1.1;
}

.bwe-alert {
    display: flex;
    gap: 15px;
    margin: 28px 44px 0;
    padding: 18px 20px;
    border-radius: 18px;
}

.bwe-alert-success {
    border: 1px solid #bfe8cf;
    background: #effaf3;
    color: #175c35;
}

.bwe-alert-error {
    border: 1px solid #f1c5c5;
    background: #fff2f2;
    color: #8c2525;
}

.bwe-alert-icon {
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: currentColor;
    color: #fff;
    font-weight: 900;
}

.bwe-alert strong {
    display: block;
    margin-bottom: 3px;
}

.bwe-alert p {
    margin: 0;
}

.bwe-reference {
    margin-top: 6px !important;
    font-size: 13px;
}

.bwe-progress {
    padding: 34px 44px 10px;
}

.bwe-progress-track {
    position: relative;
    height: 6px;
    margin: 0 10%;
    border-radius: 999px;
    background: #eee9e7;
    overflow: hidden;
}

.bwe-progress-fill {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--bwe-red), #f14b4f);
    transition: width 0.35s ease;
}

.bwe-progress-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0;
    margin: -15px 0 0;
    list-style: none;
}

.bwe-progress-steps li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #9c9697;
}

.bwe-progress-steps li span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #e7e1df;
    color: #7a7475;
    box-shadow: 0 2px 8px rgba(42, 33, 35, 0.12);
    font-size: 12px;
    font-weight: 850;
    transition: all 0.25s ease;
}

.bwe-progress-steps li small {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.bwe-progress-steps li.is-active,
.bwe-progress-steps li.is-complete {
    color: var(--bwe-red-dark);
}

.bwe-progress-steps li.is-active span,
.bwe-progress-steps li.is-complete span {
    background: var(--bwe-red);
    color: #fff;
}

.bwe-form {
    padding: 22px 44px 44px;
}

.bwe-step {
    display: none;
    padding: 0;
    margin: 0;
    border: 0;
    min-width: 0;
    animation: bweFade 0.32s ease;
}

.bwe-step.is-active {
    display: block;
}

@keyframes bweFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.bwe-step-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0 28px;
}

.bwe-step-number {
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--bwe-red), var(--bwe-red-dark));
    color: #fff;
    box-shadow: 0 10px 22px rgba(211, 19, 27, 0.22);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.bwe-step-heading h3 {
    margin: 0;
    color: var(--bwe-charcoal);
    font-size: clamp(22px, 3vw, 30px);
    letter-spacing: -0.025em;
}

.bwe-step-heading p {
    margin: 3px 0 0;
    color: var(--bwe-muted);
    font-size: 14px;
}

.bwe-grid {
    display: grid;
    gap: 20px;
}

.bwe-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bwe-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bwe-span-2 {
    grid-column: span 2;
}

.bwe-field {
    position: relative;
}

.bwe-field label {
    display: block;
    margin: 0 0 8px;
    color: #403c3e;
    font-size: 13px;
    font-weight: 760;
}

.bwe-field label span,
.bwe-consent em {
    color: var(--bwe-red);
    font-style: normal;
}

.bwe-field input,
.bwe-field select,
.bwe-field textarea {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 13px 15px;
    border: 1px solid var(--bwe-border);
    border-radius: 14px;
    outline: none;
    background: #fff;
    color: #2f2b2d;
    box-shadow: 0 1px 0 rgba(33, 25, 27, 0.02);
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bwe-field textarea {
    min-height: 104px;
    resize: vertical;
}

.bwe-field select {
    cursor: pointer;
}

.bwe-field input::placeholder,
.bwe-field textarea::placeholder {
    color: #aaa3a5;
}

.bwe-field input:hover,
.bwe-field select:hover,
.bwe-field textarea:hover {
    border-color: #d7cdca;
}

.bwe-field input:focus,
.bwe-field select:focus,
.bwe-field textarea:focus {
    border-color: var(--bwe-red);
    box-shadow: 0 0 0 4px rgba(211, 19, 27, 0.1);
}

.bwe-field.is-invalid input,
.bwe-field.is-invalid select,
.bwe-field.is-invalid textarea {
    border-color: var(--bwe-danger);
    box-shadow: 0 0 0 4px rgba(183, 51, 51, 0.08);
}

.bwe-error {
    display: block;
    min-height: 18px;
    margin-top: 5px;
    color: var(--bwe-danger);
    font-size: 11px;
    font-weight: 650;
}

.bwe-note,
.bwe-privacy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 15px;
    background: var(--bwe-gold-soft);
    color: #654e0f;
}

.bwe-note > span {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bwe-gold);
    color: #3b2c00;
    font-weight: 900;
}

.bwe-note p,
.bwe-privacy p {
    margin: 0;
    font-size: 13px;
}

.bwe-section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 18px;
    color: var(--bwe-red-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.bwe-section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(211, 19, 27, 0.3), transparent);
}

.bwe-review {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.bwe-review-card {
    padding: 16px;
    border: 1px solid var(--bwe-border);
    border-radius: 16px;
    background: #fcfbfa;
}

.bwe-review-card small {
    display: block;
    margin-bottom: 4px;
    color: #837d7f;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bwe-review-card strong {
    display: block;
    color: #2f2b2d;
    font-size: 14px;
}

.bwe-documents {
    margin: 20px 0;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #29272a, #3b3638);
    color: #fff;
}

.bwe-documents h4 {
    margin: 0 0 6px;
    color: var(--bwe-gold);
    font-size: 17px;
}

.bwe-documents p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.bwe-documents ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bwe-documents li {
    position: relative;
    padding-left: 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.bwe-documents li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--bwe-gold);
    font-weight: 900;
}

.bwe-consent {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    border: 1px solid var(--bwe-border);
    border-radius: 17px;
    background: #fff;
    cursor: pointer;
}

.bwe-consent input {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--bwe-red);
}

.bwe-consent span {
    color: #5d5759;
    font-size: 13px;
}

.bwe-consent strong {
    display: block;
    margin-bottom: 3px;
    color: #2f2b2d;
    font-size: 14px;
}

.bwe-privacy {
    background: #f4f6f8;
    color: #53606d;
}

.bwe-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee9e7;
}

.bwe-actions-spacer {
    flex: 1;
}

.bwe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 12px 22px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.bwe-btn:hover {
    transform: translateY(-2px);
}

.bwe-btn:focus-visible {
    outline: 3px solid rgba(211, 19, 27, 0.25);
    outline-offset: 2px;
}

.bwe-btn-primary,
.bwe-btn-submit {
    color: #fff;
    background: linear-gradient(135deg, var(--bwe-red), var(--bwe-red-dark));
    box-shadow: 0 12px 24px rgba(211, 19, 27, 0.22);
}

.bwe-btn-secondary {
    color: #4a4547;
    background: #f1eeec;
}

.bwe-btn[disabled] {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.bwe-btn-loading {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bweSpin 0.75s linear infinite;
}

.bwe-btn.is-loading .bwe-btn-loading {
    display: inline-block;
}

@keyframes bweSpin {
    to { transform: rotate(360deg); }
}

.bwe-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 44px;
    border-top: 1px solid #eee9e7;
    background: #faf8f7;
}

.bwe-footer p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    color: var(--bwe-muted);
    font-size: 12px;
}

.bwe-footer small {
    color: var(--bwe-red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.bwe-honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 860px) {
    .bwe-hero {
        grid-template-columns: auto 1fr;
        padding: 30px;
    }

    .bwe-hero-badge {
        display: none;
    }

    .bwe-logo-wrap {
        width: 108px;
        height: 108px;
        border-radius: 22px;
    }

    .bwe-logo {
        width: 92px;
        height: 92px;
    }

    .bwe-grid-3 {
        grid-template-columns: 1fr;
    }

    .bwe-span-2 {
        grid-column: auto;
    }
}

@media (max-width: 680px) {
    .bwe-shell {
        margin: 18px auto;
        padding: 10px;
        border-radius: 22px;
    }

    .bwe-card {
        border-radius: 22px;
    }

    .bwe-hero {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 18px;
        min-height: auto;
        padding: 28px 20px;
    }

    .bwe-eyebrow {
        justify-content: center;
    }

    .bwe-eyebrow::before {
        display: none;
    }

    .bwe-hero p {
        font-size: 14px;
    }

    .bwe-alert {
        margin: 20px 18px 0;
    }

    .bwe-progress {
        padding: 26px 18px 6px;
    }

    .bwe-progress-steps li small {
        display: none;
    }

    .bwe-form {
        padding: 18px;
    }

    .bwe-grid-2,
    .bwe-review,
    .bwe-documents ul {
        grid-template-columns: 1fr;
    }

    .bwe-step-heading {
        align-items: flex-start;
    }

    .bwe-step-number {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 12px;
    }

    .bwe-actions {
        flex-wrap: wrap;
    }

    .bwe-actions-spacer {
        display: none;
    }

    .bwe-btn {
        flex: 1;
        min-width: 130px;
    }

    .bwe-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bwe-shell *,
    .bwe-shell *::before,
    .bwe-shell *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
