/*==========================================
                CONTACT PAGE
============================================*/
.contact-page {
  position: relative;
  padding: 100px 0;
  background: url("../images/contact/cta_pattern.png") no-repeat center top;
  background-size: cover;
}

.contact-page .contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 992px) {
  .contact-page .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-page .contact-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  color: #111;
  margin-bottom: 0.5rem;
}

.contact-page .contact-title {
  font-family: "Sora", sans-serif;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111;
  margin-bottom: 1rem;
}

.contact-page .contact-intro {
  font-size: 1rem;
  line-height: 1.6;
  color: #222;
  margin-bottom: 2rem;
}

.contact-page .contact-list {
  max-width: 520px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-page .contact-list__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 14px;
}

.contact-page .contact-list__item:not(:last-child) {
  border-bottom: 1px solid #ddd;
}

.contact-page .contact-list__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1efff;
  color: #6E57E2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-page .contact-list__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
}

.contact-page .contact-list__value {
  font-size: 0.95rem;
  color: #222;
  text-decoration: none;
}

.contact-page a.contact-list__value:hover {
  color: #6E57E2;
}

/* Form card */
.contact-page .contact-form-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-page .contact-form-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.25rem;
}

.contact-page .contact-form-card__subtitle {
  font-size: 0.8rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.contact-page .contact-field {
  margin-bottom: 1rem;
}

.contact-page .contact-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 0.4rem;
}

.contact-page .contact-input {
  display: block;
  width: 100%;
  border: 1px solid #d9d9e3;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #222;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-page .contact-input::placeholder {
  color: #9a9aa5;
}

.contact-page .contact-input:focus {
  border-color: #6E57E2;
  box-shadow: 0 0 0 3px rgba(110, 87, 226, 0.15);
}

.contact-page textarea.contact-input {
  resize: vertical;
  min-height: 90px;
}

/* Validation (shown only after a submit attempt) */
.contact-page .contact-feedback {
  display: none;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #D51019;
}

.contact-page .was-validated .contact-input:invalid {
  border-color: #D51019;
}

.contact-page .was-validated .contact-input:invalid:focus {
  box-shadow: 0 0 0 3px rgba(213, 16, 25, 0.15);
}

.contact-page .was-validated .contact-input:invalid ~ .contact-feedback {
  display: block;
}

/* The phone input is wrapped in .iti by intl-tel-input, so its message isn't a direct sibling */
.contact-page .was-validated .iti:has(.contact-input:invalid) ~ .contact-feedback {
  display: block;
}

/* Honeypot: display:none (not just off-screen) so browsers don't autofill it */
.contact-page .contact-hp {
  display: none !important;
}

.contact-page .contact-submit {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px;
  background: #6E57E2;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-page .contact-submit:hover {
  background: #5a46c0;
}

.contact-page .contact-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-page .contact-alert {
  font-size: 0.85rem;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 1rem;
}

.contact-page .contact-alert.is-hidden {
  display: none;
}

.contact-page .contact-alert--success {
  background: #ebf9f1;
  color: #1c7a4a;
}

.contact-page .contact-alert--error {
  background: #fdecec;
  color: #b42318;
}

@media (max-width: 991px) {
  .contact-page {
    padding: 64px 0 80px;
  }
}

@media (max-width: 576px) {
  .contact-page {
    padding: 48px 0 64px;
  }

  .contact-page .contact-title {
    font-size: 2.25rem;
  }

  .contact-page .contact-form-card {
    padding: 22px;
  }
}

/* Phone field (intl-tel-input): flag + arrow in their own box on the left,
   dial code shown inside the number box. contact.js sizes the input's left padding. */
.contact-page .iti {
  --flag-box: 72px;
  --flag-gap: 10px;
  display: block;
  /* The library forces margin:0 on the input, so make room for the flag box here */
  padding-left: calc(var(--flag-box) + var(--flag-gap));
}

.contact-page .iti .contact-input {
  width: 100%;
}

.contact-page .iti__country-container {
  padding: 0;
}

.contact-page .iti__selected-country {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
  background: none;
  border-radius: 0;
}

.contact-page .iti__selected-country-primary {
  box-sizing: border-box;
  width: var(--flag-box);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 1px solid #d9d9e3;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-page .iti__selected-country:hover .iti__selected-country-primary,
.contact-page .iti__selected-country[aria-expanded="true"] .iti__selected-country-primary {
  border-color: #6E57E2;
  background: #fff;
}

.contact-page .iti__selected-country:focus-visible {
  outline: none;
}

.contact-page .iti__selected-country:focus-visible .iti__selected-country-primary {
  border-color: #6E57E2;
  box-shadow: 0 0 0 3px rgba(110, 87, 226, 0.15);
}

.contact-page .iti__arrow {
  margin-left: 0;
}

/* Sits over the number box's left padding: flag box + gap + the box's 14px text inset */
.contact-page .iti__selected-dial-code {
  margin-left: calc(var(--flag-gap) + 14px);
  font-size: 0.9rem;
  color: #222;
}

:is(.contact-page, .iti--container) .iti__dropdown-content {
  border-radius: 10px;
  border: 1px solid #d9d9e3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Country picker dropdown: the theme's CSS reset strips the search input's styling.
   On phones the list opens as a fullscreen popup appended to <body> (.iti--container),
   outside .contact-page, so these rules target both. */
:is(.contact-page, .iti--container) .iti__dropdown-content {
  overflow: hidden;
  font-size: 0.9rem;
}

:is(.contact-page, .iti--container) .iti__search-input {
  display: block;
  width: calc(100% - 16px);
  margin: 8px;
  padding: 9px 12px 9px 34px;
  border: 1px solid #d9d9e3;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #222;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239a9aa5' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

:is(.contact-page, .iti--container) .iti__search-input::placeholder {
  color: #9a9aa5;
}

:is(.contact-page, .iti--container) .iti__search-input:focus {
  border-color: #6E57E2;
  box-shadow: 0 0 0 3px rgba(110, 87, 226, 0.15);
}

:is(.contact-page, .iti--container) .iti__country-list {
  border-top: 1px solid #eeeef3;
}

:is(.contact-page, .iti--container) .iti__country {
  padding: 9px 12px;
}

:is(.contact-page, .iti--container) .iti__country.iti__highlight {
  background-color: #f1efff;
}

:is(.contact-page, .iti--container) .iti__dial-code {
  color: #6b6b78;
}
