:root {
    --blue: #006aa3;
    --blue-dark: #004f7a;
    --blue-light: #e8f4fb;
    --text: #0f1923;
    --muted: #64748b;
    --border: #e2eaf2;
    --success: #10b981;
}

html[dir="rtl"] .contact-page { font-family: 'Tajawal', sans-serif; }
html[dir="ltr"] .contact-page { font-family: 'Sora', sans-serif; }

/* ===========================
   HERO
=========================== */
.contact-hero {
    background: var(--blue);
    position: relative;
    overflow: hidden;
    padding: 80px 0 72px;
    text-align: center;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 56px;
    background: #f8fafc;
    clip-path: ellipse(55% 100% at 50% 100%);
}

.contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.contact-hero h1 {
    font-size: clamp(24px, 4vw, 44px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.contact-hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ===========================
   SECTION LABEL
=========================== */
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-light);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* ===========================
   MAIN LAYOUT
=========================== */
.contact-page {
    background: #f8fafc;
    animation: fadeInUp 0.4s ease both;
}

@keyframes fadeInUp {
    from { opacity:0; transform:translateY(10px); }
    to   { opacity:1; transform:translateY(0); }
}

.contact-body {
    padding: 64px 0 80px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
}

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

/* ===========================
   CONTACT FORM CARD
=========================== */
.contact-form-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 36px;
    border: 1.5px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

.contact-form-card h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.contact-form-card .form-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Form grid */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media(max-width: 575px) { .form-row { grid-template-columns: 1fr; } }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-align: start;
}

.form-group label .required {
    color: #ef4444;
    margin-inline-start: 2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: start;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,106,163,0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0bec5;
}

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

.form-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    text-align: start;
}

/* Checkbox */
.form-accept {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.form-accept input[type="checkbox"] {
    width: 18px; height: 18px;
    margin-top: 2px;
    accent-color: var(--blue);
    flex-shrink: 0;
    cursor: pointer;
}

.form-accept label {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    cursor: pointer;
    text-align: start;
}

.form-accept label a {
    color: var(--blue);
    text-decoration: underline;
}

/* Submit button */
.contact-submit-btn {
    width: 100%;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,106,163,0.25);
}

.contact-submit-btn svg {
    width: 18px; height: 18px;
    stroke: #fff; fill: none;
    stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    transition: transform 0.2s ease;
}

html[dir="rtl"] .contact-submit-btn svg { transform: scaleX(-1); }
.contact-submit-btn:hover svg { transform: translateX(3px); }
html[dir="rtl"] .contact-submit-btn:hover svg { transform: scaleX(-1) translateX(3px); }

/* ===========================
   RIGHT SIDEBAR
=========================== */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Info card */
.contact-info-card {
    background: var(--blue);
    border-radius: 20px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 20px 20px;
}

.contact-info-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.contact-info-card .card-hint {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info-item-icon {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.contact-info-item-icon svg {
    width: 17px; height: 17px;
    stroke: #fff; fill: none;
    stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}

.contact-info-item-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.contact-info-item-label {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.contact-info-item-value {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

/* Hours badge */
.contact-hours-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.contact-hours-badge span.dot {
    width: 6px; height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-g 1.6s ease infinite;
    flex-shrink: 0;
}

@keyframes pulse-g {
    0%,100%{opacity:1;transform:scale(1)}
    50%{opacity:.5;transform:scale(1.5)}
}

/* Support / Sales cards */
.contact-dept-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 24px 22px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-dept-card:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 28px rgba(0,106,163,0.08);
}

.contact-dept-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-dept-icon {
    width: 44px; height: 44px;
    background: var(--blue-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.contact-dept-icon svg {
    width: 20px; height: 20px;
    stroke: var(--blue); fill: none;
    stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}

.contact-dept-header h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.contact-dept-header p {
    font-size: 12px;
    color: var(--muted);
    margin: 2px 0 0;
}

.contact-dept-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-dept-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-dept-link:hover {
    background: var(--blue-light);
    border-color: rgba(0,106,163,0.2);
}

.contact-dept-link-icon {
    width: 30px; height: 30px;
    background: var(--blue-light);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.contact-dept-link-icon svg {
    width: 14px; height: 14px;
    stroke: var(--blue); fill: none;
    stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}

.contact-dept-link-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.contact-dept-link-type {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.contact-dept-link-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-dept-link-arrow {
    color: var(--blue);
    font-size: 14px;
    flex-shrink: 0;
    margin-inline-start: auto;
}
