/**
 * Phase 58.10 — Contact Us: full-width space glass (matches site shell + AdSense pillar).
 */

.sv-contact-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(1rem, 3vw, 2rem) clamp(0.75rem, 3vw, 1.5rem) clamp(2.5rem, 6vw, 4rem);
    box-sizing: border-box;
}

.sv-contact-hero {
    position: relative;
    text-align: center;
    padding: clamp(1.5rem, 4vw, 3rem) 1rem 1.25rem;
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

.sv-contact-hero-glow {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(720px, 90vw);
    height: min(280px, 40vh);
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.22) 0%, rgba(99, 102, 241, 0.12) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.sv-contact-title,
.sv-contact-lead {
    position: relative;
    z-index: 1;
}

.sv-contact-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--sv-text, #0f172a);
}

html[data-theme="dark"] .sv-contact-title {
    color: #f1f5f9;
}

.sv-contact-lead {
    margin: 0 auto;
    max-width: 42rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--sv-muted, #64748b);
}

.sv-contact-banner {
    max-width: 48rem;
    margin: 0 auto 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    background: rgba(6, 182, 212, 0.08);
    color: var(--sv-text, #0f172a);
    font-size: 0.95rem;
}

.sv-contact-banner--ok {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.1);
}

.sv-contact-banner--err {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.1);
}

.sv-contact-errors {
    max-width: 48rem;
    margin: 0 auto 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.sv-contact-layout {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.sv-contact-form {
    width: 100%;
    max-width: min(960px, 100%);
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.72), rgba(241, 245, 249, 0.55));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
}

html[data-theme="dark"] .sv-contact-form {
    border-color: rgba(51, 65, 85, 0.6);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.55));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.sv-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}

@media (max-width: 640px) {
    .sv-contact-grid {
        grid-template-columns: 1fr;
    }
}

.sv-contact-span2 {
    grid-column: 1 / -1;
}

.sv-contact-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--sv-muted, #64748b);
}

.sv-contact-input,
.sv-contact-textarea {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    color: var(--sv-text, #0f172a);
}

html[data-theme="dark"] .sv-contact-input,
html[data-theme="dark"] .sv-contact-textarea {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(71, 85, 105, 0.7);
    color: #f1f5f9;
}

.sv-contact-textarea {
    min-height: 10rem;
    resize: vertical;
}

.sv-contact-input:focus,
.sv-contact-textarea:focus {
    outline: none;
    border-color: rgba(6, 182, 212, 0.75);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.sv-contact-actions {
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
}

.sv-contact-submit {
    appearance: none;
    border: none;
    cursor: pointer;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    color: #042f2e;
    background: linear-gradient(135deg, #22d3ee, #14b8a6);
    box-shadow: 0 8px 28px rgba(6, 182, 212, 0.35);
}

.sv-contact-submit:hover {
    filter: brightness(1.05);
}

html[data-theme="dark"] .sv-contact-submit {
    color: #042f2e;
}
