/* ==========================================================================
   زفلتة - صفحة اتصل بنا
   ========================================================================== */

/* ==========================================================================
   كروت التواصل (طالعة فوق حافة الهيرو)
   ========================================================================== */
.contact-cards-section {
    position: relative;
    z-index: 3;
    margin-top: -70px;
}

.contact-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 28px 26px 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--white);
    color: var(--navy);
    box-shadow: var(--shadow);
    overflow: hidden;
    isolation: isolate;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .4s var(--ease);
}
/* خلفية كحلي بتطلع من تحت */
.contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 100% 0, rgba(220, 154, 3, .3), transparent 50%),
        var(--navy);
    transform: translateY(101%);
    transition: transform .55s var(--ease);
}
.contact-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 26px, transparent 26px 42px);
    animation: road-move-sm 1.6s linear infinite;
}
.contact-card:hover,
.contact-card.in-focus { color: var(--white); transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.contact-card:hover::before,
.contact-card.in-focus::before { transform: translateY(0); }

.contact-card-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: var(--gold);
    color: var(--navy);
    font-size: 1.5rem;
    transition: transform .6s var(--ease), background .4s var(--ease);
}
.contact-card-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid var(--gold);
    animation: icon-ring 2.4s ease-out infinite;
}
.contact-card.is-wa .contact-card-icon { background: var(--whatsapp); color: var(--white); }
.contact-card.is-wa .contact-card-icon::after { border-color: var(--whatsapp); }
.contact-card:hover .contact-card-icon,
.contact-card.in-focus .contact-card-icon { transform: rotateY(180deg); }
.contact-card:hover .contact-card-icon i,
.contact-card.in-focus .contact-card-icon i { transform: rotateY(180deg); }

.contact-card-label { color: var(--gray); font-weight: 500; transition: color .4s var(--ease); }
.contact-card:hover .contact-card-label,
.contact-card.in-focus .contact-card-label { color: rgba(255, 255, 255, .65); }
.contact-card-value {
    margin: 2px 0 14px;
    font-size: 1.15rem;
    line-height: 1.6;
    word-break: break-word;
}
.contact-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--gold);
    font-weight: 800;
    font-size: .95rem;
}
.contact-card-action i { transition: transform .35s var(--ease); }
.contact-card:hover .contact-card-action i,
.contact-card.in-focus .contact-card-action i { transform: translateX(-6px); }

/* ==========================================================================
   الفورم
   ========================================================================== */
.form-section { scroll-margin-top: 90px; }

.form-card {
    position: relative;
    height: 100%;
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.form-card-head { margin-bottom: 26px; }
.form-card-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 8px; }
.form-card-head p { color: var(--gray); margin: 0; }
.req { color: #d63939; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.zf-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .97rem; }

.zf-input { position: relative; }
.zf-input > i {
    position: absolute;
    top: 50%;
    right: 16px;
    z-index: 2;
    color: var(--gray);
    font-size: 1.05rem;
    transform: translateY(-50%);
    pointer-events: none;
    transition: color .3s var(--ease);
}
.zf-input.is-textarea > i { top: 16px; transform: none; }
.zf-input input,
.zf-input select,
.zf-input textarea {
    width: 100%;
    padding: 13px 46px 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--cream);
    color: var(--navy);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.zf-input input[dir="ltr"] { text-align: right; }
.zf-input select { appearance: none; cursor: pointer; }
.zf-input:has(select)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 18px;
    width: 9px;
    height: 9px;
    margin-top: -7px;
    border-left: 2px solid var(--gray);
    border-bottom: 2px solid var(--gray);
    transform: rotate(-45deg);
    pointer-events: none;
}
.zf-input textarea { resize: vertical; min-height: 120px; }
.zf-input input::placeholder,
.zf-input textarea::placeholder { color: #a3abb4; }

.zf-input input:focus,
.zf-input select:focus,
.zf-input textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(220, 154, 3, .15);
}
.zf-input:focus-within > i { color: var(--gold); }

.zf-input .is-invalid { border-color: #d63939; background: #fff6f6; }
.zf-input .is-invalid:focus { box-shadow: 0 0 0 4px rgba(214, 57, 57, .12); }
.zf-error { min-height: 0; margin-top: 5px; color: #d63939; font-size: .88rem; font-weight: 500; }
.zf-error:empty { display: none; }
.zf-error-general { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #fff0f0; }
.zf-hint { margin-top: 4px; color: var(--gray); font-size: .82rem; text-align: left; }

/* طريقة التواصل */
.zf-methods { display: flex; flex-wrap: wrap; gap: 10px; }
.zf-method { position: relative; cursor: pointer; }
.zf-method input { position: absolute; opacity: 0; }
.zf-method span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border: 1.5px solid var(--border);
    border-radius: 40px;
    background: var(--cream);
    font-weight: 700;
    transition: all .3s var(--ease);
}
.zf-method:hover span { border-color: var(--gold); }
.zf-method input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--white); }
.zf-method input:checked + span i { color: var(--gold); }
.zf-method input:focus-visible + span { box-shadow: 0 0 0 4px rgba(220, 154, 3, .3); }

