/**
 * Contact Page Modern Layout & Components — Web Techiq Official
 * Developed by MH Badhon Ahmed (Web Techiq)
 */

.web-techiq-contact-section {
  position: relative;
  width: 100%;
  padding: var(--contact-pad-top, var(--wt-contact-pad-top, 60px)) 0 var(--contact-pad-bottom, var(--wt-contact-pad-bottom, 70px)) 0;
  background: transparent;
  box-sizing: border-box;
}

/* ── 2-Column Main Layout Grid ───────────────────────────────────────── */
.web-techiq-contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

/* ── Common Card Shell ────────────────────────────────────────────────── */
.web-techiq-contact-card {
  position: relative;
  align-self: start; /* Prevent grid row stretch — form card must not fill full grid row height */
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 34px 36px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06), 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  isolation: isolate;
}

/* ── Header Badges & Titles ──────────────────────────────────────────── */
.contact-badge-wrap {
  display: inline-flex;
  margin-bottom: 12px;
}

.contact-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff3d6;
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 50px;
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  box-shadow: 0 2px 8px rgba(255, 184, 0, 0.12);
}

.contact-card-title {
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.contact-card-title .title-highlight {
  position: relative;
  display: inline-block;
  color: var(--wt-primary-color, #ff6b00);
  background: linear-gradient(135deg, #ff6b00 0%, #ffb800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-card-subtitle {
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 18px 0; /* Reduced from 28px — excessive bottom gap before form fields */
}

/* ── Form Labels & Indicators ────────────────────────────────────────── */
.contact-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.contact-label .req-star {
  color: #ef4444;
  font-weight: 800;
}

.contact-label .opt-tag {
  font-size: 11.5px;
  font-weight: 500;
  color: #94a3b8;
}

/* ── Form Inputs & Custom Dropdown ───────────────────────────────────── */
.contact-form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Reduced from 20px for tighter, more professional spacing */
}

.contact-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  width: 100%;
}

.contact-input-group {
  /* In vertical flex column (contact-form-fields), do NOT grow — only fill content height */
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Only grow horizontally when inside a side-by-side input row */
.contact-input-row .contact-input-group {
  flex: 1 1 220px;
}

.contact-input-inner {
  position: relative;
  width: 100%;
}

.contact-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
}

.contact-input-icon.icon-top {
  top: 16px;
  transform: none;
}

.contact-input,
.contact-textarea,
.contact-select {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.contact-input {
  height: 48px;
  padding: 10px 16px 10px 46px;
}

.contact-textarea {
  min-height: 125px;
  padding: 14px 16px 14px 46px;
  resize: vertical;
}

/* Custom Professional Dropdown Select */
.select-wrapper {
  position: relative;
}

.contact-select {
  height: 48px;
  padding: 10px 42px 10px 46px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  background-color: #f8fafc;
  color: #0f172a;
}

.contact-select:invalid,
.contact-select option[value=""] {
  color: #94a3b8;
}

.select-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
  z-index: 2;
}

.contact-input-inner:focus-within .select-chevron {
  color: var(--wt-primary-color, #ff6b00);
  transform: translateY(-50%) rotate(180deg);
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

.contact-input:focus,
.contact-textarea:focus,
.contact-select:focus {
  border-color: var(--wt-primary-color, #ff6b00);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.14);
}

.contact-input-inner:focus-within .contact-input-icon {
  color: var(--wt-primary-color, #ff6b00);
}

/* ── Submit Button & Spinner ─────────────────────────────────────────── */
.contact-submit-btn {
  height: 52px;
  padding: 0 34px;
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--wt-primary-color, #ff6b00) 0%, #e60067 50%, var(--wt-accent-color, #7c3aed) 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0; /* Removed extra margin — gap on .contact-form-fields is sufficient */
  width: 100%;
}

.contact-submit-btn:hover {
  background: linear-gradient(135deg, #e05d00 0%, #c40055 50%, #6d28d9 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 107, 0, 0.45), 0 0 16px rgba(124, 58, 237, 0.35);
}

.contact-submit-btn.is-loading {
  opacity: 0.8;
  pointer-events: none;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Alert Message Box — uses display:none by default; shown via JS inline style */
.contact-alert {
  margin-bottom: 0;     /* No bottom margin — gap on parent flex handles spacing */
  margin-top: 0;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  display: none; /* Hidden by default — JS switches to flex when needed */
  align-items: center;
  gap: 10px;
}

.contact-alert.alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.contact-alert.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ── Right-Side Contact Info Cards ───────────────────────────────────── */
.contact-info-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #ffffff;
  border: 1px solid #ffe6b3;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.06);
  transition: all 0.25s ease;
}

.contact-info-box:hover {
  border-color: #ff6b00;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 184, 0, 0.14);
}

/* WhatsApp Highlight Card */
.contact-info-box.wa-box {
  background: linear-gradient(135deg, #fffdfa 0%, #fff6e6 100%);
  border-color: #ffd999;
}

.info-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff3d6;
  color: var(--wt-primary-color, #ff6b00);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.15);
}

.info-icon-wrapper.wa-icon {
  background: #dcfce7;
  color: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.info-content {
  flex: 1;
}

.info-label {
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}

.info-value {
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 4px 0;
}

.info-value a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-value a:hover {
  color: var(--wt-primary-color, #ff6b00);
}

.info-subtext {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* WhatsApp CTA Button */
.wa-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #ffffff;
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 10px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
}

.wa-cta-btn:hover {
  background: #1eb957;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* ── 6. Connect With Us / Social Media Links Card ─────────────────────── */
.contact-info-box.contact-social-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 22px;
  padding: 24px 26px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.info-icon-wrapper.social-icon-glow {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.contact-social-icons-container .web-techiq-social-icons-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-social-icons-container .social-icon-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.contact-social-icons-container .social-icon-link:hover {
  transform: translateY(-3px) scale(1.08);
  color: #ffffff;
}

.contact-social-icons-container .social-link-facebook:hover  { background: #1877F2; border-color: #1877F2; box-shadow: 0 6px 18px rgba(24, 119, 242, 0.35); }
.contact-social-icons-container .social-link-twitter:hover   { background: #000000; border-color: #000000; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.contact-social-icons-container .social-link-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #dc2743; box-shadow: 0 6px 18px rgba(220, 39, 67, 0.35); }
.contact-social-icons-container .social-link-linkedin:hover  { background: #0A66C2; border-color: #0A66C2; box-shadow: 0 6px 18px rgba(10, 102, 194, 0.35); }
.contact-social-icons-container .social-link-youtube:hover   { background: #FF0000; border-color: #FF0000; box-shadow: 0 6px 18px rgba(255, 0, 0, 0.35); }
.contact-social-icons-container .social-link-telegram:hover  { background: #229ED9; border-color: #229ED9; box-shadow: 0 6px 18px rgba(34, 158, 217, 0.35); }

/* ── 5. Realtime Office Working Hours & Timezone Status Card ─────────── */
.contact-info-box.working-hours-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 26px;
  background: linear-gradient(145deg, #ffffff 0%, #fffbf5 100%);
  border: 1.5px solid #fed7aa;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.08);
}

.hours-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}

.hours-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.info-icon-wrapper.hours-icon-glow {
  background: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.35);
}

.hours-heading {
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 17.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

/* Live Status Radar Badge */
.hours-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.hours-status-badge.badge-open {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.2);
}

.hours-status-badge.badge-open .radar-core,
.hours-status-badge.badge-open .radar-ping {
  background: #22c55e;
}

.hours-status-badge.badge-closed {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.2);
}

.hours-status-badge.badge-closed .radar-core,
.hours-status-badge.badge-closed .radar-ping {
  background: #ef4444;
}

.status-radar-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9px;
  height: 9px;
}

.status-radar-dot .radar-core {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-radar-dot .radar-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: radarPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

/* Timer & Workday Progress Bar */
.hours-timer-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  width: 100%;
}

.timer-live-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.live-clock-icon {
  color: #ff6b00;
}

.workday-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.workday-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b00 0%, #22c55e 100%);
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* International Timezone Switcher Bar */
.tz-switcher-bar {
  display: flex;
  gap: 8px;
  width: 100%;
}

.tz-pill-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tz-pill-btn:hover {
  border-color: #ff6b00;
  color: #ff6b00;
}

.tz-pill-btn.active {
  background: #ff6b00;
  border-color: #ff6b00;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

/* 7-Day Schedule Grid Table */
.weekly-schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.schedule-day-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.schedule-day-row:hover {
  background: #fff7ed;
  border-color: #fed7aa;
}

.schedule-day-row.is-today {
  background: #fff7ed;
  border-color: #ff6b00;
  border-left: 4px solid #ff6b00;
  box-shadow: 0 3px 10px rgba(255, 107, 0, 0.1);
}

.day-name-col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.day-name {
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.today-badge {
  background: #ff6b00;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.day-time-col {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.time-off-badge {
  color: #dc2626;
  font-weight: 700;
  font-size: 12px;
}

.time-range-text {
  font-family: 'JetBrains Mono', 'Inter', monospace;
  font-weight: 700;
  color: #0f172a;
}

.time-sep {
  color: #94a3b8;
  margin: 0 4px;
}

/* ── Google Maps Container ────────────────────────────────────────────── */
.web-techiq-contact-map-wrap {
  margin-top: 48px;
}

.web-techiq-contact-map-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #ffe6b3;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(255, 184, 0, 0.08);
  overflow: hidden;
}

.contact-map-header {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-map-header h3 {
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-iframe-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.map-iframe-container iframe {
  width: 100%;
  height: 100%;
  min-height: 250px;
  border: 0;
  display: block;
}

/* ── Bottom 2-Column Grid: Working Hours (Left) & Map + Social (Right) ─ */
.web-techiq-contact-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
  align-items: start;
}

.bottom-grid-left {
  display: flex;
  flex-direction: column;
}

.bottom-grid-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bottom-grid-right .web-techiq-contact-map-wrap {
  margin-top: 0;
}

.bottom-grid-right .web-techiq-contact-map-card {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

/* ── Responsive Breakpoints ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .web-techiq-contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .web-techiq-contact-bottom-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 28px;
  }

  .web-techiq-contact-card {
    padding: 30px 24px;
  }

  .contact-card-title {
    font-size: 26px;
  }

  .tz-switcher-bar {
    flex-direction: column;
  }
}

@media (max-width: 639px) {
  .contact-input-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .web-techiq-contact-card {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .contact-card-title {
    font-size: 22px;
  }

  .contact-input, .contact-select {
    height: 46px;
    font-size: 13.5px;
  }

  .contact-submit-btn {
    height: 48px;
    font-size: 14px;
  }

  .contact-info-box {
    padding: 18px 16px;
  }

  .hours-card-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
