*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --color-brand: #7ddd9a;
    --color-brand-soft: #dff7e7;
    --color-bg: #f4fff8;
    --color-surface: #ffffff;
    --color-text: #0f1720;
    --color-text-soft: #4a5a52;
    --color-border: #bfe8cb;
    --color-accent: #ffb86b;
    --color-button-hover: #162330;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, var(--color-bg) 0%, #ecfff3 100%);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
}

header,
main,
footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
}

header {
    padding-top: 40px;
    padding-bottom: 24px;
}

header img {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 20px rgba(125, 221, 154, 0.28));
}

h1 {
    margin: 0;
    font-size: 2.4rem;
    color: var(--color-text);
}

h5 {
    margin: 8px 0 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-soft);
}

main {
    flex: 1;
    justify-content: center;
    width: 100%;
    max-width: 700px;
    padding-top: 16px;
    padding-bottom: 16px;
}

main h3 {
    margin-bottom: 20px;
    color: var(--color-text);
}

form {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--color-surface);
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 32, 0.08);
}

label {
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
}

input,
textarea,
button {
    width: 100%;
    font: inherit;
    padding: 12px 14px;
    border-radius: 10px;
}

input,
textarea {
    border: 1px solid var(--color-border);
    background-color: #fafffc;
    color: var(--color-text);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 4px rgba(125, 221, 154, 0.25);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

button {
    border: none;
    background-color: var(--color-text);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

button:hover {
    background-color: var(--color-button-hover);
    transform: translateY(-1px);
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 184, 107, 0.35);
}

footer {
    padding-top: 24px;
    padding-bottom: 40px;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    margin-bottom: 8px;
    color: var(--color-text-soft);
}

a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: #2f7a4a;
    text-decoration: underline;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.alert {
    width: 100%;
    max-width: 520px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #e8fff0;
    color: #17653a;
    border-color: #b7ebc8;
}

.alert-error {
    background-color: #fff0f0;
    color: #8a1f1f;
    border-color: #efb2b2;
}

@media (max-width: 480px) {
    header,
    main,
    footer {
        padding-left: 12px;
        padding-right: 12px;
    }

    header img {
        max-width: 140px;
    }

    h1 {
        font-size: 1.9rem;
    }

    form {
        padding: 18px;
    }
}