/* زرار الإرسال */
.zf-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: 16px;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--font);
    font-size: 1.12rem;
    font-weight: 800;
    overflow: hidden;
    isolation: isolate;
    transition: color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.zf-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--navy);
    transform: translateX(101%);
    transition: transform .45s var(--ease);
}
.zf-submit:hover { color: var(--white); transform: translateY(-3px); box-shadow: var(--shadow); }
.zf-submit:hover::before { transform: translateX(0); }
.zf-submit i { margin-left: 6px; transition: transform .35s var(--ease); }
.zf-submit:hover i { transform: translate(-4px, -4px) rotate(-10deg); }
.zf-submit-loading { display: none; align-items: center; gap: 10px; }
.zf-submit.is-loading { pointer-events: none; color: var(--white); }
.zf-submit.is-loading::before { transform: translateX(0); }
.zf-submit.is-loading .zf-submit-text { display: none; }
.zf-submit.is-loading .zf-submit-loading { display: inline-flex; }
.zf-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

/* رسالة النجاح */
.form-success {
    display: none;
    padding: 30px 10px 10px;
    text-align: center;
}
.form-success.show { display: block; animation: success-in .6s var(--ease); }
.success-check { width: 110px; height: 110px; margin-bottom: 18px; }
.success-check circle {
    fill: rgba(47, 158, 68, .1);
    stroke: #2f9e44;
    stroke-width: 4;
    stroke-dasharray: 230;
    stroke-dashoffset: 230;
}
.success-check path {
    fill: none;
    stroke: #2f9e44;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
}
.form-success.show .success-check circle { animation: draw .8s var(--ease) .1s forwards; }
.form-success.show .success-check path { animation: draw .5s var(--ease) .8s forwards; }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--gray); font-size: 1.08rem; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

@media (max-width: 575.98px) {
    .form-card { padding: 28px 20px; }
}
@media (max-width: 991.98px) {
    .info-card { position: static; }
}

/* ==========================================================================
   الكارت الجانبي
   ========================================================================== */
.info-card {
    position: sticky;
    top: 110px;
    padding: 34px 32px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 0 0, rgba(220, 154, 3, .2), transparent 45%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 40px),
        var(--navy);
    color: rgba(255, 255, 255, .75);
}
.info-block + .info-block {
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px dashed rgba(255, 255, 255, .15);
}
.info-block h3 { display: flex; align-items: center; gap: 8px; color: var(--white); font-size: 1.15rem; margin-bottom: 16px; }
.info-block h3 i { color: var(--gold); }

.info-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.info-head h3 { margin: 0; }

.open-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: .85rem;
    font-weight: 700;
}
.open-badge.is-open { background: rgba(47, 158, 68, .18); color: #69db7c; }
.open-badge.is-closed { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); }
.open-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-badge.is-open .open-dot { animation: live-dot 1.6s ease-out infinite; }

.hours-list { margin: 0; padding: 0; list-style: none; }
.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
}
.hours-list li + li { margin-top: 8px; }
.hours-list strong { color: var(--white); }
.hours-list .is-off strong { color: #ff8787; }
.info-note { margin: 12px 0 0; font-size: .92rem; }

.next-steps { margin: 0; padding: 0; list-style: none; }
.next-steps li { display: flex; align-items: center; gap: 12px; }
.next-steps li + li { margin-top: 12px; }
.next-steps span {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-weight: 900;
}

.info-social { display: flex; gap: 10px; }
.info-social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    font-size: 1.1rem;
    transition: all .3s var(--ease);
}
.info-social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-4px); }

/* ==========================================================================
   الخريطة
   ========================================================================== */
.map-section { padding-bottom: 90px; }
.map-frame {
    position: relative;
    height: 420px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }
.map-card {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 18px;
    background: var(--navy);
    color: rgba(255, 255, 255, .75);
    box-shadow: var(--shadow-lg);
}
.map-card i { color: var(--gold); font-size: 1.8rem; }
.map-card strong { display: block; color: var(--white); }

/* ==========================================================================
   الأسئلة
   ========================================================================== */
.contact-faq { background: var(--white); }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes icon-ring {
    0% { opacity: .8; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.45); }
}
@keyframes draw {
    to { stroke-dashoffset: 0; }
}
@keyframes success-in {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to { opacity: 1; transform: none; }
}
@keyframes live-dot {
    0% { box-shadow: 0 0 0 0 rgba(105, 219, 124, .7); }
    100% { box-shadow: 0 0 0 8px rgba(105, 219, 124, 0); }
}
