/* ============================================================
   امرتات استور — Contact page (تماس با ما)
   Uses :root tokens + .page-head. Form styling self-contained.
   ============================================================ */

.eyebrow { white-space: nowrap; }

/* ============================================================
   Contact method cards
   ============================================================ */
.methods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.method {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px 24px; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.method:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.method .m-ico {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 18px;
  background: var(--primary-soft); display: grid; place-items: center;
}
.method .m-ico i { font-size: 29px; color: var(--primary); }
.method h3 { font-size: 16.5px; margin-bottom: 4px; }
.method .m-sub { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.method .m-values { display: flex; flex-direction: column; gap: 9px; margin-top: auto; }
.method .m-val {
  display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700;
  color: var(--text); transition: color .2s;
}
.method a.m-val:hover { color: var(--primary); }
.method .m-val i { font-size: 18px; color: var(--text-3); flex-shrink: 0; }
.method .m-val .en { font-family: var(--font-en); direction: ltr; font-weight: 700; }
.method .m-val .ltr-num { direction: ltr; unicode-bidi: isolate; font-feature-settings: 'tnum'; }
.method .m-tag {
  font-size: 11.5px; font-weight: 600; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border);
  padding: 2px 9px; border-radius: 100px; margin-inline-start: 4px;
}

/* online chat highlight */
.method.online { border-color: rgba(22,163,74,0.3); background: rgba(22,163,74,0.03); }
.method.online .m-ico { background: rgba(22,163,74,0.1); }
.method.online .m-ico i { color: var(--green); }
.method .m-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--green); margin-top: auto; }
.method .m-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,163,74,0.16); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(22,163,74,0.16); } 50% { box-shadow: 0 0 0 7px rgba(22,163,74,0.05); } }
.method.online .btn { margin-top: 16px; }

/* ============================================================
   Form + aside shell
   ============================================================ */
.contact-form-sec { background: var(--surface); border-top: 1px solid var(--border); }
.contact-shell { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }

.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 34px;
}
.form-card .fc-title { font-size: 22px; margin-bottom: 6px; }
.form-card .fc-sub { color: var(--text-2); font-size: 15px; margin-bottom: 26px; }

