/**
 * Contact Page Master Stylesheet - Hindustan Power EV
 * 100% Pixel-Perfect match to approved design mockup.
 *
 * @package HindustanPowerEV
 * @version 4.0.0
 */

/* ==========================================================================
   1. Page Layout & Variables Override
   ========================================================================== */
.hp-contact-page-wrapper {
  width: 100%;
  overflow-x: hidden;
  background-color: #ffffff;
}

/* Ensure Sticky Header contrast on Contact Page */
.hp-site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  padding: 1rem 0 !important;
  transition: all 0.3s ease;
}

.hp-site-header .hp-logo-title {
  color: #0f172a !important;
}

.hp-site-header .hp-nav-menu a {
  color: #334155 !important;
}

.hp-site-header .hp-nav-menu a:hover,
.hp-site-header .hp-nav-menu a.current-menu-item,
.hp-site-header .hp-nav-menu a.active {
  color: #00838f !important;
  position: relative;
}

.hp-site-header .hp-nav-menu a.current-menu-item::after,
.hp-site-header .hp-nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #00838f;
  border-radius: 99px;
}

/* ==========================================================================
   2. Hero Banner Section
   ========================================================================== */
.hp-contact-hero {
  position: relative;
  width: 100%;
  min-height: 380px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/contact/showroom.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  text-align: center;
  overflow: hidden;
}

.hp-contact-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.72) 0%, rgba(15, 23, 42, 0.68) 100%);
  z-index: 1;
}

.hp-contact-hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hp-contact-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hp-contact-breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.hp-contact-breadcrumb span.sep {
  color: #38bdf8;
  font-weight: 700;
}

/* ==========================================================================
   3. Main Section Header (Sub-head)
   ========================================================================== */
.hp-contact-subhead {
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 3rem;
}

.hp-contact-sub-badge {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #00838f;
  margin-bottom: 0.5rem;
}

.hp-contact-main-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.hp-contact-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 auto;
}

.hp-contact-divider-line {
  width: 45px;
  height: 3px;
  background-color: #00838f;
  border-radius: 99px;
}

.hp-contact-divider-dot {
  width: 7px;
  height: 7px;
  background-color: #00838f;
  border-radius: 50%;
}

/* ==========================================================================
   4. Contact Form & Info Grid
   ========================================================================== */
.hp-contact-main-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-bottom: 4rem;
}

/* --- Left Column: Contact Form Card --- */
.hp-contact-form-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
}

.hp-form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.hp-form-group {
  margin-bottom: 1.25rem;
}

.hp-form-group:last-child {
  margin-bottom: 0;
}

.hp-form-control,
.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap select,
.wpcf7-form-control-wrap textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #1e293b;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.25s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.hp-form-control::placeholder,
.wpcf7-form-control-wrap input::placeholder,
.wpcf7-form-control-wrap textarea::placeholder {
  color: #94a3b8;
}

.hp-form-control:focus,
.wpcf7-form-control-wrap input:focus,
.wpcf7-form-control-wrap select:focus,
.wpcf7-form-control-wrap textarea:focus {
  background-color: #ffffff;
  border-color: #00838f;
  box-shadow: 0 0 0 4px rgba(0, 131, 143, 0.12);
}

/* Custom Select styling with dropdown icon */
.hp-select-wrapper {
  position: relative;
}

.hp-select-wrapper::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748b' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

textarea.hp-form-control,
.wpcf7-form-control-wrap textarea {
  min-height: 140px;
  resize: vertical;
}

.hp-contact-submit-btn,
.wpcf7-form input[type="submit"] {
  width: 100%;
  padding: 1.05rem 2rem;
  background-color: #00838f;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 22px rgba(0, 131, 143, 0.28);
  margin-top: 0.5rem;
}

.hp-contact-submit-btn:hover,
.wpcf7-form input[type="submit"]:hover {
  background-color: #006b75;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 131, 143, 0.38);
}

.hp-contact-submit-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Contact Form 7 specific styling overrides */
.wpcf7-form .wpcf7-response-output {
  margin: 1.25rem 0 0 0 !important;
  padding: 1rem 1.25rem !important;
  border-radius: 12px !important;
  font-size: 0.9rem !important;
  font-family: 'Inter', sans-serif !important;
}
.wpcf7-form.sent .wpcf7-response-output {
  background-color: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #166534 !important;
}
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
  background-color: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #991b1b !important;
}
.wpcf7-not-valid-tip {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 0.25rem;
  font-family: 'Inter', sans-serif;
}

/* --- Right Column: Contact Info Card --- */
.hp-contact-info-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
}

.hp-contact-info-header {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 0.85rem;
  border-left: 4px solid #00838f;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.hp-contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hp-contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.hp-contact-info-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.hp-contact-icon-circle {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background-color: #e6f4f5;
  color: #00838f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.hp-contact-info-item:hover .hp-contact-icon-circle {
  background-color: #00838f;
  color: #ffffff;
  transform: scale(1.06);
}

