/* --- Left Side: Info Panel --- */
.contact-info-panel {
  background: linear-gradient(135deg, rgb(1, 66, 109) 0%, #0f2e35 100%);
  padding: clamp(30px, 3vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.panel-title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.panel-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #4fd1c5;
  margin-top: 8px;
  border-radius: 2px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.contact-icon {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4fd1c5;
  margin-right: 15px;
  flex-shrink: 0;
}

/* --- Right Side: Form Panel --- */
.contact-form-panel {
  background: #ffffff;
  padding: clamp(25px, 3vw, 50px);
  height: 100%; /* Ensures it fills height if side-by-side */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-heading {
  color: rgb(0 88 148);
  font-weight: 800;
  margin-bottom: 25px;
  font-size: clamp(20px, 2vw, 24px); /* Responsive Font */
}

/* Unified Style for Inputs & Select Dropdown */
.custom-input {
  background-color: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 16px; /* 16px prevents iOS zoom on focus */
  color: #334155;
  width: 100%;
  transition: all 0.25s ease-in-out;
}

/* Interactive: Hover State */
.custom-input:hover {
  background-color: #fff;
  border-color: #cbd5e1;
}

/* Interactive: Focus State */
.custom-input:focus {
  background-color: #fff;
  border-color: #005894;
  box-shadow: 0 0 0 4px rgba(0, 88, 148, 0.1); /* Soft Blue Glow */
  outline: none;
}
/* --- Dropdown Specifics --- */
select.custom-input {
  appearance: none; /* Remove default browser arrow */
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Custom Arrow Icon (Dark Grey) */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px 10px;
  cursor: pointer;
  line-height: 1.5; /* Align text vertically */
}

/* Placeholder Styling Logic */
.custom-input::placeholder {
  color: #94a3b8;
  font-size: 14px;
}

/* Make Dropdown look like placeholder until selected */
select.custom-input:invalid,
select.custom-input option[value=""] {
  color: #94a3b8; /* Gray text for "Select Service" */
}

/* When valid option selected, turn text dark */
select.custom-input:valid {
  color: #334155;
}

/* Button Responsive Fix */
.btn-teal-glow.w-100 {
  margin-top: 15px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* --- Mobile Responsiveness (Critical) --- */
@media (max-width: 991px) {
  .featured-blog-card .row {
    flex-direction: column; /* Stack vertically */
  }

  /* Remove fixed height so content expands naturally */
  .contact-info-panel,
  .contact-form-panel {
    height: auto;
    padding: 30px 20px;
  }

  /* Round corners differently when stacked */
  .contact-info-panel {
    border-radius: 20px 20px 0 0;
  }
  .contact-form-panel {
    border-radius: 0 0 20px 20px;
  }

  /* Make inputs larger on touch devices */
  .custom-input {
    padding: 14px 15px;
  }
}

/* =========================================
   TESTIMONIAL SECTION (Themed & Responsive)
   ========================================= */

.testimonial-section {
  padding: clamp(50px, 6vw, 80px) 0;

  /* Dynamic Background using Primary Color Variable */
  /* Mixes your primary blue with a darker shade for the gradient */
  background: radial-gradient(
    circle at center,
    var(--primary-color) 0%,
    #001f3f 100%
  );
  position: relative;
  overflow: hidden;
}

/* Optional: Background Glow Effect */
.testimonial-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  /* Soft glow using white with low opacity */
  background: radial-gradient(
    ellipse at top,
    rgba(255, 255, 255, 0.1),
    transparent 60%
  );
  pointer-events: none;
  z-index: 1;
}

/* Glass Card Styling */
.glass-testimonial-card {
  background: rgba(255, 255, 255, 0.05); /* Slight white tint */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(
    --comman-radius-box,
    16px
  ); /* Use theme radius if available */
  padding: 35px 30px;
  height: 100%;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.glass-testimonial-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

/* Quote Icon */
.quote-icon {
  font-size: 30px;
  color: var(--white-color); /* Updated to Theme White */
  margin-bottom: 20px;
  opacity: 0.9;
}

/* Review Text */
.review-text {
  color: var(--white-color); /* Updated to Theme White */
  font-size: clamp(15px, 1.5vw, 16px); /* Responsive Font Size */
  line-height: 1.7;
  margin-bottom: 30px;
  flex-grow: 1; /* Pushes client info to bottom */
  font-style: italic;
  opacity: 0.85;
}

/* Client Info Area */
.client-info {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
}

.client-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white-color); /* White Border */
  margin-right: 15px;
  flex-shrink: 0;
}

.client-name {
  color: var(--white-color);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.client-role {
  color: rgba(255, 255, 255, 0.7); /* Softer white for role */
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-top: 4px;
}
.contact-icon {
  transition: all 0.3s ease;
}
.contact-detail-item .contact-icon {
  color: #ffffff;
}

/* When hovering over the contact info item, change the icon box */
.contact-detail-item:hover .contact-icon {
  background-color: var(--primary-color) !important; /* Theme Blue Background */
  color: #ffffff !important; /* White Icon for contrast */
  box-shadow: 0 0 15px rgba(1, 66, 109, 0.5); /* Optional: Blue glow */
  transform: scale(1.1); /* Optional: slight bump effect */
}
.btn-teal-glow:hover {
  /* Change background to theme blue on hover */
  background: var(--primary-color) !important;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    rgb(0, 45, 80) 100%
  ) !important; /* Optional: nicer blue gradient */

  color: #ffffff !important;
  /* Update shadow to match the blue */
  box-shadow: 0 10px 25px rgba(1, 66, 109, 0.4) !important;
  transform: translateY(-3px);
}
/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */

/* Tablet (Portrait) & Large Mobile */
@media (max-width: 991px) {
  .testimonial-section {
    padding: 70px 0;
  }

  .glass-testimonial-card {
    padding: 30px 25px;
  }

  .review-text {
    font-size: 15px; /* Slightly smaller text for readability */
  }
}

/* Mobile Devices */
@media (max-width: 767px) {
  .testimonial-section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 28px; /* Ensure title fits on small screens */
  }

  .glass-testimonial-card {
    padding: 25px 20px;
    margin-bottom: 15px; /* Add spacing if they stack closely */
  }

  .quote-icon {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .review-text {
    margin-bottom: 20px;
  }

  /* Stack client info vertically on very small screens if needed */
  .client-info {
    padding-top: 15px;
  }
}

/* =========================================
   MAP SECTION (Clean & Responsive)
   ========================================= */

.map-section {
  padding: clamp(60px, 8vw, 100px) 0;
  background: transparent;
  position: relative;
}
/* Updates globally for the whole site */
.section-title {
  font-size: clamp(24px, 3vw, 36px) !important;
}
/* The Map Container */
.clean-map-wrapper {
  width: 100%;

  height: clamp(300px, 50vw, 450px);

  background: #fff; /* Basic white behind map */
  border-radius: 20px; /* Rounded corners */
  overflow: hidden; /* Clips the iframe to the rounded corners */

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Interactive Hover Effect */
.clean-map-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* The Iframe */
.clean-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Removes bottom gap */
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */

@media (max-width: 768px) {
  .map-section {
    padding: 50px 0;
  }

  /* Remove hover lift on mobile to prevent scrolling glitches */
  .clean-map-wrapper:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .clean-map-wrapper {
    border-radius: 12px; /* Slightly less rounded on small screens */
  }
}
