/* ============================================================
   contact.css — Contact Us page specific styles
   ============================================================ */

/* ── CONTACT HERO ────────────────────────────────────────────── */
.contact-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-hero__bg {
  position: absolute;
  inset: 0;
}

.contact-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(49, 94, 109, 0.78);
}

.contact-hero__deco {
  position: absolute;
  right: 70px;
  top: -10px;
  width: 420px;
  height: 330px;
  opacity: 0.20;
  pointer-events: none;
  z-index: 1;
}

.contact-hero__deco img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 0;
}

.contact-hero__title {
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.1;
}

.contact-hero__subtitle {
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  margin: 28px 0 0;
  font-family: var(--font-display);
  line-height: 1.5;
}

/* ── CONTACT SECTION ─────────────────────────────────────────── */
.contact-section {
  /* first 108px is transparent so the hero shows through the overlap */
  background: linear-gradient(to bottom, transparent 108px, #eef8fa 108px);
  padding: 0 0 70px;
}

.contact-container {
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Main card — floats up over the hero */
.contact-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #325a69;
  box-shadow: 0 12px 0 #325a69;
  margin-top: -108px;
  position: relative;
  z-index: 5;
  padding: 32px;
  display: flex;
  gap: 40px;
  align-items: stretch;
}

/* ── BRANCHES PANEL ──────────────────────────────────────────── */
.branches-panel {
  flex-shrink: 0;
  width: 398px;
  background: #f2e9e2;
  border-radius: 20px;
  padding: 56px 28px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.branches-panel__title {
  font-size: 40px;
  font-weight: 800;
  color: #8a5144;
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.1;
}

.branch-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.branch-group__country {
  font-size: 32px;
  font-weight: 700;
  color: #8a5144;
  margin: 0 0 4px;
  font-family: var(--font-display);
  line-height: 1.2;
}

.branch-item {
  font-size: 18px;
  font-weight: 500;
  color: #8a5144;
  font-family: var(--font-display);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.branch-item a {
  color: #8a5144;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.branch-item a:hover { opacity: 0.75; }

.branch-item__arrow {
  color: #8a5144;
  flex-shrink: 0;
  display: inline-flex;
}

/* ── CONTACT FORM ────────────────────────────────────────────── */
.contact-form-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-row {
  display: flex;
  gap: 42px;
  align-items: flex-start;
}

.form-field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field--full {
  flex: none;
  width: 100%;
}

.form-field__label {
  font-size: 15px;
  font-weight: 700;
  color: #222222;
  font-family: var(--font-display);
  line-height: 1.2;
}

/* Input wrapper — positions icon inside field */
.form-field__input-wrap {
  position: relative;
}

.form-field__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #b7bac0;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.form-field__input {
  width: 100%;
  height: 56px;
  border: 1.5px solid #d1d2d6;
  border-radius: 14px;
  background: #ffffff;
  font-size: 15px;
  font-weight: 500;
  color: #222222;
  font-family: var(--font-display);
  padding: 0 20px 0 52px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-field__input::placeholder { color: #b7bac0; }

.form-field__input:focus { border-color: #315e6d; }

.form-field__textarea {
  width: 100%;
  height: 168px;
  border: 1.5px solid #d1d2d6;
  border-radius: 14px;
  background: #ffffff;
  font-size: 15px;
  font-weight: 500;
  color: #222222;
  font-family: var(--font-display);
  padding: 16px 20px 16px 52px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  box-sizing: border-box;
}

.form-field__textarea::placeholder { color: #b7bac0; }

.form-field__textarea:focus { border-color: #315e6d; }

/* Textarea icon sits at top rather than vertical center */
.form-field__input-wrap--textarea .form-field__icon {
  top: 18px;
  transform: none;
}

/* ── PHONE FIELD (country code + number) ────────────────────── */
.phone-input-wrap {
  display: flex;
  height: 56px;
  border: 1.5px solid #d1d2d6;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s;
}

.phone-input-wrap:focus-within { border-color: #315e6d; }

.phone-country {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px 0 16px;
  border-right: 1.5px solid #d1d2d6;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #222222;
  font-family: var(--font-display);
  white-space: nowrap;
  flex-shrink: 0;
  background: none;
  border-top: none;
  border-bottom: none;
  border-left: none;
  outline: none;
}

.phone-country svg { color: #b7bac0; }

.phone-number {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: #222222;
  font-family: var(--font-display);
  padding: 0 16px;
  outline: none;
}

.phone-number::placeholder { color: #b7bac0; }

/* ── SELECT FIELD ────────────────────────────────────────────── */
.form-field__select {
  width: 100%;
  height: 56px;
  border: 1.5px solid #d1d2d6;
  border-radius: 14px;
  background: #ffffff;
  font-size: 15px;
  font-weight: 500;
  color: #b7bac0;
  font-family: var(--font-display);
  padding: 0 44px 0 20px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23B7BAC0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-field__select:focus { border-color: #315e6d; }

.form-field__select.has-value { color: #222222; }

/* ── SUBMIT BUTTON ───────────────────────────────────────────── */
.contact-form__submit-row {
  display: flex;
  justify-content: flex-end;
}

.btn-contact-submit {
  width: 344px;
  height: 56px;
  background: #dec7b6;
  border: none;
  border-radius: 14px;
  color: #2b1f1b;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-display);
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  letter-spacing: 0.3px;
}

.btn-contact-submit:hover { background: #d0b5a0; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .contact-hero__deco { display: none; }
  .contact-card { gap: 28px; }
  .branches-panel { width: 320px; }
}

@media (max-width: 991px) {
  .contact-section {
    background: linear-gradient(to bottom, transparent 70px, #eef8fa 70px);
  }
  .contact-card {
    flex-direction: column;
    margin-top: -70px;
  }
  .branches-panel { width: 100%; }
  .form-row { gap: 20px; }
}

@media (max-width: 767px) {
  .contact-hero { height: 280px; }
  .contact-hero__title { font-size: 32px; }
  .contact-hero__subtitle { font-size: 16px; margin-top: 16px; }

  .contact-section {
    background: linear-gradient(to bottom, transparent 60px, #eef8fa 60px);
  }
  .contact-card {
    padding: 20px;
    margin-top: -60px;
    border-radius: 16px;
  }

  .branches-panel {
    padding: 32px 20px;
    border-radius: 16px;
  }

  .branches-panel__title { font-size: 28px; }
  .branch-group__country { font-size: 22px; }
  .branch-item { font-size: 15px; }

  .form-row { flex-direction: column; gap: 20px; }

  .btn-contact-submit {
    width: 100%;
    font-size: 16px;
  }
}
