/* ==========================================================================
   MICROTECH COMPUTER — CONTACT US PAGE STYLESHEET
   Brand Colors: Navy, Royal Blue, Vibrant Blue, Clean Whites, Accents
   ========================================================================== */

/* ---- Hero Section ---- */
.contact-hero-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 60%, #1a3a5c 100%);
  padding: 5rem 0 0;
  overflow: hidden;
  position: relative;
}

.contact-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 45%, rgba(37,99,235,0.18) 0%, transparent 60%),
                    radial-gradient(circle at 85% 25%, rgba(2,132,199,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
}

.contact-hero-breadcrumb a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-hero-breadcrumb a:hover {
  color: #fff;
}

.contact-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37,99,235,0.25);
  border: 1px solid rgba(37,99,235,0.4);
  color: #93C5FD;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  width: fit-content;
}

.contact-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1.1rem;
}

.contact-hero-title .highlight-blue {
  color: #60A5FA;
}

.contact-hero-desc {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2rem;
}

.contact-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

.contact-hero-visual {
  align-self: end;
}

.contact-hero-img-card {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  height: 380px;
  position: relative;
  box-shadow: 0 -8px 40px rgba(37,99,235,0.25);
}

.contact-hero-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ---- Section: Quick Contact Methods (4 Cards) ---- */
.contact-methods-section {
  padding: 4rem 0 2rem;
  background: var(--bg-body);
}

.contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.contact-method-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
}

.contact-method-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-blue);
}

.contact-method-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.15rem;
  flex-shrink: 0;
}

.icon-blue {
  background: var(--sky-lighter);
  color: var(--vibrant-blue);
}

.icon-green {
  background: #DCFCE7;
  color: #16A34A;
}

.icon-red {
  background: #FEE2E2;
  color: #DC2626;
}

.contact-method-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.contact-method-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.contact-method-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--royal-blue);
  margin-bottom: 1.25rem;
  word-break: break-word;
}

.contact-method-card .btn {
  width: 100%;
  justify-content: center;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
}

/* Green WhatsApp button */
.btn-whatsapp {
  background: #16A34A;
  color: #fff;
  border: 1px solid #16A34A;
}

.btn-whatsapp:hover {
  background: #15803D;
  color: #fff;
}

/* Red Directions button */
.btn-directions {
  background: #DC2626;
  color: #fff;
  border: 1px solid #DC2626;
}

.btn-directions:hover {
  background: #B91C1C;
  color: #fff;
}

/* ---- Main 2-Column Section (Form + Instagram) ---- */
.contact-main-section {
  padding: 2.5rem 0 3.5rem;
  background: var(--bg-body);
}

.contact-two-col-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2rem;
}

.contact-box {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.contact-box-header {
  margin-bottom: 1.75rem;
}

.contact-box-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}

.contact-box-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Form Styles ---- */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.contact-form-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-heading);
}

