/**
 * Contact Page Styles
 * Handles all contact page sections and form styling
 *
 * @package Blocksy_Child_Response24
 */

/* ========================================
   SECTION 1 — PAGE HERO
   ======================================== */

.r24-contact-hero {
    background-color: var(--r24-dark);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--r24-white);
    padding: 100px 20px;
    text-align: center;
}

.r24-contact-hero .r24-container {
    max-width: 700px;
    margin: 0 auto;
}

.r24-contact-hero .r24-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--r24-red);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.r24-contact-hero h1 {
    font-size: 44px;
    font-weight: 800;
    color: var(--r24-white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.r24-contact-hero .r24-subheadline {
    font-size: 18px;
    color: var(--r24-text-grey);
    line-height: 1.7;
    margin: 0;
}

/* Emergency callout box */
.r24-emergency-callout {
    background-color: rgba(204, 0, 0, 0.15);
    border: 1px solid rgba(204, 0, 0, 0.40);
    border-radius: 4px;
    padding: 16px 20px;
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.r24-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--r24-red);
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.r24-emergency-callout p {
    font-size: 15px;
    color: var(--r24-white);
    margin: 0;
    text-align: left;
}

.r24-emergency-number {
    font-weight: 700;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .r24-contact-hero {
        padding: 55px 20px;
    }

    .r24-contact-hero h1 {
        font-size: 28px;
    }

    .r24-emergency-callout {
        flex-direction: column;
        text-align: center;
    }

    .r24-emergency-callout p {
        text-align: center;
    }
}

/* ========================================
   SECTION 2 — AUDIENCE CONTACT FORMS
   ======================================== */

.r24-contact-forms {
    background-color: var(--r24-section);
    padding: 80px 20px;
}

.r24-contact-forms .r24-container {
    max-width: var(--r24-max);
    margin: 0 auto;
}

/* Section header */
.r24-contact-forms h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--r24-text-dark);
    text-align: center;
    margin-bottom: 12px;
}

.r24-forms-subtext {
    font-size: 16px;
    color: var(--r24-text-mid);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
}

/* Tab navigation */
.r24-tab-nav {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.r24-tab {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--r24-border-lt);
    border-radius: 3px;
    background-color: var(--r24-white);
    color: var(--r24-text-mid);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.r24-tab:hover:not(.r24-tab-active) {
    border-color: var(--r24-red);
    color: var(--r24-red);
}

.r24-tab-active {
    background-color: var(--r24-red);
    color: var(--r24-white);
    border-color: var(--r24-red);
}

/* Tab panels */
.r24-tab-panel {
    display: none;
}

.r24-tab-panel.active {
    display: block;
}

.r24-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

/* Form column */
.r24-form-column h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--r24-text-dark);
    margin-bottom: 8px;
}

.r24-form-subtitle {
    font-size: 14px;
    color: var(--r24-text-mid);
    margin-bottom: 24px;
}

/* Form field styling */
.r24-placeholder-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--r24-text-dark);
    display: block;
    margin-bottom: 6px;
}

.r24-placeholder-form input[type="text"],
.r24-placeholder-form input[type="email"],
.r24-placeholder-form input[type="tel"],
.r24-placeholder-form select,
.r24-placeholder-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid var(--r24-border-lt);
    border-radius: 3px;
    background-color: var(--r24-white);
    color: var(--r24-text-dark);
    margin-bottom: 16px;
    display: block;
    font-family: inherit;
    transition: border-color 0.2s;
}

.r24-placeholder-form input:focus,
.r24-placeholder-form select:focus,
.r24-placeholder-form textarea:focus {
    border-color: var(--r24-red);
    outline: none;
}

.r24-placeholder-form textarea {
    min-height: 120px;
    resize: vertical;
}

.r24-placeholder-form select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23595959" d="M6 9L1 4h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Checkboxes and radios */
.r24-checkbox-group,
.r24-radio-group {
    margin-bottom: 16px;
}

.r24-checkbox-label,
.r24-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--r24-text-dark);
    font-weight: 400;
}

.r24-checkbox-label input[type="checkbox"],
.r24-radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: var(--r24-red);
}

/* Submit button */
.r24-submit-button {
    background-color: var(--r24-red);
    color: var(--r24-white);
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 3px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: inherit;
}

.r24-submit-button:hover {
    background-color: #AA0000;
}

/* Context panel (right column) */
.r24-context-panel {
    background-color: var(--r24-dark);
    border-radius: 4px;
    padding: 32px;
}

.r24-context-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--r24-red);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.r24-bullet {
    font-size: 14px;
    color: var(--r24-text-grey);
    line-height: 2;
    margin: 0;
}

.r24-context-divider {
    border-top: 1px solid var(--r24-border-dk);
    margin: 24px 0;
}

.r24-contact-line {
    font-size: 14px;
    color: var(--r24-text-grey);
    line-height: 2;
    margin: 0;
}

.r24-social-links {
    display: flex;
    gap: 16px;
}

.r24-social-links a {
    font-size: 13px;
    color: var(--r24-red);
    text-decoration: none;
    transition: opacity 0.2s;
}

.r24-social-links a:hover {
    opacity: 0.7;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .r24-contact-forms {
        padding: 55px 20px;
    }

    .r24-tab-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .r24-tab {
        font-size: 13px;
        padding: 10px 16px;
    }

    .r24-panel-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .r24-context-panel {
        padding: 24px;
    }
}

/* ========================================
   SECTION 3 — OFFICE & DIRECT CONTACT
   ======================================== */

.r24-contact-office {
    background-color: var(--r24-dark);
    color: var(--r24-white);
    padding: 70px 20px;
}

.r24-contact-office .r24-container {
    max-width: var(--r24-max);
    margin: 0 auto;
}

.r24-office-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.r24-office-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--r24-red);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

/* Icon styling for office section (dark background) */
.r24-office-column .r24-card-icon {
    display: block;
    margin-bottom: 16px;
    color: var(--r24-red);
    line-height: 1;
}

.r24-office-column .r24-card-icon svg {
    display: block;
}

.r24-office-text {
    font-size: 15px;
    color: var(--r24-text-grey);
    line-height: 1.9;
    margin: 0;
}

.r24-office-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin-top: 12px;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .r24-contact-office {
        padding: 50px 20px;
    }

    .r24-office-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
