/**
 * Pollster Education - Contact Us Page Stylesheet
 * Responsive, Modern, Clean UI Design System
 */

/* ==========================================================================
   Variables & Scoped Base
   ========================================================================== */
.pe-contact-page {
    --pe-primary: #f58634;
    --pe-primary-dark: #d96f20;
    --pe-primary-light: #fff5ee;
    --pe-primary-glow: rgba(245, 134, 52, 0.16);
    --pe-navy: #0b132b;
    --pe-navy-soft: #1c2541;
    --pe-slate: #475569;
    --pe-slate-light: #64748b;
    --pe-border: #e2e8f0;
    --pe-surface: #ffffff;
    --pe-bg-subtle: #f8fafc;
    --pe-radius-lg: 20px;
    --pe-radius-md: 14px;
    --pe-radius-sm: 8px;
    --pe-shadow-card: 0 10px 30px -10px rgba(11, 19, 43, 0.08);
    --pe-shadow-hover: 0 20px 40px -15px rgba(245, 134, 52, 0.2);
    --pe-transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.pe-contact-page p {
    text-align: left;
    color: var(--pe-slate);
    line-height: 1.65;
}

.pe-contact-page ul {
    text-align: left;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.pe-contact-hero {
    background: radial-gradient(circle at 10% 20%, rgba(245, 134, 52, 0.06) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(11, 19, 43, 0.04) 0%, transparent 40%),
                linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 3rem 0 2.5rem;
    position: relative;
    border-bottom: 1px solid #edf2f7;
}

.pe-contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.95rem;
    background: var(--pe-primary-light);
    color: var(--pe-primary-dark);
    border: 1px solid rgba(245, 134, 52, 0.25);
    border-radius: 999px;
    font-size: 0.825rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.pe-contact-title {
    font-size: clamp(2rem, 3.8vw, 2.85rem);
    font-weight: 800;
    color: var(--pe-navy);
    line-height: 1.22;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.pe-contact-title .pe-highlight {
    background: linear-gradient(135deg, #f58634 0%, #e07324 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pe-contact-subtitle {
    font-size: 1.075rem;
    color: var(--pe-slate);
    max-width: 680px;
    margin-bottom: 1.75rem;
    line-height: 1.65;
}

.pe-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.pe-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: #ffffff;
    border: 1px solid var(--pe-border);
    border-radius: 999px;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--pe-navy);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.pe-hero-pill i {
    color: var(--pe-primary);
    font-size: 1rem;
}

/* ==========================================================================
   Quick Connect 4-Card Grid
   ========================================================================== */
.pe-quick-connect-section {
    margin-top: -1.75rem;
    position: relative;
    z-index: 5;
    margin-bottom: 3.5rem;
}

.pe-quick-card {
    background: #ffffff;
    border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius-md);
    padding: 1.35rem 1.25rem;
    box-shadow: var(--pe-shadow-card);
    transition: var(--pe-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.pe-quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: var(--pe-transition);
}

.pe-quick-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pe-shadow-hover);
    border-color: rgba(245, 134, 52, 0.4);
}

.pe-quick-card:hover::before {
    background: linear-gradient(90deg, #f58634, #f5b041);
}

.pe-quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.pe-quick-icon.phone {
    background: rgba(245, 134, 52, 0.12);
    color: #f58634;
}

.pe-quick-icon.whatsapp {
    background: rgba(37, 211, 102, 0.14);
    color: #128c7e;
}

.pe-quick-icon.email {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.pe-quick-icon.ai {
    background: rgba(147, 51, 234, 0.12);
    color: #7c3aed;
}

.pe-quick-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--pe-slate-light);
    margin-bottom: 0.25rem;
}

.pe-quick-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pe-navy);
    margin-bottom: 0.35rem;
    line-height: 1.35;
    word-break: break-word;
}

.pe-quick-desc {
    font-size: 0.8rem;
    color: var(--pe-slate);
    margin-bottom: 1rem;
    line-height: 1.45;
}

.pe-quick-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.825rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--pe-transition);
}

