/* =============================================
   Mitgabrim — Contact Page Responsive Styles
   Font: Heebo | Direction: RTL
   ============================================= */

:root {
  --color-form-bg: #eaf6f7;
  --color-form-border: #c4e4e7;
  --color-input-border: #bfe0e3;
  --color-card-border-alt: #d0e7ea;
}

.contact {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--color-white);
  overflow-x: hidden;
}

.contact .header__nav-link--active::after {
  width: 70px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.contact__hero {
  position: relative;
  width: 100%;
  padding: 160px 24px 140px;
  text-align: center;
  overflow: hidden;
  background: url('../assets/method/hero-bg-clean.png') no-repeat bottom center;
  background-size: cover;
}

.contact__tagline {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.contact__tagline-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

.contact__pencil {
  width: 24px;
  height: auto;
}

.contact__hero-title {
  position: relative;
  z-index: 2;
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.contact__hero-title-navy {
  color: var(--color-primary);
}

.contact__hero-title-teal {
  color: var(--color-teal);
}

.contact__hero-subtitle {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text);
}

/* =============================================
   MAIN FORM + TEACHER PROFILE SECTION
   ============================================= */
.contact__main-section {
  position: relative;
  z-index: 2;
  max-width: var(--max-content-width);
  margin: 50px auto 80px;
  padding: 0 24px;
}

.contact__form-grid {
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.contact__teacher-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact__teacher-photo {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 20px;
  margin-bottom: 16px;
}

.contact__teacher-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.contact__teacher-desc {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
  max-width: 380px;
}

.contact__form-panel {
  display: flex;
  flex-direction: column;
}

.contact__form-title {
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 12px;
}

.contact__form-intro {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 24px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__field-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.contact__input,
.contact__textarea,
.contact__select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--color-input-border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-form-bg);
  outline: none;
  text-align: right;
  direction: rtl;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact__input[type="tel"] {
  direction: rtl;
  text-align: right;
}

.contact__textarea {
  height: 96px;
  padding: 12px 16px;
  resize: vertical;
}

.contact__input:focus,
.contact__textarea:focus,
.contact__select:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(0, 143, 155, 0.15);
}

.contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  background: var(--color-teal);
  border: none;
  border-radius: 100px;
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 143, 155, 0.25);
}

.contact__privacy {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-top: 12px;
}

/* =============================================
   REACH & MAP SECTION (100% FULL WIDTH)
   ============================================= */
.contact__info-cards-container {
  position: relative;
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto -65px;
  padding: 0 24px;
  z-index: 10;
}

.contact__info-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}

.contact__info-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 38px 20px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  text-decoration: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.contact__info-icon-wrap {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 143, 155, 0.3);
  border: 3px solid #ffffff;
}

.contact__info-icon-wrap img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.contact__info-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.contact__info-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.contact__info-sub {
  font-size: 14px;
  font-weight: 400;
  color: #666666;
  line-height: 1.4;
}

.contact__map-section {
  position: relative;
  width: 100%;
  padding: 140px 24px 170px;
  text-align: center;
  overflow: hidden;
  margin-bottom: 40px;
}

.contact__map-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 0;
}

.contact__cloud--map-1 {
  position: absolute;
  top: 50px;
  right: 6%;
  width: 140px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
  filter: brightness(0) invert(1);
}

.contact__cloud--map-2 {
  position: absolute;
  top: 80px;
  left: 6%;
  width: 160px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
  filter: brightness(0) invert(1);
}

.contact__map-inner {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact__map-wrap {
  display: flex;
  justify-content: center;
}

.contact__map-image {
  width: 100%;
  max-width: 540px;
  height: auto;
  border-radius: 20px;
  border: 4px solid #ffffff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.contact__map-content {
  text-align: right;
}

.contact__map-title {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 26px;
}

.contact__map-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0;
}

.contact__map-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
}

.contact__map-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* =============================================
   FAQ SECTION
   ============================================= */
