:root {
    color-scheme: dark;
    --bg: #2b2c2f;
    --bg-2: #262628;
    --card: #2f2f31;
    --text: #e6e6e6;
    --muted: #b2b2b6;
    --border: rgba(255,255,255,0.08);
    --accent: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: radial-gradient(1200px 400px at 50% 10%, rgba(0,0,0,0.45), transparent 20%), linear-gradient(180deg, var(--bg), var(--bg-2));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: grid;
    place-items: center;
    padding: 26px 36px;
}

.card {
    width: min(100%, 720px);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
}

.card-title {
    margin: 0 0 10px;
    font-size: 1.8rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-weight: 700;
    color: var(--accent);
}

.card-description {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 1rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    font-weight: 600;
    font-size: 0.95rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    color: var(--text);
    background: #515151;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #444444;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

button {
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    padding: 11px 16px;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    background: #000000;
    cursor: pointer;
}

button:hover {
    background: #222222;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-status {
    min-height: 1.3em;
    font-size: 0.95rem;
}

.form-status.success {
    color: #8ee58b;
}

.form-status.error {
    color: #ff8b8b;
}

.form-status.loading {
    color: #d7d7d7;
}

.site-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.03);
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.site-footer a:hover {
    color: var(--text);
}

@media (max-width: 520px) {
    .card {
        padding: 24px;
    }

    .card-title {
        font-size: 1.4rem;
    }
}