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

html {
    font-size: 10px;
}

body {
    min-height: 100vh;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    background-color: #eef5f0;
    color: #1d2a35;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(74, 183, 129, 0.18), transparent 28%),
      radial-gradient(circle at bottom right, rgba(41, 121, 255, 0.12), transparent 24%);
    pointer-events: none;
    z-index: -1;
}

#main {
    max-width: 880px;
    margin: 0 auto;
    padding: 2.5rem 1rem 3rem;
}

.form-shell {
    display: grid;
    gap: 2rem;
}

.hero-card {
    display: grid;
    gap: 1.5rem;
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 28px 80px rgba(30, 80, 60, 0.08);
    overflow: hidden;
}

#photo-div {
    min-height: 320px;
    width: 100%;
    background-image: linear-gradient(180deg, rgba(75, 175, 125, 0.18), rgba(255, 255, 255, 0.3)),
      url(workaholic.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 18px;
}

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

.eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #2f6652;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-card h1 {
    font-size: clamp(3.4rem, 2.1vw, 4.4rem);
    line-height: 1.03;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.7rem;
    line-height: 1.8;
    color: #47535c;
    max-width: 720px;
}

.hero-text span {
    color: #dd3c53;
    font-weight: 700;
}

form {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(15, 44, 55, 0.08);
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.section-heading {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 1.5rem 1.4rem 1rem;
    background: #f6fbf7;
    border-radius: 18px;
    border: 1px solid rgba(46, 140, 97, 0.12);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #274737;
}

.section-description {
    font-size: 1.45rem;
    color: #4b5f62;
    line-height: 1.6;
    margin: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.form-group label {
    font-size: 1.45rem;
    font-weight: 600;
    color: #233041;
}

.form-group label span {
    color: #dd3c53;
}

.form-group label small {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(35, 48, 65, 0.55);
    margin-left: 0.35rem;
}

.form-control {
    width: 100%;
    min-height: 4.6rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(35, 48, 65, 0.12);
    border-radius: 14px;
    font-size: 1.6rem;
    color: #17222a;
    background: #f7fbf8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

textarea.form-control {
    min-height: 10rem;
    resize: vertical;
}

.form-control::placeholder {
    color: rgba(35, 48, 65, 0.45);
}

.form-control:focus {
    outline: none;
    background: #ffffff;
    border-color: #49a673;
    box-shadow: 0 0 0 0.18rem rgba(73, 166, 115, 0.18);
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

#submit-button,
#reset-button {
    border: none;
    border-radius: 14px;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    padding: 1.2rem 2rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#submit-button {
    background-color: #2e8c61;
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(46, 140, 97, 0.18);
}

#submit-button:hover,
#submit-button:focus-visible {
    background-color: #277d57;
    transform: translateY(-1px);
}

#reset-button {
    background: transparent;
    color: #2e8c61;
    border: 1px solid rgba(46, 140, 97, 0.3);
}

#reset-button:hover,
#reset-button:focus-visible {
    background: rgba(46, 140, 97, 0.06);
    transform: translateY(-1px);
}

#loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(14, 24, 34, 0.24);
    backdrop-filter: blur(3px);
    z-index: 999;
    pointer-events: none;
}

#loading-overlay.visible {
    display: flex;
    pointer-events: auto;
}

body.loading #main {
    filter: blur(4px);
    transition: filter 0.25s ease;
    user-select: none;
}

.loading-spinner {
    width: 5.4rem;
    height: 5.4rem;
    border: 0.7rem solid rgba(255, 255, 255, 0.9);
    border-top-color: #2e8c61;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 0 0.35rem rgba(255, 255, 255, 0.15);
}

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

@media (max-width: 720px) {
    .hero-card,
    form {
        padding: 1.6rem;
    }

    .hero-card h1 {
        font-size: 3rem;
    }

    .form-control {
        min-height: 4.2rem;
    }
}

@media (max-width: 520px) {
    #main {
        padding: 1.5rem 0.8rem 2rem;
    }

    .hero-card,
    form {
        border-radius: 20px;
    }

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

    #submit-button,
    #reset-button {
        width: 100%;
    }
}