.contact__faq-section {
  position: relative;
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto 90px;
  padding: 0 24px;
  text-align: center;
}

.contact__divider {
  width: 100%;
  max-width: 356px;
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
}

.contact__faq-title {
  font-size: clamp(28px, 3.8vw, 50px);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 50px;
}

.contact__faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact__faq {
  width: 100%;
}

.contact__faq-box {
  background: var(--color-white);
  border-radius: 20px;
  padding: 36px 18px 26px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact__faq-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.contact__faq-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact__faq-icon-wrap img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.contact__faq--yellow .contact__faq-box {
  border: 1.5px solid #e5a93c;
}

.contact__faq--yellow .contact__faq-icon-wrap {
  background: #e5a93c;
}

.contact__faq--blue .contact__faq-box {
  border: 1.5px solid #0077cc;
}

.contact__faq--blue .contact__faq-icon-wrap {
  background: #0077cc;
}

.contact__faq--coral .contact__faq-box {
  border: 1.5px solid #e25b38;
}

.contact__faq--coral .contact__faq-icon-wrap {
  background: #e25b38;
}

.contact__faq--purple .contact__faq-box {
  border: 1.5px solid #9444dc;
}

.contact__faq--purple .contact__faq-icon-wrap {
  background: #9444dc;
}

.contact__faq-question {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.contact__faq-answer {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text);
}

/* =============================================
   QUOTE & FOOTER SECTION
   ============================================= */
.contact__cta {
  position: relative;
  width: 100%;
  padding: 120px 24px 45px;
  text-align: center;
  overflow: hidden;
}

.contact__cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  z-index: 0;
}

.contact__quote-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact__quote-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.contact__quote {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.contact__signature {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.contact__signature-line {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
}

.contact__footer-cols {
  position: relative;
  z-index: 2;
  max-width: var(--max-content-width);
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(0, 143, 155, 0.25);
  padding-top: 28px;
  padding-bottom: 12px;
}

.contact__footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 0 16px;
}

.contact__footer-col:not(:last-child) {
  border-left: 1px solid rgba(0, 143, 155, 0.25);
}

.contact__footer-col img {
  width: 44px;
  height: 44px;
}

.contact__footer-col p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-primary);
}

.contact__decor--paper-plane {
  position: absolute;
  bottom: 0;
  left: 20px;
  width: clamp(110px, 13vw, 175px);
  height: auto;
  z-index: 5;
  pointer-events: none;
}

.contact__decor--rocket {
  position: absolute;
  bottom: 0;
  right: 0;
  width: clamp(190px, 20vw, 360px);
  height: auto;
  z-index: 5;
  pointer-events: none;
  opacity: 0.95;
}

.contact__bottom-bar {
  position: relative;
  width: 100%;
  height: 20px;
  background: var(--color-secondary);
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */
@media (max-width: 1024px) {
  .contact__form-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact__map-section {
    padding: 100px 20px 120px;
  }

  .contact__map-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact__map-content {
    text-align: center;
  }

  .contact__map-list {
    align-items: center;
  }

  .contact__info-cards-container {
    margin: 0 auto -30px;
  }

  .contact__info-cards-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
    gap: 40px;
  }

  .contact__faq-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .contact__footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }

  .contact__footer-col:nth-child(odd) {
    border-left: 1px solid rgba(0, 143, 155, 0.25);
  }

  .contact__footer-col:nth-child(even) {
    border-left: none;
  }
}

@media (max-width: 768px) {
  .contact__hero {
    background: url('../assets/inner-bg-mobile.png') no-repeat center bottom;
    padding: 130px 16px 60px;
    background-size: cover;
  }
}

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

  .contact__faq-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

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

  .contact__footer-col {
    border-left: none !important;
    border-bottom: 1px solid rgba(0, 143, 155, 0.15);
    padding-bottom: 16px;
  }

  .contact__footer-col:last-child {
    border-bottom: none;
  }
}