:root {
    --bg-canvas: #0a0a0a;
    --bg-panel: #141414;
    --bg-input: #101010;
    --text-primary: #f5f5f5;
    --text-muted: #a3a3a3;
    --stroke: #2a2a2a;
    --accent: #22d3ee;
    --accent-strong: #06b6d4;
    --danger: #f87171;
    --success: #34d399;
    --shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.16), transparent 28%),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.06), transparent 25%),
        linear-gradient(160deg, #050505, #101010 45%, #0d0d0d);
    color: var(--text-primary);
    font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    line-height: 1.45;
}

.min-h-screen {
    min-height: 100vh;
}

.bg-canvas {
    background-color: transparent;
}

.text-primary {
    color: var(--text-primary);
}

.page-wrap {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.panel {
    width: 100%;
    max-width: 820px;
    background: linear-gradient(170deg, rgba(28, 28, 28, 0.96), rgba(18, 18, 18, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.125rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(2px);
}

.panel-head {
    margin-bottom: 1.25rem;
}

.eyebrow {
    margin: 0;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    font-weight: 700;
}

h1 {
    margin: 0.4rem 0 0;
    font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.subtitle {
    margin: 0.65rem 0 0;
    color: var(--text-muted);
    max-width: 54ch;
}

.alert {
    border-radius: 0.75rem;
    padding: 0.8rem 0.95rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(52, 211, 153, 0.4);
    color: #86efac;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fecaca;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.grid {
    display: grid;
    gap: 0.85rem;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.label {
    font-size: 0.88rem;
    color: #e6e6e6;
    font-weight: 600;
}

.required {
    color: var(--accent);
}

.input {
    width: 100%;
    border: 1px solid var(--stroke);
    border-radius: 0.75rem;
    background: var(--bg-input);
    color: var(--text-primary);
    padding: 0.72rem 0.82rem;
    font-size: 0.96rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input::placeholder {
    color: #7e7e7e;
}

.input:focus {
    border-color: rgba(34, 211, 238, 0.8);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
    background: #0f0f0f;
}

.select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(245, 245, 245, 0.7) 50%),
        linear-gradient(135deg, rgba(245, 245, 245, 0.7) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.2rem;
}

.textarea {
    resize: vertical;
    min-height: 110px;
}

.input-error {
    border-color: rgba(248, 113, 113, 0.9);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16);
}

.field-error {
    margin: 0;
    font-size: 0.8rem;
    color: #fca5a5;
}

.btn {
    border: 0;
    border-radius: 0.78rem;
    padding: 0.82rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #031218;
    box-shadow: 0 12px 22px rgba(34, 211, 238, 0.18);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(34, 211, 238, 0.26);
}

.btn-primary:active {
    transform: translateY(0);
}

.hint {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.honeypot {
    position: absolute;
    left: -99999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .panel {
        padding: 1.15rem;
        border-radius: 1rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .page-wrap {
        align-items: flex-start;
        padding-top: 1.2rem;
    }
}
