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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Lexend", sans-serif;
    color: #25221d;
    background: linear-gradient(to bottom, #fffdf3 0%, #ffefcf 100%);
    min-height: 100vh;
}

.page {
    width: 100%;
    min-height: 100vh;
    padding: 70px 20px 30px;
}

.hero {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 55px;
}

.logo {
    width: min(580px, 80vw);
    height: auto;
    animation: floating 4s ease-in-out infinite;
    filter: drop-shadow(0 15px 25px rgba(67, 48, 20, 0.10));
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-content h1 {
    font-size: clamp(32px, 6vw, 58px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: #a71223;
}

.subtitle {
    font-size: clamp(18px, 3vw, 23px);
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 8px;
}

.description {
    font-size: 15px;
    color: #000;
    line-height: 1.6;
    font-weight: 200;
}

.form-section {
    width: 100%;
    max-width: 600px;
    margin: 50px auto 0;
}

#applicationForm {
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(81, 61, 28, 0.10), 0 2px 8px rgba(81, 61, 28, 0.04);
    backdrop-filter: blur(12px);
}

.form-group {
    margin-bottom: 14px;
}

input, select {
    width: 100%;
    height: 58px;
    border: 1px solid #e7dfcf;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    padding: 0 18px;
    font-family: "Lexend", sans-serif;
    font-size: 15px;
    color: #25221d;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input::placeholder {
    color: #9a9387;
}

select {
    appearance: none;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, #777064 50%),
        linear-gradient(135deg, #777064 50%, transparent 50%);
    background-position: calc(100% - 21px) 25px, calc(100% - 16px) 25px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

input:focus, select:focus {
    border-color: #bca26d;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(188, 162, 109, 0.12);
}

.input-error {
    border-color: #c97979 !important;
    box-shadow: 0 0 0 4px rgba(201, 121, 121, 0.10) !important;
}

.positions {
    margin-top: 28px;
    margin-bottom: 30px;
}

.positions-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 17px;
}

.checkbox-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 14px;
    color: #4c473e;
    margin-bottom: 13px;
    cursor: pointer;
    user-select: none;
}

.checkbox-row input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 1px solid #d7cdbb;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-row:hover .checkmark {
    border-color: #bca26d;
}

.checkbox-row input:checked + .checkmark {
    background: #25221d;
    border-color: #25221d;
}

.checkbox-row input:checked + .checkmark::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 9px;
    left: 6px;
    top: 3px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.submit-button {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 15px;
    background: #25221d;
    color: #ffffff;
    font-family: "Lexend", sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    background: #353128;
    box-shadow: 0 10px 25px rgba(37, 34, 29, 0.18);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.button-arrow {
    font-size: 20px;
    line-height: 1;
}

.form-message {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.form-message.success {
    display: block;
    background: #edf7ed;
    color: #3d683d;
}

.form-message.error {
    display: block;
    background: #f9eded;
    color: #8a4747;
}

footer {
    text-align: center;
    margin-top: 45px;
    color: #8b8375;
    font-size: 12px;
}

@media (max-width: 600px) {
    .page {
        padding: 45px 16px 25px;
    }

    .logo-wrapper {
        margin-bottom: 40px;
    }

    .logo {
        width: min(320px, 80vw);
    }

    .hero-content h1 {
        letter-spacing: -1.2px;
        margin-bottom: 20px;
    }

    .subtitle {
        font-size: 17px;
    }

    .description {
        font-size: 14px;
    }

    .form-section {
        margin-top: 35px;
    }

    #applicationForm {
        padding: 22px;
        border-radius: 22px;
    }

    input, select {
        height: 55px;
        font-size: 14px;
    }

    .submit-button {
        height: 56px;
    }
}