.hp-contact-icon-circle svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.hp-contact-info-text {
  display: flex;
  flex-direction: column;
}

.hp-contact-info-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.hp-contact-info-val {
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.hp-contact-info-val a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hp-contact-info-val a:hover {
  color: #00838f;
}

.hp-contact-info-sub {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 500;
  margin-top: 0.15rem;
}

/* ==========================================================================
   5. Quick Support Cards Section
   ========================================================================== */
.hp-quick-support-section {
  background-color: #eef7f7;
  border-radius: 20px;
  padding: 2.25rem 2.5rem;
  margin-bottom: 4rem;
}

.hp-quick-support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.hp-support-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-right: 1.25rem;
  position: relative;
}

.hp-support-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(0, 131, 143, 0.2);
}

.hp-support-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: #ffffff;
  color: #00838f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 131, 143, 0.12);
  transition: all 0.3s ease;
}

.hp-support-card:hover .hp-support-icon {
  background-color: #00838f;
  color: #ffffff;
  transform: translateY(-2px);
}

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

.hp-support-content h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.hp-support-content p {
  font-size: 0.825rem;
  color: #64748b;
  line-height: 1.35;
}

/* ==========================================================================
   6. Google Maps Section
   ========================================================================== */
.hp-map-section {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 4rem;
  background: #f8fafc;
}

.hp-map-container {
  width: 100%;
  height: 460px;
  position: relative;
}

.hp-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.08) contrast(1.04);
}

.hp-map-info-card {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  width: 360px;
  max-width: calc(100% - 5rem);
  background: #ffffff;
  border-radius: 18px;
  padding: 2.25rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  z-index: 10;
  border: 1px solid #f1f5f9;
}

.hp-map-info-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.6rem;
}

.hp-map-info-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.hp-map-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hp-map-bullets li {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hp-map-bullets li svg {
  width: 16px;
  height: 16px;
  color: #00838f;
  flex-shrink: 0;
}

.hp-map-directions-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background-color: #00838f;
  color: #ffffff;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 131, 143, 0.25);
}

.hp-map-directions-btn:hover {
  background-color: #006b75;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 131, 143, 0.35);
}

/* ==========================================================================
   7. Bottom CTA Banner
   ========================================================================== */
.hp-contact-bottom-cta {
  background: linear-gradient(135deg, #0b1329 0%, #0f172a 100%);
  border-radius: 24px;
  padding: 3.5rem 3.5rem;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  margin-bottom: 4rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.hp-contact-bottom-cta::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 131, 143, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.hp-bottom-cta-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hp-bottom-cta-img-wrap {
  text-align: center;
}

.hp-bottom-cta-img-wrap img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
  transition: transform 0.5s ease;
}

.hp-contact-bottom-cta:hover .hp-bottom-cta-img-wrap img {
  transform: scale(1.03) translateY(-4px);
}

.hp-bottom-cta-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hp-bottom-cta-content p {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hp-bottom-cta-buttons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hp-cta-btn-primary {
  padding: 0.95rem 2rem;
  background-color: #00838f;
  color: #ffffff;
  border: 2px solid #00838f;
  border-radius: 99px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 131, 143, 0.3);
}

.hp-cta-btn-primary:hover {
  background-color: #006b75;
  border-color: #006b75;
  color: #ffffff;
  transform: translateY(-2px);
}

.hp-cta-btn-outline {
  padding: 0.95rem 2rem;
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 99px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hp-cta-btn-outline:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Notification Toast for Form Fallback */
.hp-contact-toast {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}

.hp-contact-toast.success {
  display: block;
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.hp-contact-toast.error {
  display: block;
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* ==========================================================================
   8. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .hp-contact-hero-title {
    font-size: 2.75rem;
  }
  .hp-quick-support-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .hp-support-card:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 992px) {
  .hp-contact-hero {
    height: 350px;
  }
  .hp-contact-main-grid {
    grid-template-columns: 1fr;
  }
  .hp-map-info-card {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 1.5rem;
    box-shadow: none;
    border: 1px solid #e2e8f0;
  }
  .hp-map-section {
    box-shadow: none;
    background: transparent;
  }
  .hp-bottom-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hp-bottom-cta-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hp-bottom-cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hp-contact-hero-title {
    font-size: 2.25rem;
  }
  .hp-contact-main-heading {
    font-size: 1.75rem;
  }
  .hp-form-row-2col {
    grid-template-columns: 1fr;
  }
  .hp-contact-form-card,
  .hp-contact-info-card {
    padding: 1.75rem 1.25rem;
  }
  .hp-quick-support-grid {
    grid-template-columns: 1fr;
  }
  .hp-support-card::after {
    display: none !important;
  }
  .hp-quick-support-section {
    padding: 1.75rem 1.25rem;
  }
  .hp-contact-bottom-cta {
    padding: 2.5rem 1.5rem;
  }
}
