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

:root {
    --bg: #0f0e0c;
    --surface: #1a1915;
    --surface2: #232118;
    --border: #2e2b22;
    --amber: #f5b83d;
    --amber-dim: #c4922a;
    --text: #e8e2d4;
    --text-muted: #7a7260;
    --red: #e05c5c;
    --green: #4caf7d;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 60% 40% at 50% -10%, rgba(245,184,61,0.08) 0%, transparent 70%);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(15,14,12,0.85);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--amber);
    letter-spacing: -0.02em;
}

.logo span { color: var(--text); }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover { color: var(--amber); }

main {
    max-width: 600px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}

.hero {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeUp 0.6s ease both;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--text);
    margin-bottom: 8px;
}

.hero h1 em {
    font-style: italic;
    color: var(--amber);
}

.hero p { color: var(--text-muted); font-size: 0.95rem; }

.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 0 0 1px rgba(245,184,61,0.04), 0 24px 48px rgba(0,0,0,0.4);
    animation: fadeUp 0.6s 0.1s ease both;
}

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

.form-group:last-of-type { margin-bottom: 0; }

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.required { color: var(--amber); margin-left: 2px; }

textarea, select, input[type="text"] {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

textarea:focus, select:focus, input[type="text"]:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245,184,61,0.1);
}

textarea::placeholder, input::placeholder { color: var(--text-muted); }

.type-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface2);
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
}

.toggle-option input[type="radio"] { display: none; }

.toggle-option:has(input:checked) {
    border-color: var(--amber);
    color: var(--amber);
    background: rgba(245,184,61,0.06);
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

.btn-submit {
    width: 100%;
    background: var(--amber);
    color: #0f0e0c;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 32px;
}

.btn-submit:hover:not(:disabled) {
    background: #ffd06b;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(245,184,61,0.3);
}

.btn-submit:active:not(:disabled) { transform: translateY(0); }

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.message {
    display: none;
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeUp 0.3s ease both;
}

.message.success {
    background: rgba(76,175,125,0.12);
    border: 1px solid rgba(76,175,125,0.3);
    color: var(--green);
}

.message.error {
    background: rgba(224,92,92,0.1);
    border: 1px solid rgba(224,92,92,0.3);
    color: var(--red);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    header { padding: 16px 20px; }
    main { padding: 40px 16px 60px; }
    .form-card { padding: 24px 20px; }
}
