/* ==========================================================================
   CONTACT PAGE SPECIFIC STYLES
   ========================================================================== */

:root {
  --color-malachite: #22D66B;
  --color-azure:     #369BFF;
  --card-radius:     20px;
  --focus-glow:      0 0 0 4px rgba(34, 214, 107, 0.15);
  --bg-email:        rgba(54, 155, 255, 0.08);
  --bg-call:         rgba(247, 144, 9, 0.08);
  --bg-location:     rgba(19, 142, 68, 0.08);
  --text-email:      #013749;
  --text-call:       #876101;
  --text-location:   #004444;
}

/* ── CONTACT HERO ─────────────────────────────────────── */
.contact-hero {
  padding-top: 120px;
  padding-bottom: 56px;
  background: var(--white);
}

.contact-hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.contact-hero__header {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-hero__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 38px;
  color: var(--text-dark);
}

.contact-hero__desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--text-muted-dark);
}

/* ── CONTACT CARD (mobile: stacked) ─────────────────────── */
.contact-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card__image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #d9d9d9;
  flex-shrink: 0;
}

.contact-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.contact-card__form-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: linear-gradient(90deg, rgba(54, 155, 255, 0.02), rgba(54, 155, 255, 0.02)),
              var(--white);
  border-radius: 12px;
}

/* ── FORM HEADER ─────────────────────────────────────── */
.form-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-header__title {
  font-size: 26px;
  font-weight: 600;
  line-height: 32px;
  color: var(--text-dark);
}

.form-header__subtitle {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--text-muted-dark);
}

/* ── FORM FIELDS ─────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.form-row .form-group {
  flex: 1;
  min-width: 0;
}

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

.form-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: rgba(1, 0, 10, 0.4);
  text-transform: uppercase;
}

.form-label .required {
  color: #ef4444;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(1, 0, 10, 0.24);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--text-dark);
  padding: 12px;
  height: 44px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(1, 0, 10, 0.3);
}

.form-textarea {
  height: 104px;
  padding-top: 12px;
  padding-bottom: 68px;
  resize: none;
}

.form-input:hover,
.form-textarea:hover {
  border-color: rgba(1, 0, 10, 0.4);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-malachite);
  box-shadow: var(--focus-glow);
}

/* ── SUBMIT BUTTON ─────────────────────────────────────── */
.btn-submit {
  position: relative;
  width: 100%;
  height: 44px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(34, 214, 107, 0.6) 0%, rgba(54, 155, 255, 0.6) 100%);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.btn-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(1px);
}

.btn-submit--loading {
  cursor: not-allowed;
  opacity: 0.75;
  pointer-events: none;
  color: transparent;
}

.btn-submit--loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.form-input:disabled,
.form-textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(1, 0, 10, 0.03);
}

.contact-form__disclaimer {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: rgba(1, 0, 10, 0.4);
  text-align: center;
  margin-top: 16px;
}

/* ── TOAST ─────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  padding: 14px 24px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  max-width: calc(100vw - 48px);
  text-align: center;
  white-space: nowrap;
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--success {
  background: linear-gradient(90deg, #22D66B, #369BFF);
}

.toast--error {
  background: #ef4444;
}

/* ── CONTACT INFO SECTION ─────────────────────────────── */
.contact-info-section {
  background: var(--bg-light-gray);
  padding: 48px 0;
}

.contact-info-section__heading {
  text-align: left;
  width: 100%;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-section__title {
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  color: var(--text-dark);
}

.contact-info-section__desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--text-muted-dark);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}

/* ── INFO CARDS ─────────────────────────────────────── */
.info-card {
  border-radius: var(--card-radius);
  padding: 24px;
  height: 472px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(1, 0, 10, 0.06);
}

.info-card--email    { background: var(--bg-email); }
.info-card--call     { background: var(--bg-call); }
.info-card--location { background: var(--bg-location); }

.info-card__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.info-card__title {
  font-size: 26px;
  font-weight: 600;
  line-height: 32px;
  color: var(--text-dark);
}

.info-card__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text-muted-dark);
}

.info-card__detail {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  transition: opacity 0.2s ease;
  position: relative;
  z-index: 2;
}

.info-card__detail:hover { opacity: 0.8; }

.info-card__detail--email    { color: var(--text-email); }
.info-card__detail--call     { color: var(--text-call); }
.info-card__detail--location { color: var(--text-location); font-style: normal; }

/* Background mesh — large decorative grid behind card content */
.info-card__bg-vector {
  position: absolute;
  left: -89px;
  top: 125px;
  width: 600px;
  height: 393px;
  max-width: none;
  pointer-events: none;
  z-index: 0;
}

