/* ==========================================================================
   JC Contact — Premium Contact Page Styles
   Split layout: Info sidebar + form card, premium offices grid
   ========================================================================== */

/* ═══════ CONTACT SECTION (form + info) ═══════ */
.jc-contact-section {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f8f9fb 0%, #eef1f5 100%);
}
.jc-contact-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

/* ── Info Sidebar ── */
.jc-contact-info {
    position: sticky;
    top: 100px;
}
.jc-contact-info__inner {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: 16px;
    padding: 40px 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.jc-contact-info__inner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: rgba(245, 124, 30, 0.12);
    border-radius: 50%;
    pointer-events: none;
}
.jc-contact-info__inner::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    background: rgba(245, 124, 30, 0.08);
    border-radius: 50%;
    pointer-events: none;
}
.jc-contact-info__title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
    position: relative;
}
.jc-contact-info__title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #F57C1E;
    border-radius: 3px;
    margin-top: 12px;
}
.jc-contact-info__desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
}

/* ── Quick Contact Cards ── */
.jc-contact-info__cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}
.jc-quick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}
.jc-quick-card:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(245, 124, 30, 0.4);
    transform: translateX(4px);
    text-decoration: none;
}
[dir="rtl"] .jc-quick-card:hover {
    transform: translateX(-4px);
}
.jc-quick-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(245, 124, 30, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #F57C1E;
    font-size: 16px;
    transition: background 0.3s;
}
.jc-quick-card:hover .jc-quick-card__icon {
    background: #F57C1E;
    color: #fff;
}
.jc-quick-card--whatsapp .jc-quick-card__icon {
    background: rgba(37, 211, 102, 0.2);
    color: #25D366;
}
.jc-quick-card--whatsapp:hover .jc-quick-card__icon {
    background: #25D366;
    color: #fff;
}
.jc-quick-card__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
}
.jc-quick-card__value {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

/* ── Social Links ── */
.jc-contact-social {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.jc-contact-social__link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.jc-contact-social__link:hover {
    border-color: #F57C1E;
    color: #F57C1E;
    background: rgba(245, 124, 30, 0.1);
    text-decoration: none;
}

/* ── Form Card ── */
.jc-contact-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 44px 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.jc-contact-form-card__title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 14px;
}
.jc-contact-form-card__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #F57C1E, #ff9f43);
    border-radius: 3px;
}
[dir="rtl"] .jc-contact-form-card__title::after {
    left: auto;
    right: 0;
}

/* ── Form Fields ── */
.jc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 6px;
}
.jc-form-field {
    margin-bottom: 16px;
}
.jc-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}
.jc-required {
    color: #F57C1E;
}
.jc-input-wrap {
    position: relative;
}
.jc-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.3s;
    z-index: 1;
}
[dir="rtl"] .jc-input-icon {
    left: auto;
    right: 14px;
}
.jc-input-icon--textarea {
    top: 18px;
    transform: none;
}
.jc-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    background: #fafbfc;
    transition: all 0.25s ease;
    outline: none;
}
[dir="rtl"] .jc-input {
    padding: 12px 42px 12px 14px;
}
.jc-input:hover {
    border-color: #d1d5db;
    background: #fff;
}
.jc-input:focus {
    border-color: #F57C1E;
    box-shadow: 0 0 0 3px rgba(245, 124, 30, 0.1);
    background: #fff;
}
.jc-input:focus + .jc-input-icon,
.jc-input-wrap:focus-within .jc-input-icon {
    color: #F57C1E;
}
.jc-textarea {
    min-height: 140px;
    resize: vertical;
}

/* ── Submit Button ── */
.jc-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #F57C1E 0%, #e06b13 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 4px 15px rgba(245, 124, 30, 0.3);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}
.jc-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.jc-submit-btn:hover::before {
    left: 100%;
}
.jc-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 124, 30, 0.4);
}
.jc-submit-btn:active {
    transform: translateY(0);
}
.jc-submit-btn__icon {
    transition: transform 0.3s;
}
.jc-submit-btn:hover .jc-submit-btn__icon {
    transform: translateX(4px) translateY(-2px);
}
[dir="rtl"] .jc-submit-btn:hover .jc-submit-btn__icon {
    transform: translateX(-4px) translateY(-2px);
}

/* ── Alerts ── */
.jc-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin: 16px 0;
}
.jc-alert--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.jc-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.jc-alert--error p {
    margin: 4px 0;
}

/* ═══════ OFFICES SECTION ═══════ */
.jc-offices-section {
    padding: 70px 0 80px;
    background: #fff;
}
.jc-offices-header {
    text-align: center;
    margin-bottom: 48px;
}
.jc-offices-header__title {
    font-size: 30px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.jc-offices-header__subtitle {
    font-size: 15px;
    color: #6b7280;
    max-width: 520px;
    margin: 0 auto;
}

.jc-offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.jc-office-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}
.jc-office-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    border-color: rgba(245, 124, 30, 0.3);
}
.jc-office-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F57C1E, #ff9f43);
    opacity: 0;
    transition: opacity 0.35s;
}
.jc-office-card:hover .jc-office-card__accent {
    opacity: 1;
}
.jc-office-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 124, 30, 0.1), rgba(245, 124, 30, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #F57C1E;
    font-size: 22px;
    transition: all 0.35s;
}
.jc-office-card:hover .jc-office-card__icon {
    background: linear-gradient(135deg, #F57C1E, #e06b13);
    color: #fff;
    transform: scale(1.05);
}
.jc-office-card__name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.jc-office-card__address {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 14px;
}
.jc-office-card__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #F57C1E;
    text-decoration: none;
    padding: 6px 14px;
    background: rgba(245, 124, 30, 0.06);
    border-radius: 8px;
    transition: all 0.3s;
}
.jc-office-card__phone:hover {
    background: #F57C1E;
    color: #fff;
    text-decoration: none;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 991px) {
    .jc-contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .jc-contact-info {
        position: static;
    }
    .jc-contact-info__inner {
        padding: 32px 24px;
    }
    .jc-contact-form-card {
        padding: 32px 24px;
    }
}
@media (max-width: 767px) {
    .jc-contact-section {
        padding: 50px 0 40px;
    }
    .jc-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .jc-contact-form-card {
        padding: 24px 18px;
    }
    .jc-contact-info__inner {
        padding: 28px 20px;
    }
    .jc-offices-section {
        padding: 50px 0 60px;
    }
    .jc-offices-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .jc-office-card {
        padding: 24px 20px;
    }
}
