:root {
    --navy: #062d63;
    --dark: #021b3f;
    --blue: #0878d8;
    --blue-dark: #0059b3;
    --line: #d5e0ea;
    --muted: #5c6c7f;
    --white: #ffffff;
    --page-background: #eef4f8;
    --success: #0d7a45;
    --error: #b42318;
    --shadow: 0 18px 42px rgba(10, 38, 76, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #0b2348;
    background: linear-gradient(#f9fbfd, var(--page-background));
}

button,
a,
input {
    font: inherit;
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 340px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-top: 8px solid #9ba9b6;
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(30, 115, 195, 0.32),
            transparent 28rem
        ),
        linear-gradient(
            115deg,
            #021b3f,
            #07356f 55%,
            #031f49
        );
}

.hero-content {
    width: min(900px, calc(100% - 36px));
    position: relative;
    z-index: 2;
    padding: 20px 0 30px;
    text-align: center;
    color: var(--white);
}

.rosti-logo {
    width: min(430px, 78vw);
    max-height: 185px;
    display: block;
    object-fit: contain;
    margin: 0 auto 18px;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero p {
    margin: 0;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    font-weight: 500;
    opacity: 0.9;
}

.wave {
    width: 52%;
    height: 145px;
    position: absolute;
    bottom: 0;
    opacity: 0.62;
    background-image: repeating-radial-gradient(
        ellipse at center,
        transparent 0 7px,
        rgba(0, 127, 255, 0.48) 8px 9px,
        transparent 10px 14px
    );
}

.wave.left {
    left: -15%;
    transform: rotate(7deg) skewY(-4deg);
}

.wave.right {
    right: -15%;
    transform: rotate(-7deg) skewY(4deg);
}

/* =========================
   PAGE LAYOUT
========================= */

.page-shell {
    width: min(1120px, calc(100% - 28px));
    flex: 1;
    margin: 34px auto 42px;
}

/*
   The template section now uses one centered card.
   The old two-column dashboard layout is removed.
*/

.resource-grid {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 28px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 20px;
    margin-bottom: 22px;
}

/* =========================
   CARDS
========================= */

.resource-card,
.upload-card,
.info-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.resource-card {
    width: 100%;
    max-width: 720px;
    padding: 38px 34px;
    text-align: center;
}

.upload-card {
    padding: 34px;
}

.info-card {
    padding: 26px;
}

.employee-card {
    background: #f7fbff;
    border-left: 6px solid var(--blue);
}

.eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--blue-dark);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.resource-card h2,
.section-heading h2,
.info-card h2 {
    margin: 0;
    color: var(--navy);
}

.resource-card h2 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.resource-card p,
.section-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.resource-card p {
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
}

.resource-card small {
    display: block;
    margin-top: 14px;
    color: var(--muted);
}

/* =========================
   BUTTONS
========================= */

.primary-link,
.secondary-link,
.btn,
.browse-button,
.submit-button {
    min-height: 48px;
    display: inline-grid;
    place-items: center;
    padding: 12px 24px;
    margin-top: 22px;
    color: var(--white);
    background: linear-gradient(#0a7fe5, #0065c8);
    border: 1px solid #0062bf;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 101, 200, 0.22);
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.primary-link:hover,
.btn:hover,
.browse-button:hover,
.submit-button:hover {
    color: var(--white);
    background: linear-gradient(#118cf4, #006acb);
    box-shadow: 0 10px 22px rgba(0, 101, 200, 0.3);
    transform: translateY(-1px);
}

.primary-link:focus-visible,
.secondary-link:focus-visible,
.btn:focus-visible,
.browse-button:focus-visible,
.submit-button:focus-visible {
    outline: 3px solid rgba(8, 120, 216, 0.3);
    outline-offset: 3px;
}

.secondary-link {
    background: var(--navy);
    border-color: var(--navy);
}

.secondary-link:hover {
    color: var(--white);
    background: var(--dark);
}

/* =========================
   UPLOAD SECTION
========================= */

.section-heading {
    margin-bottom: 24px;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.drop-zone {
    min-height: 390px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 36px;
    text-align: center;
    border: 3px dashed var(--blue);
    border-radius: 14px;
    background: linear-gradient(var(--white), #f8fbfe);
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.drop-zone:hover,
.drop-zone:focus,
.drop-zone.dragover {
    border-color: var(--blue-dark);
    background: #eff8ff;
}

.excel-icon {
    width: 78px;
    height: 92px;
    position: relative;
    border-radius: 6px;
    background: linear-gradient(
        135deg,
        #e4e9f0 0 68%,
        #ccd5df 68%
    );
}

.excel-icon span {
    width: 60px;
    height: 45px;
    position: absolute;
    left: -10px;
    bottom: 12px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: #168447;
    font-size: 2rem;
    font-weight: 850;
}

.drop-zone h3 {
    margin: 6px 0 0;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.drop-zone > p {
    margin: 0;
    color: var(--muted);
}

.browse-button {
    min-width: 210px;
    margin-top: 4px;
    border: 0;
}

.file-rules {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.88rem;
}

.file-rules i {
    width: 1px;
    min-height: 18px;
    background: #9eacba;
}

.selected-file {
    margin-top: 16px;
    padding: 14px 16px;
    background: #edf8f2;
    border: 1px solid #b6ddc6;
    border-radius: 8px;
}

.submit-button {
    width: 100%;
    margin-top: 16px;
    border: 0;
}

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

.status-message {
    min-height: 22px;
    margin-top: 12px;
    text-align: center;
}

.status-message.success {
    color: var(--success);
}

.status-message.error {
    color: var(--error);
}

/* =========================
   INFORMATION CARDS
========================= */

.info-card h2 {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--blue);
}

.steps {
    display: grid;
    gap: 17px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 13px;
    align-items: center;
}

.steps li > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--blue);
    border-radius: 50%;
    font-weight: 850;
}

.steps p {
    margin: 0;
}

.contact-row,
.security {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 13px;
    align-items: center;
    margin-bottom: 18px;
}

.contact-row > b,
.security > b {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--blue-dark);
    background: #e3f1fd;
    border-radius: 50%;
}

.contact-row strong,
.contact-row a,
.contact-row span,
.security strong,
.security span {
    display: block;
}

.security {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.security > b {
    color: var(--success);
    background: #e6f5ec;
}

/* =========================
   FOOTER
========================= */

footer {
    padding: 24px;
    text-align: center;
    color: var(--white);
    background: linear-gradient(
        90deg,
        #021b3f,
        #073470,
        #021b3f
    );
}

footer p {
    margin: 4px 0;
}

/* =========================
   TABLET
========================= */

@media (max-width: 820px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .resource-card {
        max-width: 680px;
        padding: 32px 24px;
    }

    .upload-card {
        padding: 22px;
    }

    .drop-zone {
        min-height: 340px;
        padding: 24px 16px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 520px) {
    .hero {
        min-height: 300px;
    }

    .page-shell {
        width: min(100% - 20px, 1120px);
        margin-top: 22px;
    }

    .resource-card,
    .upload-card,
    .info-card {
        border-radius: 12px;
    }

    .resource-card {
        padding: 28px 18px;
    }

    .primary-link,
    .secondary-link,
    .btn,
    .browse-button {
        width: 100%;
    }

    .drop-zone {
        min-height: 315px;
    }

    .file-rules {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .file-rules i {
        display: none;
    }

    .contact-row,
    .security {
        grid-template-columns: 42px 1fr;
    }

    .contact-row > b,
    .security > b {
        width: 40px;
        height: 40px;
    }
}
.filename-instructions {
    max-width: 650px;
    margin: 22px auto 0;
    padding: 18px 20px;
    border: 1px solid #d5e0ea;
    border-radius: 10px;
    background: #f7fafc;
    text-align: center;
}

.filename-instructions strong {
    display: block;
    margin-bottom: 10px;
}

.filename-instructions code {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 6px;
    background: #eaf2f8;
    color: #0059b3;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.95rem;
    font-weight: 700;
}

.filename-instructions p {
    margin: 12px 0 0;
    color: #5c6c7f;
}

.filename-instructions p strong {
    display: inline;
    margin: 0;
    color: #0b2348;
}

.upload-example {
    margin: 4px 0 18px;
    font-size: 0.92rem;
    color: #5c6c7f;
    text-align: center;
}

.upload-example strong {
    color: #0059b3;
}
