@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --brand-primary: #009a44;
    --brand-primary-dark: #063d24;
    --brand-primary-light: #dff5e8;
    --ink: #17231d;
    --muted: #627167;
    --line: #dce8e1;
    --surface: #ffffff;
    --soft: #f4f8f6;
    --font-heading: "Roboto", sans-serif;
    --font-ui: "Roboto", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-ui);
    line-height: 1.5;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    background: #009a3e;
    box-shadow: 0 10px 24px rgba(0, 73, 28, 0.18);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 86px;
    padding: 0.75rem 0;
}

.logo {
    flex: 0 0 auto;
}

.logo a {
    display: inline-flex;
    align-items: center;
}

.logo img {
    display: block;
    width: auto;
    max-height: 54px;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

.cv-page {
    padding-top: 86px;
    background:
        linear-gradient(180deg, rgba(0, 154, 68, 0.07) 0, rgba(255, 255, 255, 0) 360px),
        #fff;
}

.cv-hero {
    padding: 4.2rem 0 2.4rem;
}

.cv-hero-copy {
    display: grid;
    align-content: center;
    gap: 1rem;
}

.section-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: var(--brand-primary-light);
    color: var(--brand-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cv-hero-copy h1 {
    max-width: 780px;
    color: var(--brand-primary-dark);
    font-family: var(--font-heading);
    font-size: clamp(2.55rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
}

.cv-hero-copy p {
    max-width: 650px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.cv-form {
    border: 1px solid rgba(0, 154, 68, 0.14);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 45px rgba(8, 65, 35, 0.09);
}

.cv-form-section {
    padding: 0 0 4rem;
}

.cv-form {
    padding: clamp(1.15rem, 3vw, 2rem);
}

.form-heading {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.55rem;
}

.form-heading h2 {
    color: var(--brand-primary-dark);
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.05;
}

.form-heading p {
    color: var(--muted);
}

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

.form-field {
    display: grid;
    gap: 0.4rem;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field span {
    color: var(--brand-primary-dark);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-field input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 0.85rem 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(0, 154, 68, 0.12);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.form-status {
    min-height: 1.4rem;
    color: var(--muted);
    font-weight: 700;
}

.form-status.is-error {
    color: #a32a22;
}

.form-status.is-success {
    color: var(--brand-primary-dark);
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    min-width: 170px;
    border: 0;
    border-radius: 8px;
    background: var(--brand-primary);
    color: #fff;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0.9rem 1.25rem;
    text-transform: uppercase;
    transition: background 0.2s ease, transform 0.2s ease;
}

.submit-button:hover {
    background: #067a39;
    transform: translateY(-1px);
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

@media (max-width: 768px) {
    .cv-page {
        padding-top: 82px;
    }

    .navbar .container {
        min-height: 82px;
    }

    .logo img {
        max-height: 44px;
    }

    .cv-hero {
        padding: 3rem 0 1.8rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-wide {
        grid-column: auto;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .submit-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 1rem, 1200px);
    }

    .navbar .container {
        flex-direction: column;
        justify-content: center;
        padding: 0.85rem 0;
    }

    .nav-links a {
        font-size: 0.82rem;
        text-align: center;
    }

    .cv-form {
        padding: 1rem;
    }
}
