/**
 * Asma tenant — Contact page overrides.
 * Scoped via html[data-storefront-template='asma-shop'] .asma-contact-page
 */

html[data-storefront-template='asma-shop'] .asma-contact-page {
  --ac-radius: 16px;
  --ac-shadow: 0 16px 40px rgba(37, 61, 78, 0.08);
  --ac-teal: #1f6f78;
  --ac-gold: #c9a962;
}

html[data-storefront-template='asma-shop'] .asma-contact-page .container {
  max-width: min(1200px, 94vw);
}

/* Hero with office background */
html[data-storefront-template='asma-shop'] .asma-contact-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  margin-bottom: 50px;
  box-shadow: var(--ac-shadow);
}

html[data-storefront-template='asma-shop'] .asma-contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(21, 45, 53, 0.88) 0%,
    rgba(31, 111, 120, 0.72) 55%,
    rgba(21, 45, 53, 0.82) 100%
  );
}

html[data-storefront-template='asma-shop'] .asma-contact-hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 50px) clamp(24px, 3vw, 40px);
  color: #fff;
}

html[data-storefront-template='asma-shop'] .asma-contact-divider {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ac-gold), #3bb77e);
  margin-bottom: 20px;
}

html[data-storefront-template='asma-shop'] .asma-contact-divider.center {
  margin-inline: auto;
}

html[data-storefront-template='asma-shop'] .asma-contact-page[dir='rtl'] .asma-contact-divider:not(.center) {
  margin-inline-start: auto;
  margin-inline-end: 0;
}

html[data-storefront-template='asma-shop'] .asma-contact-page[dir='ltr'] .asma-contact-divider:not(.center) {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

html[data-storefront-template='asma-shop'] .asma-contact-kicker {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
}

html[data-storefront-template='asma-shop'] .asma-contact-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  color: #fff;
}

html[data-storefront-template='asma-shop'] .asma-contact-desc {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

html[data-storefront-template='asma-shop'] .asma-contact-time {
  color: #a8e6cf;
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

html[data-storefront-template='asma-shop'] .asma-contact-support-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--ac-radius);
  padding: 24px 20px;
  height: 100%;
  transition: transform 0.2s ease, background 0.2s ease;
}

html[data-storefront-template='asma-shop'] .asma-contact-support-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.16);
}

html[data-storefront-template='asma-shop'] .asma-contact-support-card.highlighted {
  border-color: rgba(201, 169, 98, 0.55);
  background: rgba(201, 169, 98, 0.12);
}

html[data-storefront-template='asma-shop'] .asma-contact-support-card h5 {
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

html[data-storefront-template='asma-shop'] .asma-contact-support-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0;
}

html[data-storefront-template='asma-shop'] .asma-contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

