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

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

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

/* ── Common Card Shell ────────────────────────────────────────────────── */
.neto-contact-card {
  position: relative;
  background: var(--contact-card-bg, #ffffff);
  border: 1px solid var(--contact-card-border, #ffe6b3);
  border-radius: 24px;
  padding: 38px 40px;
  box-shadow: 0 12px 35px rgba(255, 184, 0, 0.09), 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(--neto-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(--neto-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(--neto-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 28px 0;
}

/* ── Form Labels & Indicators ────────────────────────────────────────── */
.contact-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--neto-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: 20px;
}

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

.contact-input-group {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.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(--neto-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(--neto-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(--neto-primary-color, #ff6b00);
}

/* ── Submit Button & Spinner ─────────────────────────────────────────── */
.contact-submit-btn {
  height: 52px;
  padding: 0 34px;
  font-family: var(--neto-heading-font-family, 'Outfit', sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  background: var(--contact-btn-bg, linear-gradient(135deg, #ff6b00 0%, #ffb800 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: 8px;
  width: 100%;
}

.contact-submit-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 107, 0, 0.45);
}

.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 */
.contact-alert {
  margin-bottom: 20px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  display: flex;
  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: 16px;
}

.contact-info-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #ffffff;
  border: 1px solid #ffe6b3;
  border-radius: 18px;
  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(--neto-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(--neto-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(--neto-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(--neto-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(--neto-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);
}

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

.neto-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(--neto-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;
}

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

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

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

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

  .neto-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;
  }
}
