:root {
    --ink: #102040;
    --blue: #102040;
    --blue-mid: #204060;
    --blue-soft: #edf3fb;
    --silver: #7b8aa1;
    --paper: #f5f8fc;
    --line: #dce5f0;
    --accent: #607080;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Roboto", Arial, sans-serif;
}

.public-page {
    min-height: 100vh;
}

.public-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 243, 251, 0.95)),
        linear-gradient(90deg, rgba(16, 32, 64, 0.08), rgba(32, 64, 96, 0.02));
    border-bottom: 1px solid var(--line);
    color: var(--blue);
    padding: 70px 0 115px;
}

.public-brand {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 34px;
}

.public-brand img {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(16, 32, 64, 0.1);
    height: 70px;
    object-fit: contain;
    padding: 8px;
    width: 58px;
}

.public-brand span {
    color: var(--blue-mid);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-content {
    max-width: 760px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    border-left: 4px solid var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 14px;
    padding-left: 12px;
    text-transform: uppercase;
}

.public-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 16px;
}

.public-hero p {
    color: #52647a;
    font-size: 1.2rem;
    margin: 0;
    max-width: 620px;
}

.form-section {
    margin-top: -72px;
    padding-bottom: 70px;
}

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 55px rgba(16, 32, 64, 0.12);
    padding: 34px;
}

.form-card-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 22px;
    gap: 24px;
}