/* fields (self-contained — mirrors careers/order form styling) */
.field { margin-bottom: 20px; }
.field > label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.field > label .opt { color: var(--text-3); font-weight: 500; font-size: 12.5px; }
.input, .textarea, .select {
  width: 100%; font-family: var(--font-fa); font-size: 15px; color: var(--text);
  background: #fff; border: 1.5px solid var(--border-strong); border-radius: var(--r);
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s; line-height: 1.7;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.textarea { resize: vertical; min-height: 130px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.select-wrap { position: relative; }
.select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-start: 15px; padding-inline-end: 42px; }
.select-wrap::after { content: '\e136'; font-family: 'Phosphor'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 18px; pointer-events: none; }

.consent { display: flex; gap: 13px; align-items: flex-start; border: 1.5px solid var(--border); border-radius: var(--r); padding: 16px 18px; cursor: pointer; transition: border-color .2s, background .2s; margin-bottom: 24px; }
.consent:hover { border-color: var(--border-strong); }
.consent.on { border-color: var(--primary); background: var(--primary-soft); }
.consent .checkbox { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border-strong); display: grid; place-items: center; flex-shrink: 0; transition: all .2s; margin-top: 1px; }
.consent .checkbox i { font-size: 15px; color: #fff; opacity: 0; transition: opacity .15s; }
.consent.on .checkbox { background: var(--primary); border-color: var(--primary); }
.consent.on .checkbox i { opacity: 1; }
.consent .c-text { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.form-card .btn-submit { width: 100%; }

/* success state */
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; animation: panelIn .4s cubic-bezier(.2,.7,.2,1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.form-success .fs-check { width: 84px; height: 84px; border-radius: 50%; background: rgba(22,163,74,0.12); display: grid; place-items: center; margin: 0 auto 22px; animation: pop .5s cubic-bezier(.2,.8,.3,1.2); }
@keyframes pop { from { transform: scale(.5); } }
.form-success .fs-check i { font-size: 48px; color: var(--green); }
.form-success h3 { font-size: 23px; margin-bottom: 10px; }
.form-success p { color: var(--text-2); font-size: 15px; max-width: 420px; margin: 0 auto 24px; line-height: 1.9; }

/* ---- Aside: address + map + hours ---- */
.contact-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }

.address-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.address-map {
  position: relative; height: 168px;
  background:
    linear-gradient(rgba(108,99,255,0.05), rgba(108,99,255,0.05)),
    repeating-linear-gradient(0deg, var(--surface) 0 22px, var(--surface-2) 22px 23px),
    repeating-linear-gradient(90deg, var(--surface) 0 22px, var(--surface-2) 22px 23px);
}
.address-map::before {
  content: ''; position: absolute; top: 18%; left: 12%; right: 30%; height: 8px; border-radius: 4px;
  background: var(--border-strong); box-shadow: 0 46px 0 -1px var(--border-strong), 0 92px 0 -2px var(--border-strong);
  transform: rotate(-8deg);
}
.address-map .pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-100%);
  width: 40px; height: 40px; border-radius: 50% 50% 50% 0; rotate: -45deg;
  background: var(--primary); box-shadow: var(--shadow-primary); display: grid; place-items: center;
}
.address-map .pin i { rotate: 45deg; color: #fff; font-size: 20px; }
.address-map .pin::after { content: ''; position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 14px; height: 6px; border-radius: 50%; background: rgba(15,14,23,0.16); filter: blur(2px); }
.address-body { padding: 22px 24px; }
.address-body h3 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.address-body h3 i { color: var(--primary); font-size: 21px; }
.address-body p { font-size: 14.5px; color: var(--text-2); line-height: 1.95; margin-bottom: 14px; }
.address-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); padding-top: 14px; border-top: 1px solid var(--border); }
.address-row i { font-size: 19px; color: var(--primary); flex-shrink: 0; }
.address-row .ltr-num { direction: ltr; unicode-bidi: isolate; font-weight: 700; font-feature-settings: 'tnum'; }
.address-row .five { font-size: 12px; color: var(--text-3); font-weight: 600; }

.visit-note {
  display: flex; align-items: flex-start; gap: 11px;
  background: rgba(217,119,6,0.07); border: 1px solid rgba(217,119,6,0.22);
  border-radius: var(--r); padding: 15px 17px;
}
.visit-note i { font-size: 21px; color: var(--amber); flex-shrink: 0; margin-top: 1px; }
.visit-note p { font-size: 13.5px; color: #9a6207; line-height: 1.8; margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .methods-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .contact-shell { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}
@media (max-width: 600px) {
  .methods-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
}

/* ---- Form Validation & UX styles ---- */
.form-error-box {
  display: none;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.22);
  color: #dc2626;
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.6;
}
.form-error-box.show {
  display: block;
  animation: panelIn .3s ease;
}
.field.has-error .input,
.field.has-error .textarea {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}
.field-error {
  display: none;
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 6px;
}
.field.has-error .field-error {
  display: block;
}

/* ---- Sales Messengers buttons ---- */
.m-messengers { display: flex; gap: 8px; margin-top: 8px; }
.m-msg-btn {
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  color: #fff; font-size: 19px; transition: transform .2s, opacity .2s;
  text-decoration: none; font-weight: bold; position: relative;
}
.m-msg-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.m-msg-btn.telegram { background: #229ED9; }
.m-msg-btn.whatsapp { background: #25D366; }
.m-msg-btn.eitaa { background: #E75D29; font-size: 11px; }
.m-msg-btn.bale { background: #16A085; font-size: 11px; }

/* ---- FAQ CTA section ---- */
.contact-faq-sec { background: #fff; padding-block: 48px; border-top: 1px solid var(--border); }
.faq-cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px 32px;
}
.faq-cta-content h3 { font-size: 18px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.faq-cta-content h3 i { color: var(--primary); font-size: 22px; }
.faq-cta-content p { color: var(--text-2); font-size: 14px; margin: 0; }

@media (max-width: 768px) {
  .faq-cta-box { flex-direction: column; text-align: center; align-items: center; padding: 24px; }
  .faq-cta-content h3 { justify-content: center; }
}