.info-card__bg-vector--centered {
  left: 50%;
  transform: translateX(-50%);
}

/* Icon vector — centered horizontally in the lower half of each card */
.info-card__vector-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 276px;
  width: 90px;
  height: 90px;
  pointer-events: none;
  transition: transform 0.3s ease;
  z-index: 1;
}

.info-card:hover .info-card__vector-wrapper {
  transform: translateX(-50%) scale(1.08);
}

.info-card__vector {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   TABLET / iPAD AIR — 769px – 1023px
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1023px) {
  /* Cap the stacked image — without this it's ~740×740px at 820px */
  .contact-card__image-container {
    max-height: 420px;
    aspect-ratio: auto;
  }

  /* 2-col info grid makes better use of ~740px available width */
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Centre the section heading to match the 2-col grid */
  .contact-info-section__heading {
    text-align: center;
    align-items: center;
    max-width: none;
    margin-bottom: 48px;
    gap: 24px;
  }

  .contact-info-section__title {
    font-size: 36px;
    line-height: 44px;
  }

  .contact-info-section__desc {
    font-size: 18px;
    max-width: 600px;
  }
}

/* ==========================================================================
   DESKTOP — min-width: 1024px
   ========================================================================== */
@media (min-width: 1024px) {

  /* ── Contact Hero ─────────────────── */
  .contact-hero {
    padding-top: 176px;
    padding-bottom: 80px;
  }

  .contact-hero__container {
    gap: 52px;
  }

  .contact-hero__header {
    max-width: 1096px;
    gap: 32px;
  }

  .contact-hero__title {
    font-size: 64px;
    line-height: 72px;
  }

  .contact-hero__desc {
    font-size: 20px;
    line-height: 32px;
    max-width: 959px;
    margin: 0 auto;
  }

  /* ── Contact Card ─────────────────── */
  .contact-card {
    max-width: 1180px;
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
  }

  .contact-card__image-container {
    width: 656px;
    height: auto;
    min-height: 656px;
    aspect-ratio: auto;
    flex-shrink: 0;
    border-radius: 12px;
  }

  .contact-card__form-panel {
    flex: 1;
    min-width: 0;
    align-self: stretch;
    padding: 32px;
    gap: 48px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-radius: 12px;
  }

  .contact-card__form-panel > * {
    width: 100%;
  }

  /* ── Form Header ─────────────────── */
  .form-header__title {
    font-size: 28px;
    line-height: 36px;
  }

  .form-header__subtitle {
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
  }

  /* ── Form Fields ─────────────────── */
  .contact-form {
    gap: 32px;
  }

  .form-row {
    gap: 24px;
  }

  .form-label {
    font-size: 16px;
    line-height: 24px;
  }

  .form-input,
  .form-textarea {
    height: 56px;
    padding: 20px 24px;
    border-radius: 12px;
    font-size: 20px;
    line-height: 28px;
  }

  .form-textarea {
    height: 137px;
    padding-top: 20px;
    padding-bottom: 89px;
  }

  .btn-submit {
    height: 56px;
    border-radius: 12px;
  }

  .contact-form__disclaimer {
    font-size: 14px;
    line-height: 20px;
    margin-top: 24px;
  }

  /* ── Contact Info Section ────────── */
  .contact-info-section {
    padding: 80px 0;
  }

  .contact-info-section__heading {
    text-align: center;
    align-items: center;
    max-width: 1111px;
    margin: 0 auto 52px;
    gap: 24px;
  }

  .contact-info-section__title {
    font-size: 48px;
    line-height: 56px;
  }

  .contact-info-section__desc {
    font-size: 20px;
    line-height: 32px;
    max-width: 828px;
  }

  .info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .info-card {
    padding: 32px;
    gap: 28px;
  }

  .info-card__content {
    gap: 24px;
  }

  .info-card__title {
    font-size: 32px;
    line-height: 40px;
  }

  .info-card__desc {
    font-size: 18px;
    line-height: 28px;
  }

  .info-card__detail {
    font-size: 20px;
    line-height: 28px;
  }

  .info-card__vector-wrapper {
    top: 251px;
    width: 140px;
    height: 140px;
  }
}

/* ==========================================================================
   MOBILE — max-width: 768px
   ========================================================================== */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .contact-card__form-panel {
    padding: 16px;
  }

  .info-card {
    height: auto;
    min-height: 380px;
    padding-bottom: 110px; /* Leave space for absolute positioned vector */
  }

  .info-card__vector-wrapper {
    top: auto;
    bottom: 16px;
    width: 80px;
    height: 80px;
  }
}