.pe-quick-action.btn-phone {
    background: var(--pe-primary-light);
    color: var(--pe-primary-dark);
    border: 1px solid rgba(245, 134, 52, 0.3);
}

.pe-quick-action.btn-phone:hover {
    background: var(--pe-primary);
    color: #ffffff;
}

.pe-quick-action.btn-whatsapp {
    background: #e8f9ee;
    color: #0e7039;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.pe-quick-action.btn-whatsapp:hover {
    background: #25d366;
    color: #ffffff;
}

.pe-quick-action.btn-email {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.pe-quick-action.btn-email:hover {
    background: #2563eb;
    color: #ffffff;
}

.pe-quick-action.btn-ai {
    background: #f5f3ff;
    color: #6b21a8;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.pe-quick-action.btn-ai:hover {
    background: #7c3aed;
    color: #ffffff;
}

/* ==========================================================================
   Consultation Form Card
   ========================================================================== */
.pe-form-card {
    background: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: var(--pe-radius-lg);
    box-shadow: 0 25px 60px -20px rgba(11, 19, 43, 0.12);
    padding: 2.25rem 2rem;
    position: relative;
    overflow: hidden;
}

.pe-form-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #f58634 0%, #f39c12 50%, #e07324 100%);
}

.pe-form-header {
    margin-bottom: 1.75rem;
}

.pe-form-header h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--pe-navy);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.pe-form-header p {
    font-size: 0.9rem;
    color: var(--pe-slate);
    margin-bottom: 0;
}

.pe-input-group {
    position: relative;
}

.pe-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.15rem;
    pointer-events: none;
    transition: var(--pe-transition);
}

.pe-input-group.textarea .pe-input-icon {
    top: 1.15rem;
    transform: none;
}

.pe-form-control {
    width: 100%;
    padding: 0.72rem 1rem 0.72rem 2.65rem;
    font-size: 0.925rem;
    color: var(--pe-navy);
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    transition: var(--pe-transition);
    font-family: inherit;
}

.pe-form-control:focus {
    border-color: var(--pe-primary);
    box-shadow: 0 0 0 3px rgba(245, 134, 52, 0.18);
    outline: none;
}

.pe-form-control:focus + .pe-input-icon,
.pe-input-group:focus-within .pe-input-icon {
    color: var(--pe-primary);
}

.pe-form-label {
    display: block;
    font-size: 0.835rem;
    font-weight: 700;
    color: var(--pe-navy);
    margin-bottom: 0.4rem;
}

.pe-phone-wrap {
    display: flex;
    align-items: stretch;
}

.pe-phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 0.85rem;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--pe-slate);
    user-select: none;
}

.pe-phone-wrap .pe-form-control {
    border-radius: 0 10px 10px 0;
    padding-left: 0.85rem;
}

.pe-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.75rem;
    background: linear-gradient(135deg, #f58634 0%, #e07324 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px -4px rgba(245, 134, 52, 0.45);
    transition: var(--pe-transition);
}

.pe-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -4px rgba(245, 134, 52, 0.6);
    color: #ffffff;
}

.pe-form-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.775rem;
    color: #64748b;
    margin-top: 0.85rem;
}

/* ==========================================================================
   Left Side Features (Why Consult Us)
   ========================================================================== */
.pe-features-col {
    padding-right: 1.5rem;
}

.pe-section-eyebrow {
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pe-primary);
    margin-bottom: 0.5rem;
}

.pe-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pe-feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 12px rgba(11, 19, 43, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--pe-primary);
    flex-shrink: 0;
    transition: var(--pe-transition);
}

.pe-feature-item:hover .pe-feature-icon-box {
    background: var(--pe-primary);
    color: #ffffff;
    transform: scale(1.05);
}

.pe-feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pe-navy);
    margin-bottom: 0.25rem;
}

.pe-feature-desc {
    font-size: 0.885rem;
    color: var(--pe-slate);
    margin-bottom: 0;
    line-height: 1.5;
}

.pe-trust-banner {
    background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
    border-radius: var(--pe-radius-md);
    padding: 1.35rem 1.5rem;
    color: #ffffff;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.pe-trust-banner::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(245, 134, 52, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.pe-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
}

