/* =========================
   CONTACT HERO
   ========================= */

.contact-hero {
  text-align: center;
  padding: 40px 20px 0px;
  position: relative;
}

.hero-icon-bg {
  width: 120px;
  height: 120px;
  background: linear-gradient(180deg, #0f3dde, #4169e1);
  border-radius: 24px;
  display: grid;
  place-items: center;
  margin: 0 auto 32px;
  box-shadow: 0 10px 30px rgba(15, 61, 222, 0.3);
  transform: rotate(15deg);
}

.hero-icon-bg img {
  width: 56px;
  filter: brightness(0) invert(1);
}

.contact-title {
  font-family: 'Livvic', sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #0a0a0a;
  margin: 20px 0 16px;
}

.contact-subtitle {
  font-size: 20px;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
}

/* =========================
   CONTACT CARDS
   ========================= */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 40px;
}

.card {
  background: linear-gradient(135deg, #fff7ed, #fff4e6);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: #0f3dde;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
}

.card-title {
  font-family: 'Livvic', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 12px;
}

.card-text {
  font-size: 16px;
  color: #374151;
  line-height: 1.6;
}

.available-badge {
  display: inline-block;
  margin-top: 12px;
  background: #fff;
  color: #0f3dde;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
}

/* =========================
   FORM SECTION
   ========================= */

.form-section {
  position: relative;
  padding: 50px 20px 50px;
  overflow: hidden;
}

.form-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.form-card {
  background: #fff;
  border-radius: 32px;
  padding: 60px 70px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

.form-header {
  text-align: center;
  margin-bottom: 48px;
}

.form-title {
  font-family: 'Livvic', sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 16px;
}

.form-subtitle {
  color: #64748b;
  font-size: 18px;
  max-width: 500px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
}

.form-input,
.form-textarea {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 16px;
  color: #1e293b;
  transition: all 0.3s;
  box-sizing: border-box;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #0f3dde;
  box-shadow: 0 0 0 3px rgba(15, 61, 222, 0.15), 0 0 0 1px #0f3dde;
  outline: 2px solid transparent; /* Ensures focus ring without default outline */
}

.form-textarea {
  min-height: 160px;
  resize: none;
}

.submit-btn {
  background: linear-gradient(135deg, #0f3dde, #9333ea);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  margin: 40px auto 0;
  width: 100%;
  height: 48px;
  transition: all 0.3s;
  display: block;
}

.submit-btn:focus {
  box-shadow: 0 0 0 3px rgba(15, 61, 222, 0.15), 0 0 0 1px #0f3dde;
  outline: 2px solid transparent;
}

.submit-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(15, 61, 222, 0.4);
}

.form-note {
  text-align: center;
  margin-top: 20px;
  color: #64748b;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.form-note img {
  width: 60px;
  height: auto;
  flex-shrink: 0;
  pointer-events: none; /* Ensure image doesn't interfere with tabbing */
}

/* =========================
   FORM ILLUSTRATION
   ========================= */

.image-36 {
  position: absolute;
  right: 5%;
  top: 82%;
  transform: translateY(-50%);
  width: 280px;
  max-width: 40vw;
  height: auto;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: darken;
}

@media (min-width: 1440px) {
  .image-36 {
    top: 78%;
    right: 8%;
  }
}

@media (min-width: 1920px) {
  .image-36 {
    top: 76%;
    right: 10%;
  }
}

/* =========================
   CTA BANNER
   ========================= */

.cta-banner {
  background: linear-gradient(90deg, #0f3dde, #ff6900);
  border-radius: 32px;
  padding: 70px 40px;
  text-align: center;
  color: #ffffff;
  max-width: 1100px;
  margin: 0 auto 140px;
  position: relative;
  overflow: hidden;
  margin-top:50px;
}

.cta-title {
  font-family: 'Livvic', sans-serif;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 18px;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 24px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cta-btn {
  padding: 18px 44px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 18px;
  min-width: 220px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.cta-btn.primary {
  background: #0f3dde;
  color: #ffffff;
}

.cta-btn.secondary {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
}

.cta-btn:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
  outline: 2px solid transparent;
}

.cta-btn:hover {
  transform: translateY(-5px);
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */

/* Tablet (max-width: 1024px) - Mimic mobile layout */
@media (max-width: 1024px) {
  .form-card {
    padding: 50px 40px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .image-36 {
    position: static;
    display: block;
    margin: 100px auto 0;
    width: 220px;
  }

  .form-note img {
    width: 50px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 100px 20px 60px;
  }

  .contact-cards {
    padding: 0 20px;
    grid-template-columns: 1fr;
  }

  .form-section {
    padding: 0px 20px 0px;
  }

  .form-card {
    padding: 40px 30px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .image-36 {
    position: static;
    display: block;
    margin: 100px auto 0;
    width: 200px;
  }

  .cta-banner {
    padding: 10px 20px;
    margin-bottom: 80px;
    border-radius: 24px;
  }

  .cta-title {
    font-size: 30px;
  }

  .cta-subtitle {
    font-size: 16px;
  }

  .cta-buttons {
    gap: 16px;
  }

  .cta-btn {
    min-width: 100%;
    font-size: 16px;
    padding: 16px 24px;
  }

  .form-note {
    flex-direction: column;
    gap: 8px;
  }

  .form-note img {
    width: 48px;
    order: -1;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 80px 16px 0px;
  }

  .form-section {
    padding: 0px 16px 0px;
  }

  .form-card {
    padding: 32px 20px;
  }

  .image-36 {
    width: 180px;
  }

  .cta-banner {
    padding: 32px 16px;
    margin-bottom: 60px;
  }

  .cta-title {
    font-size: 26px;
  }

  .cta-subtitle {
    font-size: 15px;
  }

  .form-input,
  .form-textarea {
    padding: 16px 16px;
  }

  .form-note img {
    width: 40px;
  }
}