html[data-storefront-template='asma-shop'] .asma-contact-icon.default {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

html[data-storefront-template='asma-shop'] .asma-contact-icon.highlight {
  background: #3bb77e;
  color: #fff;
}

/* Form */
html[data-storefront-template='asma-shop'] .asma-contact-form-wrap {
  background: #fff;
  border-radius: 20px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(37, 61, 78, 0.06);
  box-shadow: var(--ac-shadow);
  height: 100%;
  text-align: start;
}

html[data-storefront-template='asma-shop'] .asma-contact-page[dir='rtl'] .asma-contact-hero-inner .col-lg-5,
html[data-storefront-template='asma-shop'] .asma-contact-page[dir='rtl'] .asma-contact-form-wrap,
html[data-storefront-template='asma-shop'] .asma-contact-page[dir='rtl'] .asma-contact-support-card {
  text-align: right;
}

html[data-storefront-template='asma-shop'] .asma-contact-page[dir='ltr'] .asma-contact-hero-inner .col-lg-5,
html[data-storefront-template='asma-shop'] .asma-contact-page[dir='ltr'] .asma-contact-form-wrap,
html[data-storefront-template='asma-shop'] .asma-contact-page[dir='ltr'] .asma-contact-support-card {
  text-align: left;
}

html[data-storefront-template='asma-shop'] .asma-contact-form-kicker {
  color: #3bb77e;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

html[data-storefront-template='asma-shop'] .asma-contact-form-title {
  color: #253d4e;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

html[data-storefront-template='asma-shop'] .asma-contact-form-note {
  color: #7e7e7e;
  font-size: 0.85rem;
  margin-bottom: 30px;
}

html[data-storefront-template='asma-shop'] .asma-contact-honeypot {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

html[data-storefront-template='asma-shop'] .asma-contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  text-align: inherit;
}

html[data-storefront-template='asma-shop'] .asma-contact-input,
html[data-storefront-template='asma-shop'] .asma-contact-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  font-size: 0.9rem;
  background: #fafafa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
}

html[data-storefront-template='asma-shop'] .asma-contact-page[dir='rtl'] .asma-contact-input:not([type='email']):not([type='tel']),
html[data-storefront-template='asma-shop'] .asma-contact-page[dir='rtl'] .asma-contact-textarea {
  direction: rtl;
  text-align: right;
}

html[data-storefront-template='asma-shop'] .asma-contact-page[dir='ltr'] .asma-contact-input:not([type='email']):not([type='tel']),
html[data-storefront-template='asma-shop'] .asma-contact-page[dir='ltr'] .asma-contact-textarea {
  direction: ltr;
  text-align: left;
}

html[data-storefront-template='asma-shop'] .asma-contact-input:focus,
html[data-storefront-template='asma-shop'] .asma-contact-textarea:focus {
  border-color: #3bb77e;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 183, 126, 0.08);
}

html[data-storefront-template='asma-shop'] .asma-contact-textarea {
  min-height: 140px;
  resize: vertical;
}

html[data-storefront-template='asma-shop'] .asma-contact-input[type='email'],
html[data-storefront-template='asma-shop'] .asma-contact-input[type='tel'] {
  direction: ltr;
  unicode-bidi: plaintext;
}

html[data-storefront-template='asma-shop'] .asma-contact-page[dir='rtl'] .asma-contact-input[type='email'],
html[data-storefront-template='asma-shop'] .asma-contact-page[dir='rtl'] .asma-contact-input[type='tel'] {
  text-align: right;
}

html[data-storefront-template='asma-shop'] .asma-contact-page[dir='ltr'] .asma-contact-input[type='email'],
html[data-storefront-template='asma-shop'] .asma-contact-page[dir='ltr'] .asma-contact-input[type='tel'] {
  text-align: left;
}

html[data-storefront-template='asma-shop'] .asma-contact-page[dir='rtl'] .asma-contact-input[type='email']::placeholder,
html[data-storefront-template='asma-shop'] .asma-contact-page[dir='rtl'] .asma-contact-input[type='tel']::placeholder {
  direction: rtl;
  text-align: right;
}

html[data-storefront-template='asma-shop'] .asma-contact-page[dir='ltr'] .asma-contact-input::placeholder,
html[data-storefront-template='asma-shop'] .asma-contact-page[dir='ltr'] .asma-contact-textarea::placeholder {
  text-align: left;
}

html[data-storefront-template='asma-shop'] .asma-contact-page[dir='rtl'] .asma-contact-input:not([type='email']):not([type='tel'])::placeholder,
html[data-storefront-template='asma-shop'] .asma-contact-page[dir='rtl'] .asma-contact-textarea::placeholder {
  text-align: right;
}

html[data-storefront-template='asma-shop'] .asma-contact-page[dir='rtl'] .asma-contact-submit {
  flex-direction: row-reverse;
}

html[data-storefront-template='asma-shop'] .asma-contact-page[dir='rtl'] .asma-contact-time {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

html[data-storefront-template='asma-shop'] .asma-contact-page[dir='rtl'] .asma-contact-info-row {
  flex-direction: row-reverse;
  text-align: right;
}

html[data-storefront-template='asma-shop'] .asma-contact-page[dir='ltr'] .asma-contact-info-row {
  text-align: left;
}

html[data-storefront-template='asma-shop'] .asma-contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

html[data-storefront-template='asma-shop'] .asma-contact-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

html[data-storefront-template='asma-shop'] .asma-contact-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

html[data-storefront-template='asma-shop'] .asma-contact-success {
  color: #28a745;
  margin-top: 12px;
  font-size: 0.9rem;
}

html[data-storefront-template='asma-shop'] .asma-contact-success-hint {
  display: block;
  font-size: 0.8rem;
  color: #687782;
  margin-top: 4px;
}

html[data-storefront-template='asma-shop'] .asma-contact-error {
  color: #dc3545;
  margin-top: 12px;
  font-size: 0.9rem;
}

/* Portrait */
html[data-storefront-template='asma-shop'] .asma-contact-portrait-col {
  min-height: 100%;
  height: 100%;
}

html[data-storefront-template='asma-shop'] .asma-contact-portrait-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ac-shadow);
  border: 4px solid #fff;
  outline: 1px solid rgba(37, 61, 78, 0.08);
  width: 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

html[data-storefront-template='asma-shop'] .asma-contact-portrait-img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center top;
}

/* Branches */
html[data-storefront-template='asma-shop'] .asma-contact-offices-head {
  text-align: center;
  margin-bottom: 40px;
}

html[data-storefront-template='asma-shop'] .asma-contact-offices-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #253d4e;
}

html[data-storefront-template='asma-shop'] .asma-contact-branch-card {
  background: #fff;
  border-radius: var(--ac-radius);
  padding: 28px;
  border: 1px solid rgba(37, 61, 78, 0.06);
  box-shadow: 0 8px 24px rgba(37, 61, 78, 0.04);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html[data-storefront-template='asma-shop'] .asma-contact-branch-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ac-shadow);
}

html[data-storefront-template='asma-shop'] .asma-contact-branch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #3bb77e, #29a56c);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}

html[data-storefront-template='asma-shop'] .asma-contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

html[data-storefront-template='asma-shop'] .asma-contact-info-row svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #3bb77e;
  margin-top: 3px;
}

/* Maps */
html[data-storefront-template='asma-shop'] .asma-contact-map-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #253d4e;
  margin-bottom: 12px;
}

html[data-storefront-template='asma-shop'] .asma-contact-map-frame {
  border-radius: var(--ac-radius);
  overflow: hidden;
  border: 1px solid rgba(37, 61, 78, 0.08);
  box-shadow: 0 8px 24px rgba(37, 61, 78, 0.06);
  aspect-ratio: 16 / 10;
  min-height: 220px;
}

html[data-storefront-template='asma-shop'] .asma-contact-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 767px) {
  html[data-storefront-template='asma-shop'] .asma-contact-hero-inner {
    padding: 24px 18px;
  }

  html[data-storefront-template='asma-shop'] .asma-contact-form-wrap {
    padding: 20px 16px;
  }

  html[data-storefront-template='asma-shop'] .asma-contact-map-frame {
    min-height: 200px;
  }
}