.pe-trust-quote {
    font-size: 0.875rem;
    color: #e2e8f0;
    font-style: italic;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.pe-trust-author {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ==========================================================================
   Branch Offices & Interactive Maps Section
   ========================================================================== */
.pe-branches-section {
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    padding: 4.5rem 0;
}

.pe-branch-office-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--pe-radius-md);
    padding: 1.5rem;
    transition: var(--pe-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
}

.pe-branch-office-card:hover,
.pe-branch-office-card.active {
    border-color: var(--pe-primary);
    box-shadow: 0 12px 28px -8px rgba(245, 134, 52, 0.2);
    transform: translateY(-3px);
}

.pe-branch-badge-hq {
    background: rgba(245, 134, 52, 0.12);
    color: var(--pe-primary-dark);
    font-weight: 700;
    font-size: 0.725rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pe-branch-badge-sub {
    background: #f1f5f9;
    color: var(--pe-slate);
    font-weight: 700;
    font-size: 0.725rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pe-office-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--pe-navy);
    margin-bottom: 0.5rem;
}

.pe-office-address {
    font-size: 0.865rem;
    color: var(--pe-slate);
    line-height: 1.55;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.pe-office-address i {
    color: var(--pe-primary);
    margin-right: 0.25rem;
}

.pe-office-contacts {
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.85rem;
    margin-bottom: 0.85rem;
}

.pe-office-tel {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pe-navy);
    text-decoration: none;
    margin-bottom: 0.35rem;
    transition: var(--pe-transition);
}

.pe-office-tel:hover {
    color: var(--pe-primary);
}

.pe-office-hours {
    font-size: 0.775rem;
    color: var(--pe-slate-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.pe-map-frame-wrap {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--pe-radius-lg);
    box-shadow: var(--pe-shadow-card);
    overflow: hidden;
    position: relative;
    height: 480px;
}

.pe-office-spotlight {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--pe-radius-lg);
    box-shadow: var(--pe-shadow-card);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pe-spotlight-top {
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1.5px solid #edf2f7;
}

.pe-spotlight-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.pe-spotlight-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--pe-navy);
    margin-bottom: 0.35rem;
}

.pe-spotlight-addr {
    font-size: 0.875rem;
    color: var(--pe-slate);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.pe-spotlight-transit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: #0e7039;
    background: #e8f9ee;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.pe-spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.pe-spotlight-map {
    flex-grow: 1;
    min-height: 290px;
    position: relative;
    background: #f1f5f9;
}

.pe-spotlight-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.pe-map-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.pe-map-selector-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.pe-map-tab-btn {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: var(--pe-slate);
    font-size: 0.825rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--pe-transition);
}

.pe-map-tab-btn:hover {
    border-color: var(--pe-primary);
    color: var(--pe-primary);
}

.pe-map-tab-btn.active {
    background: var(--pe-primary);
    border-color: var(--pe-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 134, 52, 0.3);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.pe-contact-faq-section {
    padding: 4.5rem 0;
}

.pe-faq-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--pe-radius-md) !important;
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: var(--pe-transition);
}

.pe-faq-card:hover {
    border-color: #cbd5e1;
}

.pe-faq-btn {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--pe-navy);
    background: #ffffff;
    text-align: left;
    box-shadow: none !important;
}

.pe-faq-btn:not(.collapsed) {
    background: var(--pe-primary-light);
    color: var(--pe-primary-dark);
}

.pe-faq-body {
    padding: 1rem 1.5rem 1.5rem;
    font-size: 0.925rem;
    color: var(--pe-slate);
    line-height: 1.65;
    background: #ffffff;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991.98px) {
    .pe-features-col {
        padding-right: 0;
        margin-bottom: 2.5rem;
    }
    .pe-map-frame-wrap {
        height: 380px;
        margin-top: 1.5rem;
    }
    .pe-form-card {
        padding: 1.75rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .pe-contact-hero {
        padding: 2rem 0 1.5rem;
    }
    .pe-form-card {
        padding: 1.5rem 1.25rem;
    }
    .pe-map-frame-wrap {
        height: 300px;
    }
}
