/* =============================================
   Contact Us page — modern layout
   ============================================= */

body.page-contact {
  background: #ffffff;
}

body.page-contact .header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: transparent;
  box-shadow: none;
}

body.page-contact .header__nav {
  background: var(--header-nav-bg-solid);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.page-contact .header__links a.is-active {
  color: #ffffff;
  font-weight: 600;
  opacity: 1;
}

body.page-contact .header__enquire {
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
}

/* ---- Hero ---- */

.contact-hero {
  position: relative;
  padding: clamp(4rem, 8vw, 5.5rem) 0 clamp(3rem, 5vw, 4rem);
  background: #0a0a0a;
  color: #ffffff;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(255, 255, 255, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 45% 70% at 0% 100%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}

.contact-hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.contact-hero__title {
  margin: 0 0 1.125rem;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
}

.contact-hero__lead {
  margin: 0 auto;
  max-width: 54ch;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

/* ---- Main layout ---- */

.contact-main {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: #f4f4f5;
}

.contact-main__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
  max-width: 1280px;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-main__grid {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 2.5rem);
  }
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .contact-aside {
    position: sticky;
    top: 5.75rem;
  }
}

/* ---- Contact info card ---- */

.contact-info {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.contact-info__title,
.contact-form-panel__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111111;
}

.contact-info__intro,
.contact-form-panel__intro {
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #666666;
}

.contact-info__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-info__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.125rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-info__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact-info__item:last-child {
  padding-bottom: 0;
}

.contact-info__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #111111;
  color: #ffffff;
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
}

.contact-info__item h3 {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888888;
}

.contact-info__item p,
.contact-info__item a {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  color: #111111;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info__item a:hover {
  color: #666666;
}

/* ---- Consultation promo ---- */

.contact-consultation {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 20px;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.contact-consultation__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.contact-consultation__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.contact-consultation__text {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.contact-consultation__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8125rem 1.5rem;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.contact-consultation__btn:hover {
  background: #f0f0f0;
}

/* ---- Form panel ---- */

.contact-form-panel {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.06);
}

.contact-form-panel__header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-form-panel__intro {
  margin-bottom: 0;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .contact-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form__row .contact-form__field {
  margin-bottom: 0;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.125rem;
}

.contact-form__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #333333;
}

.contact-form__label span:not(.contact-form__optional) {
  color: #111111;
}

.contact-form__optional {
  font-weight: 500;
  color: #999999;
  text-transform: none;
  letter-spacing: 0;
}

.contact-form__input,
.contact-form__textarea,
.contact-form__select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f4f4f5;
  font: inherit;
  font-size: 0.9375rem;
  color: #111111;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: #999999;
}

.contact-form__input:hover,
.contact-form__textarea:hover,
.contact-form__select:hover {
  background: #efefef;
}

.contact-form__input:focus,
.contact-form__textarea:focus,
.contact-form__select:focus {
  outline: none;
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form__select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form__phone {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f4f4f5;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__phone:hover {
  background: #efefef;
}

.contact-form__phone:focus-within {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

.contact-form__country {
  flex: 0 0 6.75rem;
  width: 6.75rem;
  padding: 0.875rem 0.625rem;
  border: none;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111111;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.5rem;
}

.contact-form__country:focus {
  outline: none;
}

.contact-form__input--phone {
  flex: 1;
  min-width: 0;
  width: auto;
  border: none;
  border-radius: 0;
  background: transparent;
}

.contact-form__input--phone:focus {
  box-shadow: none;
  background: transparent;
}

.contact-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #666666;
}

.contact-form__checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: #111111;
  cursor: pointer;
}

.contact-form__checkbox a {
  color: #111111;
  font-weight: 500;
}

.contact-form__submit {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.contact-form__submit:hover:not(:disabled) {
  background: #2a2a2a;
}

.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.contact-form__error {
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: #fff5f5;
  border: 1px solid rgba(200, 0, 0, 0.12);
  color: #a00;
  font-size: 0.875rem;
}

.contact-form__success {
  padding: 1.75rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: #f4faf4;
  border: 1px solid rgba(0, 128, 0, 0.12);
}

.contact-form__success h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: #111111;
}

.contact-form__success p {
  margin: 0;
  color: #666666;
}

/* ---- Map ---- */

.contact-map {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 5.5rem);
  background: #ffffff;
}

.contact-map__header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-map__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111111;
}

.contact-map__text {
  margin: 0;
  font-size: 0.9375rem;
  color: #666666;
}

.contact-map__frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  aspect-ratio: 21 / 9;
  min-height: 280px;
}

.contact-map__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Reveal animations ---- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.06s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 840px) {
  .contact-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .contact-hero__inner {
    text-align: left;
  }

  .contact-map__header {
    text-align: left;
  }
}
