/* ============================================================
   ROTOWIZARDS — CONTACT PAGE STYLES
   ============================================================ */

/* Global fix — prevent left-drift on wide screens */
.rw-contact-page,
.rw-contact-page *,
.rw-contact-page *::before,
.rw-contact-page *::after {
    box-sizing: border-box;
}

.rw-contact-page {
    width: 100%;
    overflow-x: hidden;
}

.rw-page-hero,
.rw-contact-wrap,
.rw-cta-banner {
    width: 100%;
}

/* ── Page hero ─────────────────────────────────────────────── */
.rw-page-hero {
    background: var(--rw-dark);
    padding: 72px 40px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rw-page-hero--compact {
    padding: 40px 40px 36px;
}

.rw-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(10,191,188,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(124,58,237,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.rw-page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.rw-page-hero h1 {
    font-family: 'Barlow', sans-serif;
    font-weight: 900;
    font-size: clamp(36px, 5vw, 56px);
    color: #fff;
    margin: 8px 0 16px;
    letter-spacing: -0.5px;
}

.rw-page-hero h1 .highlight {
    background: var(--rw-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rw-page-hero-desc {
    font-size: 17px;
    color: var(--rw-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ── Layout ────────────────────────────────────────────────── */
.rw-contact-wrap {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 64px 40px;
    box-sizing: border-box;
}

/* ── Alerts ────────────────────────────────────────────────── */
.rw-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--rw-radius);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.rw-alert-success {
    background: rgba(10,191,188,0.1);
    border: 1px solid rgba(10,191,188,0.3);
    color: #0D9488;
}

.rw-alert-error {
    background: rgba(220,38,38,0.08);
    border: 1px solid rgba(220,38,38,0.25);
    color: #DC2626;
}

.rw-alert a { color: inherit; font-weight: 700; }

/* ── Form ──────────────────────────────────────────────────── */
.rw-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rw-form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rw-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rw-form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.rw-form-group label span {
    color: var(--rw-teal-dark);
}

.rw-form-group input,
.rw-form-group select,
.rw-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #1F2937;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.rw-form-group input:focus,
.rw-form-group select:focus,
.rw-form-group textarea:focus {
    outline: none;
    border-color: var(--rw-teal);
    box-shadow: 0 0 0 3px rgba(10,191,188,0.15);
}

.rw-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

.rw-form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.rw-form-group input::placeholder,
.rw-form-group textarea::placeholder {
    color: #9CA3AF;
}

.rw-contact-form .rw-btn {
    align-self: flex-start;
    padding: 13px 28px;
}

/* ── Info sidebar ──────────────────────────────────────────── */
.rw-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rw-contact-card {
    display: flex;
    gap: 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: var(--rw-radius);
    padding: 22px;
    transition: box-shadow 0.2s;
}

.rw-contact-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.rw-contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rw-contact-card-icon.teal   { background: rgba(10,191,188,0.1); }
.rw-contact-card-icon.purple { background: rgba(124,58,237,0.1); }
.rw-contact-card-icon.gold   { background: rgba(245,158,11,0.1); }

.rw-contact-card h3 {
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    font-size: 17px;
    color: #0A0F1E;
    margin: 0 0 4px;
}

.rw-contact-card p {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 6px;
    line-height: 1.5;
}

.rw-contact-card a {
    font-weight: 700;
    font-size: 14px;
    color: var(--rw-teal-dark);
    text-decoration: none;
    word-break: break-all;
}

.rw-contact-card a:hover { color: var(--rw-purple); }

.rw-contact-note {
    margin-top: 6px !important;
    font-size: 12px !important;
    color: #9CA3AF !important;
}

/* Response time list */
.rw-response-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rw-response-list li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #374151;
    padding-bottom: 8px;
    border-bottom: 1px solid #E5E7EB;
}

.rw-response-list li:last-child { border-bottom: none; padding-bottom: 0; }

.rw-response-list li span:last-child {
    font-weight: 700;
    color: var(--rw-teal-dark);
}

/* ── Accessibility ─────────────────────────────────────────── */
.rw-visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .rw-contact-wrap {
        grid-template-columns: 1fr;
        padding: 48px 24px;
    }
    .rw-contact-info { order: -1; }
}

@media (max-width: 600px) {
    .rw-form-row-two { grid-template-columns: 1fr; }
    .rw-page-hero { padding: 48px 24px 40px; }
}
