/* =========================
   ROOT VARIABLES (REQUIRED ONLY)
========================= */
:root {
  --primary-blue: #0b2447;
  --action-red: #d71313;
  --bg-main: #f9fafb;
  --text-secondary: #64748b;
  --text-muted: #6b7280;
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
  --site-padding-x: 50px;
}

/* =========================
           CONTACT PAGE LAYOUT
        ========================= */
.contact-page {
  background: var(--bg-main, #f9fafb);
  padding: 50px var(--site-padding-x) 60px;
  margin: 0 auto;
}

/* Using a 3-column structural layout for wide viewports to cleanly hold Details, Form, and Map side-by-side */
.contact-wrapper-simple {
  max-width: 1400px;
  margin: 60px auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.contact-details-card,
.contact-form-card,
.contact-map-card {
  background: white;
  border-radius: 24px;
  padding: 35px;
  box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.08));
  transition: transform 0.3s ease;
}

.contact-details-card:hover,
.contact-form-card:hover,
.contact-map-card:hover {
  transform: translateY(-5px);
}

/* Card Typography */
.contact-page h2 {
  font-size: 1.8rem;
  color: var(--primary-blue, #0b2447);
  margin-bottom: 8px;
  font-weight: 800;
}

.contact-page .subtitle {
  color: var(--text-secondary, #64748b);
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Left Column List Items */
.details-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.detail-item i {
  font-size: 1.6rem;
  color: var(--action-red, #d71313);
  min-width: 35px;
  text-align: center;
  margin-top: 4px;
}

.detail-item h4 {
  font-size: 1.1rem;
  color: var(--primary-blue, #0b2447);
  margin-bottom: 4px;
  font-weight: 700;
}

.detail-item p,
.detail-item a {
  color: var(--text-secondary, #64748b);
  line-height: 1.5;
  font-size: 0.95rem;
  text-decoration: none;
}

.detail-item a:hover {
  color: var(--action-red, #d71313);
  text-decoration: underline;
}

/* =========================
           FORM CONTENT STYLING
        ========================= */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-blue, #0b2447);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #2d3748;
  background-color: #f8fafc;
  outline: none;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-blue, #0b2447);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(11, 36, 71, 0.1);
}

/* Custom Dropdown Styling */
.select-wrapper {
  position: relative;
  width: 100%;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text-secondary);
  pointer-events: none;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Form Submission Action button matches existing interactive feel */
.submit-btn {
  width: 100%;
  background-color: var(--primary-blue, #0b2447);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.submit-btn:hover {
  background-color: var(--action-red, #d71313);
  transform: translateY(-1px);
  box-shadow: 0 8px 15px rgba(215, 19, 19, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
           RIGHT SIDE MAP STYLING
        ========================= */
.contact-map-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.map-container {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.05));
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* =========================
           WHATSAPP BLOCK STYLING
        ========================= */
.whatsapp-cta {
  max-width: 1200px;
  margin: 40px auto 0;
  text-align: center;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #25D366;
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 60px;
  text-decoration: none;
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.whatsapp-btn i {
  font-size: 1.8rem;
}

.whatsapp-btn:hover {
  background: white;
  color: #25D366;
  border-color: #25D366;
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(37, 211, 102, 0.4);
}

.response-note {
  margin-top: 14px;
  color: var(--text-muted, #6b7280);
  font-size: 0.95rem;
}

/* =========================
           RESPONSIVE RE-FLOW
        ========================= */
@media (max-width: 1150px) {
  .contact-wrapper-simple {
    grid-template-columns: 1fr 1fr;
    /* Shifts to 2 columns on intermediate viewports */
    gap: 25px;
  }

  .contact-map-card {
    grid-column: span 2;
    /* Forces Map to expand fully underneath the details and form */
  }
}

@media (max-width: 768px) {
  .contact-page {
    padding: 40px 20px;
  }

  .contact-wrapper-simple {
    grid-template-columns: 1fr;
    /* Direct vertical single column stack on mobile layouts */
    gap: 25px;
  }

  .contact-map-card {
    grid-column: span 1;
  }

  .contact-details-card,
  .contact-form-card,
  .contact-map-card {
    padding: 25px;
  }

  .whatsapp-btn {
    font-size: 1.1rem;
    padding: 12px 30px;
    width: 100%;
    max-width: 340px;
  }
}