/* =============================================================================
 * Regilyze — CONTACT PAGE STYLES
 * =============================================================================
 * EXTRACTED FROM contact.php ON 2026-08-18 (SXO fix S1).
 *
 * WHY. This was 16.8 KB of CSS inlined into a <style> tag in the page body.
 * Inline CSS is never cached: the browser re-downloads and re-parses every byte
 * of it on each page view. Across the public pages the site was re-sending
 * ~92 KB of uncacheable CSS per homepage view (49.6 KB here, 24.7 KB from
 * includes/header.php, 18 KB from includes/footer.php).
 *
 * As an external file under /css/ it is fetched once and then served from cache
 * for a year — .htaccess already sets `Cache-Control: public, max-age=31536000,
 * immutable` for that directory. The ?v= cache-buster on the <link> means a
 * deploy still invalidates it immediately.
 *
 * ORDER IS LOAD-BEARING. The <link> that replaced the <style> sits at the exact
 * same position in the document, which keeps the cascade identical:
 *     styles.min.css → ux-enhancements.css → rgz-shell.css (all in <head>)
 *       → THIS FILE (page body, top)
 *         → rgz-footer.css (page body, bottom)
 * Do not hoist it into <head>: it must stay after rgz-shell.css, and it must
 * stay before rgz-footer.css. It depends on the :root custom properties that
 * rgz-shell.css defines.
 * =============================================================================
 */
/* Page-wide overflow guard — same fix as landing/services/about */
html { overflow-x: clip; max-width: 100%; }
body { overflow-x: clip; max-width: 100%; }
@supports not (overflow-x: clip) {
    html, body { overflow-x: hidden; }
}

/* ============================================================
   DESKTOP-SITE-MODE GRACEFUL DEGRADATION
   Same approach as landing/about pages.
   ============================================================ */
.contact-header, .contact-main-section, .quick-answers-section {
    max-width: 100%;
    overflow-x: clip;
}
@supports not (overflow-x: clip) {
    .contact-header, .contact-main-section, .quick-answers-section {
        overflow-x: hidden;
    }
}
.contact-header .container,
.contact-main-section .container,
.quick-answers-section .container {
    max-width: 100%;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}
.contact-header h1, .contact-header p,
.contact-info h2, .contact-intro,
.contact-method-body h3, .contact-method-value,
.qa-card h3, .qa-card p,
.form-label, .form-input, .contact-form-title, .contact-form-subtitle {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ============================================================
   CONTACT PAGE
   Sections: Header → Info+Form (side-by-side) → Quick Answers
   ============================================================ */

/* ---------- Page Header ---------- */
.contact-header {
    background: var(--bg-cream);
    padding: 4rem 0 3rem;
    text-align: center;
}
.contact-header .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.contact-header .breadcrumb a { color: var(--accent-orange); text-decoration: none; }
.contact-header .breadcrumb a:hover { text-decoration: underline; }
.contact-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.contact-header p {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.contact-header .highlight-text { color: var(--accent-orange); font-weight: 600; }

/* ---------- CONTACT MAIN (side-by-side info + form) ---------- */
.contact-main-section {
    padding: 4rem 0 5rem;
    background: var(--bg-white);
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* LEFT — Contact Info column */
.contact-info {
    position: sticky;
    top: 100px;
}
.contact-info h2 {
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.contact-intro {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Contact methods (Email · Phone · WhatsApp) */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}
.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1rem 1.125rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.25s var(--ease);
}
.contact-method:hover {
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,53,0.1);
    text-decoration: none;
}
.contact-method-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-orange-light);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-method-icon svg { width: 20px; height: 20px; stroke: var(--accent-orange); fill: none; }
.contact-method-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-method-body h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cm-badge {
    display: inline-block;
    background: var(--accent-green-light);
    color: var(--accent-green);
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.contact-method-value {
    font-size: 0.875rem;
    color: var(--accent-orange);
    font-weight: 600;
    word-break: break-word;
}

/* Hours card */
.hours-card {
    background: var(--bg-cream);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}
.hours-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.hours-card h3 svg { width: 16px; height: 16px; stroke: var(--accent-orange); fill: none; }
.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.875rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255,107,53,0.1);
}
.hours-row:last-of-type { border-bottom: none; }
.hours-row span:first-child { color: var(--text-secondary); font-weight: 500; }
.hours-row span:last-child { color: var(--text-primary); font-weight: 600; }
.hours-note {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px dashed rgba(255,107,53,0.2);
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* RIGHT — Form */
.contact-form-wrap {
    background: var(--bg-cream);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
}
.contact-form-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.contact-form-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.6;
    font-size: 0.9375rem;
}

@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 640px;
    }
    .contact-info { position: static; text-align: center; }
    .contact-info h2 { text-align: center; }
    .contact-intro { text-align: center; }
    .contact-methods { max-width: 460px; margin-left: auto; margin-right: auto; }
    .hours-card { max-width: 460px; margin-left: auto; margin-right: auto; }
    .contact-method { text-align: left; }
    .contact-main-section { padding: 3rem 0 4rem; }
}

