/* ==========================================================================
   Ridge Water - Contact Us Page Stylesheet
   ========================================================================== */

/* Hero Banner Section */
.contact-hero-section {
  background: linear-gradient(180deg, #f0f7fd 0%, #ffffff 100%);
  padding: 60px 0 40px;
  overflow: hidden;
}

.contact-hero-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.contact-hero-title {
  font-size: 48px;
  font-weight: 900;
  color: #0b1e36;
  letter-spacing: -1px;
  margin-bottom: 8px;
  line-height: 1.1;
}

.contact-hero-tagline {
  font-size: 20px;
  font-weight: 700;
  color: #0077c8;
  margin-bottom: 16px;
}

.contact-hero-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  max-width: 560px;
  margin-bottom: 36px;
}

/* 4-Item Quick Strip */
.contact-quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.quick-info-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.quick-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #bae6fd;
  color: #0077c8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0, 119, 200, 0.08);
}

.quick-icon-circle svg {
  width: 20px;
  height: 20px;
}

.quick-info-label {
  font-size: 12px;
  font-weight: 700;
  color: #0b1e36;
  display: block;
  margin-bottom: 2px;
}

.quick-info-val {
  font-size: 12px;
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

a.quick-info-val:hover {
  color: #0077c8;
}

.contact-hero-graphic {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(11, 30, 54, 0.12);
}

.contact-hero-graphic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Main Section Layout */
.contact-main-section {
  padding: 40px 0 80px;
  background-color: #ffffff;
}

.contact-main-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Left Form Card */
.contact-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 4px 16px rgba(11, 30, 54, 0.04);
}

.form-card-title {
  font-size: 24px;
  font-weight: 800;
  color: #0b1e36;
  margin-bottom: 6px;
}

.form-card-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 24px;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #0b1e36;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: #0077c8;
  box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.1);
}

.form-textarea {
  resize: vertical;
}

.form-submit-btn {
  width: 100%;
  background-color: #0077c8;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.form-submit-btn:hover {
  background-color: #005fa3;
}

.form-submit-btn:active {
  transform: translateY(1px);
}

.form-submit-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.form-submit-btn:hover svg {
  transform: translateX(4px);
}

.form-response-msg {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  display: none;
}

.form-response-msg.success {
  display: block;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 10px 14px;
  border-radius: 8px;
}

.form-response-msg.error {
  display: block;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: 8px;
}

/* Right Column: Office Cards */
.office-header-wrap {
  margin-bottom: 20px;
}

.office-col-title {
  font-size: 24px;
  font-weight: 800;
  color: #0b1e36;
  margin-bottom: 8px;
}

.office-title-line {
  width: 42px;
  height: 3px;
  background-color: #0077c8;
  border-radius: 2px;
}

.office-info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.office-card-icon {
  color: #0077c8;
  flex-shrink: 0;
  margin-top: 2px;
}

.office-card-icon svg {
  width: 20px;
  height: 20px;
}

.office-entity-name {
  font-size: 15px;
  font-weight: 800;
  color: #0b1e36;
  margin-bottom: 4px;
}

.office-address-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
}

.office-info-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mini-card {
  margin-bottom: 16px;
}

.mini-card-label {
  font-size: 14px;
  font-weight: 800;
  color: #0b1e36;
  margin-bottom: 4px;
}

.mini-card-link {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.mini-card-link:hover {
  color: #0077c8;
}

.hours-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #0b1e36;
}

.hours-sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

/* Map Showcase Card */
.map-showcase-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 280px;
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

.map-embed-wrapper {
  width: 100%;
  height: 100%;
}

.map-card-overlay {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  max-width: 280px;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(11, 30, 54, 0.08);
}

.map-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0b1e36;
  margin-bottom: 6px;
}

.map-card-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 14px;
}

.map-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #0077c8;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.map-directions-btn:hover {
  background-color: #005fa3;
}

.map-directions-btn svg {
  width: 14px;
  height: 14px;
}

/* WhatsApp Support Banner */
.whatsapp-support-card {
  background: #f0f7fd;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.support-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.support-bubble-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0077c8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-bubble-icon svg {
  width: 24px;
  height: 24px;
}

.support-title {
  font-size: 17px;
  font-weight: 800;
  color: #0b1e36;
  margin-bottom: 2px;
}

.support-desc {
  font-size: 13.5px;
  color: #475569;
}

.support-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0077c8;
  border: 1.5px solid #0077c8;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.support-whatsapp-btn:hover {
  background: #0077c8;
  color: #ffffff;
}

.support-whatsapp-btn svg {
  width: 18px;
  height: 18px;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .contact-hero-container {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-hero-title {
    font-size: 36px;
  }
  .contact-quick-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .office-info-duo {
    grid-template-columns: 1fr;
  }
  .map-card-overlay {
    position: static;
    max-width: 100%;
    margin-bottom: 12px;
  }
  .map-showcase-card {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .map-embed-wrapper {
    height: 240px;
  }
  .whatsapp-support-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .support-whatsapp-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .contact-hero-section {
    padding: 40px 0 30px;
  }
  .form-row-split {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 24px 18px;
  }
}