/* ============================================================
 * frontend-contact.css
 * Auto-extracted from blade templates
 * ============================================================ */


/* ── CONTACT LAYOUT ─── */
/* Hàng 1: Thông tin liên hệ (trái) + Gửi yêu cầu liên hệ (phải) */
.contact-top-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}
.contact-form-col { display: flex; }
.contact-form-card { display: flex; flex-direction: column; width: 100%; }

/* Hàng 2: Các văn phòng, chi nhánh */
.contact-offices-section { margin-bottom: 24px; }

/* Hàng 3: Vị trí bản đồ (full width) */
.contact-map-section { }
.contact-map-body-full {
    padding: 0 !important;
    overflow: hidden;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

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


/* ── CONTACT INFO ROWS ─── */
.contact-info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bdr);
    transition: background .15s;
}
.contact-info-row:hover { background: #fafafa; }
.contact-info-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(229,57,53,.08);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--red);
    font-size: 15px;
}
.contact-info-label {
    font-size: 14px;
    color: var(--t3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 3px;
}
.contact-info-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--txt);
}
.contact-info-link {
    color: var(--red);
    transition: opacity .15s;
}
.contact-info-link:hover { opacity: .8; text-decoration: underline; }

/* ── SOCIAL BUTTONS ─── */
.contact-social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s;
    border: 1.5px solid var(--bdr);
    color: var(--txt);
    background: #fff;
}
.contact-social-btn:hover { transform: translateX(4px); }
.contact-social-btn i:first-child { width: 18px; text-align: center; font-size: 16px; }
.contact-social-btn span { flex: 1; }
.contact-social-arrow { font-size: 11px; color: var(--t4); }

.contact-social-fb:hover   { border-color: #1877f2; color: #1877f2; background: #f0f6ff; }
.contact-social-zalo:hover { border-color: #0068ff; color: #0068ff; background: #f0f6ff; }
.contact-social-yt:hover   { border-color: #ff0000; color: #ff0000; background: #fff5f5; }
.contact-social-tt:hover   { border-color: #000;    color: #000;    background: #f5f5f5; }
.contact-social-ig:hover   { border-color: #e1306c; color: #e1306c; background: #fff0f5; }

/* ── FORM ─── */
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 560px) {
    .contact-form-row { grid-template-columns: 1fr; }
}

.pf-input.is-error { border-color: #dc2626; }
.contact-field-error {
    display: block;
    font-size: var(--fs-sm);
    color: var(--red);
    margin-top: 4px;
    font-size: 13px;
}

#submitBtn { transition: all .18s; margin-top: 0 }
#submitBtn:disabled { opacity: .65; cursor: not-allowed; }
#submitBtn.loading i { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── MOBILE CALL FAB ─── */
.mobile-call-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 9999;
    display: none; /* Only show on mobile */
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.mobile-call-fab .fab-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--red, #e53935);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(229,57,53,0.4);
    position: relative;
    z-index: 2;
    animation: fab-bounce 2s infinite;
}
.mobile-call-fab .fab-pulse-1,
.mobile-call-fab .fab-pulse-2 {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    background-color: var(--red, #e53935);
    opacity: 0.4;
    z-index: 1;
}
.mobile-call-fab .fab-pulse-1 {
    animation: fab-pulse 1.8s infinite ease-out;
}
.mobile-call-fab .fab-pulse-2 {
    animation: fab-pulse 1.8s infinite ease-out 0.6s;
}
@keyframes fab-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes fab-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 767px) {
    .mobile-call-fab {
        display: flex;
    }
}

/* ── VĂN PHÒNG, CHI NHÁNH (từ bảng departments) ─── */
.contact-offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.office-card {
    background: #fbf6f6;
    border: 1px solid var(--bdr);
    border-radius: 10px;
    padding: 14px 16px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.office-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.05);
    border-color: rgba(229, 57, 53, 0.3);
}
.office-card-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--t2);
}
.office-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--txt);
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1.5px solid rgba(229,57,53,0.1);
}
.office-card-name i {
    color: var(--red);
    margin-top: 2px;
    flex-shrink: 0;
}
.office-card-desc i {
    color: var(--t4);
    margin-top: 2px;
    font-size: 12px;
    flex-shrink: 0;
}
.office-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--t3);
    padding: 20px 0;
    margin: 0;
}

/* ── Overrides for labels and placeholders ── */
.contact-container .pf-label {
    color: #111111 !important;
    font-weight: 700;
    text-transform: none !important;
}
.contact-container .pf-input::placeholder {
    font-size: 12px !important;
    color: #9ca3af;
}
.contact-container textarea.pf-input::placeholder {
    font-size: 12.5px !important;
}
.contact-container select.pf-input.placeholder-style {
    color: #9ca3af !important;
}
.contact-container select.pf-input option {
    color: var(--txt, #212121) !important;
}
