/* Form page specific styles */
body.form-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: linear-gradient(145deg, rgba(0, 118, 16, 0.15), rgba(116, 244, 159, 0.05));
}

body.form-page main {
    max-width: 640px;
    width: 100%;
    margin: 42px 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 42px 40px 50px;
}

body.form-page h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

p.description {
    margin: 0 0 26px;
    color: var(--muted);
    line-height: 1.6;
}

form {
    display: grid;
    gap: 18px;
}

form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

form label span {
    color: var(--muted);
    font-weight: 500;
}

input, textarea, select {
    border: 1px solid rgba(31, 31, 31, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    background: #fcfcfd;
    transition: border 0.18s ease, box-shadow 0.18s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(255, 107, 53, 0.7);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select:hover {
    border-color: rgba(249, 200, 5, 0.4);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

button, a.button-link {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

button[type="submit"] {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px -18px rgba(0, 134, 36, 0.8);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

button[type="submit"]:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -18px rgba(226, 88, 38, 0.8);
}

a.button-link {
    background: rgba(31, 31, 31, 0.08);
    color: var(--text);
}

.status {
    display: none;
    margin-top: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
}

.status.success {
    display: block;
    background: rgba(76, 175, 80, 0.12);
    color: #2c7a35;
}

.status.error {
    display: block;
    background: rgba(229, 57, 53, 0.12);
    color: #a12420;
}

@media (max-width: 540px) {
    body.form-page main {
        margin: 24px 14px;
        padding: 32px 20px 38px;
    }

    .actions {
        justify-content: stretch;
    }

    button, a.button-link {
        flex: 1;
        text-align: center;
    }
}