.form-label span.req {
  color: #EF4444;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--vibrant-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-control::placeholder {
  color: var(--text-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 95px;
}

/* Mode radio group pills */
.mode-pills-wrap {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.mode-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  background: var(--bg-body);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mode-pill-label:hover {
  border-color: var(--border-blue);
  background: var(--sky-lighter);
}

.mode-pill-label.selected,
.mode-pill-label input:checked + span {
  background: var(--sky-lighter);
  border-color: var(--vibrant-blue);
  color: var(--vibrant-blue);
  font-weight: 600;
}

.mode-pill-label input[type="radio"] {
  accent-color: var(--vibrant-blue);
}

.form-submit-row {
  margin-top: 0.5rem;
}

.form-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
}

.form-security-note i {
  color: #10B981;
}

/* Success Message Alert */
.form-success-alert {
  display: none;
  background: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  color: #065F46;
  animation: fadeIn 0.3s ease;
}

.form-success-alert.show {
  display: block;
}

.form-success-alert-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.form-success-alert p {
  font-size: 0.85rem;
  color: #047857;
  margin: 0;
}

/* ---- Instagram Card & Connection Section ---- */
.instagram-promo-card {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFF 50%, #F5F3FF 100%);
  border: 1.5px solid #FBCFE8;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(225, 48, 108, 0.08);
}

.instagram-qr-box {
  width: 190px;
  height: 190px;
  background: #fff;
  border: 2px solid #FBCFE8;
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 16px rgba(225, 48, 108, 0.1);
  position: relative;
}

.instagram-qr-icon {
  font-size: 4.5rem;
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.instagram-handle {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #833AB4;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.instagram-subtag {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.btn-instagram {
  background: linear-gradient(45deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
  color: #fff !important;
  border: none;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(221, 42, 123, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(221, 42, 123, 0.45);
}

/* Social icons strip */
.social-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-body);
  background: #fff;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.social-icon-btn.instagram:hover {
  background: #E1306C;
  color: #fff;
  border-color: #E1306C;
}

.social-icon-btn.facebook:hover {
  background: #1877F2;
  color: #fff;
  border-color: #1877F2;
}

.social-icon-btn.youtube:hover {
  background: #FF0000;
  color: #fff;
  border-color: #FF0000;
}

.social-icon-btn.whatsapp:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}

/* ---- Section: Map & Hours ---- */
.contact-map-hours-section {
  padding: 1rem 0 3.5rem;
  background: var(--bg-body);
}

.map-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.map-embed-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: #E2E8F0;
  position: relative;
  min-height: 240px;
  flex-grow: 1;
}

.map-embed-container iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: none;
  display: block;
}

.map-info-box {
  background: #fff;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.map-info-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.map-info-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.map-info-addr {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.map-info-time {
  font-size: 0.82rem;
  color: var(--royal-blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Hours Table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
}

.hours-table tr {
  border-bottom: 1px solid var(--border-light);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 0.65rem 0;
  font-size: 0.88rem;
}

.hours-day {
  font-weight: 600;
  color: var(--text-heading);
}

.hours-time {
  text-align: right;
  color: var(--royal-blue);
  font-weight: 600;
}

.hours-note-box {
  background: var(--sky-lighter);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.5;
}

.hours-note-box i {
  color: var(--vibrant-blue);
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Section: Why Talk to Microtech ---- */
.why-talk-section {
  padding: 3.5rem 0;
  background: #fff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.why-talk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.why-talk-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.why-talk-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-blue);
}

.why-talk-icon {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vibrant-blue);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.why-talk-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.why-talk-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---- Final CTA Section ---- */
.contact-final-cta {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--royal-blue) 100%);
  padding: 3.25rem 0;
}

.contact-final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact-final-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.contact-final-icon {
  width: 58px;
  height: 58px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.contact-final-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.contact-final-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  max-width: 540px;
}

.contact-final-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Bottom Quick Info Strip */
.contact-bottom-strip {
  background: var(--bg-body);
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 0;
}

.contact-bottom-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.contact-bottom-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-bottom-item:hover {
  color: var(--vibrant-blue);
}

.contact-bottom-item i {
  font-size: 1.1rem;
  color: var(--vibrant-blue);
}

/* Floating WhatsApp Button */
.floating-whatsapp-badge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-whatsapp-badge:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
  color: #fff;
}

.floating-whatsapp-badge i {
  font-size: 1.3rem;
}

/* ---- Responsive Styles ---- */
@media (max-width: 1024px) {
  .contact-methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-two-col-grid {
    grid-template-columns: 1fr;
  }

  .why-talk-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-hero-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero-img-card {
    height: 220px;
    border-radius: var(--radius-xl);
  }

  .contact-methods-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .map-info-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-info-box .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-final-inner {
    flex-direction: column;
    text-align: center;
  }

  .contact-final-left {
    flex-direction: column;
    text-align: center;
  }

  .contact-final-actions {
    justify-content: center;
    width: 100%;
  }

  .contact-final-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .why-talk-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 1.5rem;
  }

  .contact-bottom-grid {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .contact-hero-section {
    padding: 4rem 0 0;
  }

  .contact-hero-ctas {
    flex-direction: column;
  }

  .contact-hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .floating-whatsapp-badge span {
    display: none;
  }

  .floating-whatsapp-badge {
    padding: 0.85rem;
    border-radius: 50%;
  }
}
