/* ==========================================================================
   INSTASHIELD - CONTACT PAGE STYLESHEET
   css/contact.css
   ========================================================================== */

/* CONTACT HERO (DARK THEME - SAME AS HOME, ABOUT, PRODUCT, GALLERY & LEGAL) */
.contact-hero {
  position: relative;
  min-height: 440px;
  padding: 180px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(49, 199, 232, 0.18), transparent 70%),
              radial-gradient(ellipse 50% 50% at 85% 65%, rgba(8, 118, 185, 0.15), transparent 60%),
              linear-gradient(135deg, var(--midnight) 0%, var(--navy) 50%, var(--midnight) 100%);
  color: var(--white);
  overflow: hidden;
}

.contact-hero .wrap {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.contact-hero .eyebrow {
  color: var(--cyan);
}

.contact-hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  color: #ffffff;
  margin: 10px 0 16px;
}

.contact-hero p.sub {
  font-size: clamp(16px, 1.8vw, 20px);
  color: #cfe3ee;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* CONTACT MAIN SECTION (LIGHT THEME LIKE .how & .corporate-sec) */
.contact-section {
  position: relative;
  padding: 80px 0 120px;
  background: linear-gradient(180deg, var(--ice) 0%, #ffffff 100%);
  color: var(--navy);
  margin-top: -40px;
  border-radius: 54px 54px 0 0;
  z-index: 3;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

/* CONTACT FORM CARD */
.contact-form-card {
  background: #ffffff;
  border: 1px solid rgba(8, 118, 185, 0.18);
  border-radius: 30px;
  padding: 44px 38px;
  box-shadow: 0 16px 45px rgba(6, 43, 73, 0.08);
}

.contact-form-card h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-form-card p.form-sub {
  font-size: 15px;
  color: #55758c;
  margin-bottom: 28px;
  line-height: 1.55;
}

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

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(8, 118, 185, 0.22);
  background: #f8fcfe;
  color: var(--navy);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(8, 118, 185, 0.15);
}

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

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 16px;
  background: linear-gradient(100deg, var(--blue), var(--cyan) 75%, var(--mint));
  color: var(--midnight);
  font-size: 15px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(49, 199, 232, 0.4);
}

.whatsapp-direct-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 16px;
  background: #25D366;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-direct-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* SUCCESS & ERROR MESSAGE BOXES */
.form-success-box {
  display: none;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(139, 214, 74, 0.15);
  border: 1px solid rgba(139, 214, 74, 0.35);
  color: #2e660b;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 24px;
  align-items: center;
  gap: 12px;
  animation: fadeInDown 0.3s ease;
}

.form-success-box.show {
  display: flex !important;
}

.form-error-box {
  display: none;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #b91c1c;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  align-items: flex-start;
  gap: 12px;
  animation: fadeInDown 0.3s ease;
}

.form-error-box.show {
  display: flex !important;
}

.form-error-box ul {
  margin: 0;
  padding-left: 18px;
}

.form-error-box li {
  margin-bottom: 4px;
}

.form-error-box li:last-child {
  margin-bottom: 0;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.submit-btn:disabled,
.submit-btn.loading {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btnSpinnerRotate 0.65s linear infinite;
  display: inline-block;
}

@keyframes btnSpinnerRotate {
  to { transform: rotate(360deg); }
}

/* INFO SIDEBAR CARDS */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: #ffffff;
  border: 1px solid rgba(8, 118, 185, 0.16);
  border-radius: 24px;
  padding: 30px 26px;
  box-shadow: 0 10px 30px rgba(6, 43, 73, 0.06);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(8, 118, 185, 0.12);
  border-color: var(--blue);
}

.info-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(8, 118, 185, 0.08);
  color: var(--blue);
  border: 1px solid rgba(8, 118, 185, 0.2);
  flex-shrink: 0;
}

.info-icon-box svg {
  width: 24px;
  height: 24px;
}

.info-text h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.info-text p {
  font-size: 14px;
  color: #4b6d85;
  line-height: 1.55;
  margin: 0;
}

.info-link {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 13.5px;
  margin-top: 8px;
}

.info-link:hover {
  text-decoration: underline;
}

/* CORPORATE ENTITIES STRIP */
.entities-card {
  background: linear-gradient(135deg, rgba(8, 118, 185, 0.05) 0%, rgba(49, 199, 232, 0.08) 100%);
  border: 1px dashed rgba(8, 118, 185, 0.3);
  border-radius: 20px;
  padding: 22px 24px;
  font-size: 13px;
  color: #3f617a;
  line-height: 1.6;
}

.entities-card strong {
  color: var(--navy);
}

/* GOOGLE MAPS PREVIEW CONTAINER */
.map-section {
  margin-top: 60px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(8, 118, 185, 0.18);
  box-shadow: 0 16px 45px rgba(6, 43, 73, 0.08);
}

.map-section iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* RESPONSIVE DESIGN */
@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 30px 20px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .submit-btn,
  .whatsapp-direct-btn {
    width: 100%;
    justify-content: center;
  }
}