.form-card-header h2 {
    color: var(--ink);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.form-card-header p {
    color: #64748b;
    margin: 0;
}

.form-card-header .material-icons {
    background: var(--blue-soft);
    border-radius: 50%;
    color: var(--blue);
    font-size: 36px;
    padding: 14px;
}

.success-state {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 720px;
    padding: 28px 12px 20px;
    text-align: center;
}

.success-icon {
    align-items: center;
    background: var(--blue-soft);
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 18px 38px rgba(16, 32, 64, 0.12);
    color: var(--blue);
    display: inline-flex;
    height: 86px;
    justify-content: center;
    margin-bottom: 22px;
    width: 86px;
}

.success-icon .material-icons {
    font-size: 46px;
}

.success-state h2 {
    color: var(--blue);
    font-size: 2rem;
    font-weight: 800;
    margin: 4px 0 12px;
}

.success-state p {
    color: #52647a;
    font-size: 1.08rem;
    line-height: 1.55;
    margin: 0 0 28px;
}

.inscription-form .input-field {
    margin-bottom: 14px;
}

.input-field .prefix {
    color: #64748b;
}

.input-field .prefix.active,
input:not([type]):focus:not([readonly]) + label,
input[type=text]:not(.browser-default):focus:not([readonly]) + label,
input[type=email]:not(.browser-default):focus:not([readonly]) + label,
input[type=url]:not(.browser-default):focus:not([readonly]) + label {
    color: var(--blue-mid);
}

input:not([type]):focus:not([readonly]),
input[type=text]:not(.browser-default):focus:not([readonly]),
input[type=email]:not(.browser-default):focus:not([readonly]),
input[type=url]:not(.browser-default):focus:not([readonly]) {
    border-bottom-color: var(--blue-mid);
    box-shadow: 0 1px 0 0 var(--blue-mid);
}

.upload-btn {
    background: var(--blue);
    border-radius: 6px;
    box-shadow: none;
    min-width: 116px;
}

.upload-btn:hover,
.upload-btn:focus {
    background: var(--blue-mid);
}

.upload-btn.secondary {
    background: #607080;
    min-width: 180px;
}

.upload-btn.secondary:hover,
.upload-btn.secondary:focus {
    background: #4a596c;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 0;
}

.file-help {
    color: #64748b;
    display: block;
    font-size: 0.84rem;
    line-height: 1.35;
    margin-left: 0;
    margin-top: 4px;
}

.captcha-box {
    align-items: center;
    background: var(--blue-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto 160px;
    margin-bottom: 0;
    margin-top: 14px;
    padding: 18px 20px !important;
}

.captcha-box strong,
.captcha-box small {
    display: block;
}

.captcha-box strong {
    color: var(--blue);
    font-size: 1rem;
}

.captcha-box small {
    color: #64748b;
    margin-top: 3px;
}

.captcha-question {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--blue);
    font-size: 1.35rem;
    font-weight: 800;
    min-width: 112px;
    padding: 10px 16px;
    text-align: center;
}

.captcha-input {
    margin: 0;
}

.captcha-input input {
    text-align: center;
}

.submit-btn {
    background: var(--blue);
    border-radius: 6px;
    box-shadow: 0 12px 22px rgba(16, 32, 64, 0.2);
    font-weight: 700;
    min-width: 220px;
}

.submit-btn:hover,
.submit-btn:focus {
    background: var(--blue-mid);
}

.card-panel ul {
    margin-bottom: 0;
}

.whatsapp-float {
    align-items: center;
    background: #25d366;
    border-radius: 50%;
    bottom: 24px;
    box-shadow: 0 14px 28px rgba(18, 140, 126, 0.3);
    display: inline-flex;
    height: 60px;
    justify-content: center;
    position: fixed;
    right: 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    width: 60px;
    z-index: 40;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    box-shadow: 0 18px 34px rgba(18, 140, 126, 0.4);
    transform: translateY(-2px);
}

.whatsapp-float svg {
    fill: #fff;
    height: 34px;
    width: 34px;
}

@media (max-width: 600px) {
    .public-hero {
        padding: 36px 0 82px;
    }

    .public-brand {
        margin-bottom: 24px;
    }

    .public-brand img {
        height: 58px;
        width: 48px;
    }

    .hero-kicker {
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .public-hero h1 {
        font-size: 2.05rem;
        line-height: 1.08;
    }

    .public-hero p {
        font-size: 1rem;
        line-height: 1.45;
    }

    .form-section {
        margin-top: -50px;
        padding-bottom: 52px;
    }

    .form-card {
        border-radius: 8px;
        padding: 22px 16px;
    }

    .form-card-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 20px;
        padding-bottom: 18px;
    }

    .form-card-header h2 {
        font-size: 1.35rem;
    }

    .form-card-header p {
        font-size: 0.94rem;
        line-height: 1.4;
    }

    .form-card-header .material-icons {
        display: none;
    }

    .inscription-form .input-field {
        margin-bottom: 10px;
    }

    .input-field .prefix {
        display: none;
    }

    .input-field .prefix ~ input,
    .input-field .prefix ~ label {
        margin-left: 0;
        width: 100%;
    }

    .file-field.input-field {
        margin-top: 6px;
    }

    .file-field .btn {
        display: flex;
        float: none;
        justify-content: center;
        margin-bottom: 8px;
        width: 100%;
    }

    .file-field .file-path-wrapper {
        padding-left: 0;
    }

    .file-help {
        margin-left: 0;
        margin-top: 6px;
    }

    .form-actions,
    .submit-btn {
        width: 100%;
    }

    .form-actions {
        margin-top: 24px;
    }

    .submit-btn {
        min-width: 0;
    }

    .success-state {
        padding: 14px 0 6px;
    }

    .success-icon {
        height: 72px;
        margin-bottom: 18px;
        width: 72px;
    }

    .success-icon .material-icons {
        font-size: 38px;
    }

    .success-state h2 {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .success-state p {
        font-size: 1rem;
    }

    .captcha-box {
        gap: 12px;
        grid-template-columns: 1fr;
        padding: 16px !important;
    }

    .captcha-question {
        width: 100%;
    }

    .captcha-input {
        width: 100%;
    }

    .whatsapp-float {
        bottom: 16px;
        height: 54px;
        right: 16px;
        width: 54px;
    }

    .whatsapp-float svg {
        height: 30px;
        width: 30px;
    }
}
