/* =========================================================
   CONTACT PAGE
   Vedant Technologies
   ========================================================= */

.contact-hero {
  height: 300px;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.contact-hero-image {
  position: absolute;
  inset: 0;
  background-image: url('../img/contact_hero.jpg');
  background-size: cover;
  background-position: center 46%;
}

.contact-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 10, 22, 0.55) 0%,
    rgba(0, 10, 22, 0.40) 35%,
    rgba(0, 10, 22, 0.18) 70%,
    rgba(0, 10, 22, 0.08) 100%
  );
}

.contact-hero-content {
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.contact-hero .section-kicker {
  color: #68b2ff;
  margin-bottom: 10px;
}

.contact-hero h1 {
  margin: 0 0 10px;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -1.3px;
  font-weight: 800;
}

.contact-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #dbe7f5;
}

.contact-breadcrumb a:hover { color: #fff; }
.contact-breadcrumb strong { color: #fff; font-weight: 600; }

.contact-cards-section {
  padding: 58px 0 28px;
  background: #fff;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.contact-card {
  min-height: 250px;
  padding: 30px 24px 27px;
  text-align: center;
  background: #f6f6f7;
  border: 1px solid #f0f1f3;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(16,35,62,.08);
}

.contact-card-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 21px;
}

.contact-card h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
}

.contact-card p {
  margin: 0 0 4px;
  color: #687282;
  font-size: 14px;
  line-height: 1.5;
}

.contact-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  padding: 8px 16px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}

.contact-card-btn:hover {
  background: #1766c5;
  transform: translateY(-2px);
}

.contact-map-section {
  padding: 0 0 38px;
}

.contact-map-wrap {
  height: 360px;
  overflow: hidden;
  border: 1px solid #e2e7ee;
  background: #e9eef3;
}

.contact-map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form-section {
  padding: 24px 0 72px;
  background: #fff;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 70px;
  align-items: start;
}

.contact-intro {
  padding-top: 4px;
}

.contact-intro .section-kicker {
  color: var(--blue);
  margin-bottom: 12px;
}

.contact-intro h2 {
  margin: 0 0 20px;
  color: var(--navy);
  font-size: 32px;
  line-height: 1.13;
  letter-spacing: -.7px;
  font-weight: 800;
}

.contact-intro-text {
  max-width: 510px;
  margin: 0;
  color: #707987;
  font-size: 13px;
  line-height: 1.7;
}

.contact-mini-row {
  display: flex;
  gap: 32px;
  margin-top: 27px;
}

.contact-mini-item {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.contact-mini-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
}

.contact-mini-item b,
.contact-mini-item small {
  display: block;
}

.contact-mini-item b {
  margin-bottom: 3px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.contact-mini-item small {
  color: #747d89;
  font-size: 14px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d9dfe7;
  border-radius: 0;
  outline: none;
  background: #fff;
  color: var(--ink);
  font: 400 12px/1.5 Inter, Arial, sans-serif;
  padding: 0 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input {
  height: 48px;
}

.contact-form textarea {
  height: 130px;
  padding-top: 12px;
  resize: vertical;
  min-height: 110px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #7a8491; }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #73aaf0;
  box-shadow: 0 0 0 3px rgba(40,116,210,.08);
}

.contact-submit {
  width: 160px;
  min-height: 43px;
  margin-top: 1px;
  border: 0;
  cursor: pointer;
  border-radius: 0;
  background: var(--blue);
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
}

.contact-submit:hover { background: #1766c5; }

.form-note {
  margin: -2px 0 0;
  color: #87909d;
  font-size: 10px;
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 991px) {
  .contact-hero { height: 270px; }
  .contact-cards { gap: 15px; }
  .contact-card { padding-left: 15px; padding-right: 15px; }
  .contact-form-grid { gap: 35px; }
}

@media (max-width: 767px) {
  .contact-hero { height: 250px; }
  .contact-hero h1 { font-size: 39px; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card { min-height: 220px; }
  .contact-map-wrap { height: 300px; }
  .contact-form-grid { grid-template-columns: 1fr; gap: 38px; }
  .contact-intro h2 { font-size: 29px; }
}

@media (max-width: 575px) {
  .contact-hero { height: 230px; }
  .contact-hero h1 { font-size: 35px; }
  .contact-cards-section { padding-top: 35px; }
  .contact-map-wrap { height: 260px; }
  .contact-form-section { padding-bottom: 52px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .contact-mini-row { flex-direction: column; gap: 17px; }
}


/* =========================================================
   Contact form layout — final override
   ========================================================= */
.contact-form,
.contact-form-wrap,
.contact-form-area {
  width: 100%;
}

.contact-form form,
#contactForm {
  width: 100%;
  display: block;
}

#contactForm .contact-form-row,
#contactForm .form-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

#contactForm .contact-form-row > *,
#contactForm .form-row > * {
  flex: 1 1 0;
  min-width: 0;
}

#contactForm input,
#contactForm textarea,
#contactForm select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9dee7;
  border-radius: 0;
  background: #fff;
  color: #5f656f;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  padding: 0 14px;
  outline: none;
}

#contactForm input,
#contactForm select {
  height: 46px;
}

#contactForm textarea {
  height: 130px;
  min-height: 130px;
  padding: 14px;
  resize: vertical;
}

#contactForm input:focus,
#contactForm textarea:focus,
#contactForm select:focus {
  border-color: #2874d2;
}

#contactForm .contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  min-width: 160px;
  height: 52px;
  min-height: 52px;
  padding: 0 24px;
  margin-top: 14px;
  border: 0;
  border-radius: 0;
  background: #2874d2;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

#contactForm .contact-submit span {
  margin-left: 8px;
}

#contactForm .contact-submit:disabled {
  opacity: .7;
  cursor: wait;
}

#formStatus {
  margin-top: 16px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  #contactForm .contact-form-row,
  #contactForm .form-row {
    flex-direction: column;
    gap: 10px;
  }

  #contactForm input,
  #contactForm textarea,
  #contactForm select {
    width: 100%;
  }

  #contactForm .contact-submit {
    width: 180px;
    min-width: 180px;
  }
}


/* Responsive contact fixes */
@media (max-width: 991px) {
  /* Keep the tablet contact details from colliding */
  .contact-mini-row {
    gap: 18px;
    flex-wrap: wrap;
  }

  .contact-mini-item {
    gap: 8px;
  }

  .contact-mini-item small {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  #contactForm .contact-form-row,
  #contactForm .form-row {
    flex-direction: column;
    gap: 10px;
  }

  #contactForm input,
  #contactForm textarea,
  #contactForm select {
    width: 100%;
  }

  #contactForm .contact-submit {
    width: 180px;
    min-width: 180px;
  }
}

@media (max-width: 575px) {
  /* True mobile: make the message area comfortably tall */
  #contactForm textarea {
    height: 180px !important;
    min-height: 180px !important;
    resize: none;
  }

  /* Keep Call Us / Mail Us neat and readable */
  .contact-mini-row {
    flex-direction: column;
    gap: 17px;
  }

  .contact-mini-item small {
    font-size: 14px;
  }
}

@media screen and (max-width: 767px) {
  #contactForm input {
    height: 40px !important;
    min-height: 40px !important;
  }
}