@media (max-width: 640px) {
    .contact-main-section { padding: 2.5rem 0 3rem; }
    .contact-layout { gap: 1.5rem; }
    .contact-form-wrap { padding: 1.75rem 1.25rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
    .form-row .form-group { margin-bottom: 1rem; }
    .contact-method { padding: 0.875rem 1rem; gap: 12px; }
    .contact-method-icon { width: 40px; height: 40px; }
    .contact-method-icon svg { width: 18px; height: 18px; }
}

@media (max-width: 480px) {
    .contact-info h2 { font-size: 1.5rem; }
    .contact-intro { font-size: 0.875rem; }
    .contact-method-body h3 { font-size: 0.8125rem; }
    .contact-method-value { font-size: 0.8125rem; }
    .contact-form-title { font-size: 1.25rem; }
    .contact-form-subtitle { font-size: 0.875rem; }
    .form-input { padding: 0.6875rem 0.875rem; }
    .hours-card { padding: 1rem; }
    .hours-row { font-size: 0.8125rem; }
}

@media (max-width: 360px) {
    .contact-info h2 { font-size: 1.375rem; }
    .contact-form-wrap { padding: 1.5rem 1rem; }
    .hours-card { padding: 0.875rem; }
    .hours-row { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 0; }
}

/* Touch device hover guards */
@media (hover: none) and (pointer: coarse) {
    .contact-method:hover { transform: none; }
}

/* ============================================================
   FORM ELEMENTS (inputs, labels, button, checkbox)
   iOS auto-zoom prevention via min font-size 16px on inputs.
   ============================================================ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    font-family: var(--font-body);
    font-size: 16px; /* CRITICAL: prevents iOS auto-zoom on focus */
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    line-height: 1.5;
}
.form-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
}
.form-input::placeholder { color: var(--text-tertiary); }
.form-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
    font-family: var(--font-body);
}
select.form-input {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 2.75rem;
    cursor: pointer;
}
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent-orange);
    flex-shrink: 0;
    cursor: pointer;
}

/* SUBMIT BUTTON — full orange pill button matching landing page */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--accent-orange);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    -webkit-appearance: none;
    appearance: none;
    margin-top: 0.5rem;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}
.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,53,0.35);
    background: #E55B2B;
    color: white;
}
.btn-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255,107,53,0.3);
}
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.btn-submit svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

/* Login gate (shown to logged-out visitors instead of the form) — v2 */
.contact-login-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 0 0.25rem;
    text-align: center;
}
.clg-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,107,53,0.10);
    color: var(--accent-orange);
}
.clg-icon svg { width: 26px; height: 26px; }
.clg-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8125rem 1.5rem;
    background: transparent;
    color: var(--accent-orange);
    border: 1.5px solid var(--accent-orange);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-decoration: none;
    line-height: 1.4;
}
.btn-secondary:hover {
    background: rgba(255,107,53,0.08);
    transform: translateY(-2px);
}
.clg-note {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin: 0;
    line-height: 1.6;
}
.clg-note a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
}
.clg-note a:hover { text-decoration: underline; }

.privacy-note {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.5;
}
.privacy-note a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
}
.privacy-note a:hover { text-decoration: underline; }

/* Touch device — no hover-lift, just slight press feedback */
@media (hover: none) and (pointer: coarse) {
    .btn-submit:hover { transform: none; box-shadow: none; }
    .btn-submit:active { transform: scale(0.98); }
}

/* ---------- QUICK ANSWERS ---------- */
.quick-answers-section {
    padding: 5rem 0;
    background: var(--bg-cream);
}
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}
.section-header .section-label {
    display: inline-block;
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.qa-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}
.qa-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    transition: all 0.3s var(--ease);
}
.qa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(26,26,27,0.06);
    border-color: var(--accent-orange);
}
.qa-card-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
}
.qa-card-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.qa-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.qa-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.qa-card a { color: var(--accent-orange); text-decoration: none; font-weight: 600; }
.qa-card a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .qa-grid { grid-template-columns: 1fr; max-width: 460px; }
    .quick-answers-section { padding: 4rem 0; }
}

/* ============================================================
   MOBILE — extra polish for header + Q&A
   (Main contact-layout has its own breakpoints above)
   ============================================================ */
@media (max-width: 640px) {
    .contact-header { padding: 3rem 0 2.25rem; }
    .quick-answers-section { padding: 3rem 0; }
    .qa-card { padding: 1.5rem 1.25rem; text-align: center; }
    .qa-card-icon { display: inline-flex; }
}
@media (max-width: 480px) {
    .contact-header h1 { font-size: 1.875rem; }
    .contact-header p { font-size: 0.9375rem; }
    .qa-card { padding: 1.25rem 1rem; }
    .qa-card h3 { font-size: 0.9375rem; }
    .qa-card p { font-size: 0.8125rem; }
}
@media (max-width: 360px) {
    .contact-header h1 { font-size: 1.5rem; }
    .qa-card-icon { width: 36px; height: 36px; }
    .qa-card-icon svg { width: 18px; height: 18px; }
}

/* Touch-only hover guards */
@media (hover: none) and (pointer: coarse) {
    .qa-card:hover { transform: none; }
}

/* Form alert (success/error) */
.form-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    text-align: center;
    font-weight: 600;
}
.form-alert.success {
    background: #ECFDF5;
    border: 1.5px solid #BBF7D0;
    color: #065F46;
}
.form-alert.error {
    background: #FEF2F2;
    border: 1.5px solid #FECACA;
    color: #991B1B;
}
