* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
    background: #f4f7fb;
    color: #172033;
}

.page {
    min-height: 100vh;
    padding: 55px 20px;
    background:
        radial-gradient(
            circle at top left,
            rgba(38, 79, 138, .16),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #eef3f9 0%,
            #f8fafc 100%
        );
}

.portal-card {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e3e9f1;
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 20px 60px
        rgba(27, 46, 75, .10);
}

.portal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 34px 38px;
    background:
        linear-gradient(
            135deg,
            #12335b,
            #1e5a8c
        );
    color: white;
}

.logo-box {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: white;
    color: #17456f;
    font-size: 28px;
    font-weight: 900;
    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, .15);
}

.header-copy {
    min-width: 0;
}

.eyebrow {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: .72;
}

.portal-header h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.15;
}

.portal-header p {
    margin: 0;
    opacity: .80;
    line-height: 1.55;
    font-size: 14px;
}

.section {
    padding: 32px 38px;
    border-bottom:
        1px solid #edf1f5;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.section-title > span {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eaf2f9;
    color: #174f7d;
    font-size: 12px;
    font-weight: 900;
}

.section-title h2 {
    margin: 0;
    font-size: 19px;
}

.section-title p {
    margin: 4px 0 0;
    color: #788396;
    font-size: 13px;
}

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

.campaign-option {
    cursor: pointer;
}

.campaign-option input {
    display: none;
}

.campaign-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 90px;
    padding: 18px;
    border:
        2px solid #e3e9f1;
    border-radius: 14px;
    background: #fff;
    transition: .18s ease;
}

.campaign-option:hover
.campaign-box {
    border-color: #a8bfd4;
}

.campaign-option input:checked
+ .campaign-box {
    border-color: #1f649a;
    background: #f2f8fc;
    box-shadow:
        0 0 0 3px
        rgba(31, 100, 154, .08);
}

.campaign-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #e9f1f8;
    color: #1d5c8e;
    font-size: 15px;
    font-weight: 900;
}

.campaign-box strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.campaign-box small {
    color: #7e8999;
}

.check-circle {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 24px;
    height: 24px;
    transform:
        translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border:
        1px solid #ccd6e1;
    border-radius: 50%;
    color: transparent;
    font-size: 13px;
    font-weight: 900;
}

.campaign-option input:checked
+ .campaign-box
.check-circle {
    background: #1f649a;
    border-color: #1f649a;
    color: white;
}

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

.field {
    display: flex;
    flex-direction: column;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    margin-bottom: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 750;
}

input {
    width: 100%;
    min-height: 48px;
    border:
        1px solid #d5dce6;
    border-radius: 10px;
    padding: 0 14px;
    background: white;
    color: #172033;
    font-size: 14px;
    outline: none;
    transition: .18s ease;
}

input:focus {
    border-color: #4281b2;
    box-shadow:
        0 0 0 3px
        rgba(66, 129, 178, .10);
}

input[readonly] {
    background: #f7f9fb;
}

.trusted-wrap {
    position: relative;
}

.trusted-wrap input {
    padding-right: 105px;
}

.trusted-badge {
    position: absolute;
    top: 50%;
    right: 10px;
    transform:
        translateY(-50%);
    padding: 5px 9px;
    border-radius: 20px;
    background: #edf1f5;
    color: #7a8493;
    font-size: 11px;
    font-weight: 800;
}

.trusted-badge.success {
    background: #e6f6ed;
    color: #19834b;
}

.trusted-badge.error {
    background: #fdeaea;
    color: #b93b3b;
}

.status-text {
    min-height: 17px;
    margin-top: 7px;
    font-size: 12px;
}

.status-text.checking {
    color: #7a8493;
}

.status-text.success {
    color: #158044;
    font-weight: 700;
}

.status-text.error {
    color: #ba3434;
}

.action-area {
    padding:
        30px 38px 34px;
}

.submit-button {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 11px;
    background:
        linear-gradient(
            135deg,
            #174f7d,
            #2378aa
        );
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
    transition: .18s ease;
}

.submit-button:hover {
    transform:
        translateY(-1px);
    box-shadow:
        0 10px 24px
        rgba(28, 96, 145, .20);
}

.submit-button strong {
    font-size: 21px;
}

.secure-note {
    margin-top: 13px;
    text-align: center;
    color: #8893a2;
    font-size: 12px;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        rgba(16, 27, 43, .72);
}

.overlay.active {
    display: flex;
}

.result-card {
    width: 100%;
    max-width: 430px;
    padding: 34px;
    background: white;
    border-radius: 20px;
    text-align: center;
    box-shadow:
        0 24px 65px
        rgba(0, 0, 0, .24);
}

.result-icon {
    width: 64px;
    height: 64px;
    margin:
        0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf2f7;
    font-size: 28px;
    font-weight: 900;
}

.result-card h2 {
    margin:
        0 0 10px;
}

.result-card p {
    margin: 0;
    color: #788396;
    line-height: 1.55;
}

.spinner {
    width: 34px;
    height: 34px;
    margin:
        22px auto 4px;
    border:
        4px solid #e6ebf0;
    border-top-color: #1e6398;
    border-radius: 50%;
    animation:
        spin .8s linear infinite;
}

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

.close-result {
    margin-top: 22px;
    min-width: 125px;
    padding: 11px 22px;
    border: none;
    border-radius: 9px;
    background: #174f7d;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

@media
(max-width: 700px) {

    .page {
        padding:
            22px 12px;
    }

    .portal-header {
        padding:
            26px 20px;
        align-items:
            flex-start;
    }

    .logo-box {
        width: 55px;
        height: 55px;
        border-radius: 14px;
        font-size: 22px;
    }

    .portal-header h1 {
        font-size: 24px;
    }

    .section {
        padding:
            26px 20px;
    }

    .campaign-grid,
    .field-grid {
        grid-template-columns:
            1fr;
    }

    .field.full {
        grid-column:
            auto;
    }

    .action-area {
        padding:
            25px 20px 30px;
    }
}

.retreaver-button {
    margin-top: 12px;
    background: linear-gradient(
        135deg,
        #176b53,
        #24936f
    );
}

.retreaver-button:hover {
    box-shadow:
        0 10px 24px
        rgba(23, 107, 83, .20);
}

.submit-button.disabled,
.submit-button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
