/* ================= CONTACT SECTION ================= */

.contact {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* --- MAIN GRID WRAPPER (Unified with About) --- */
.contact__content {
  width: 100%;
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 40px;
  position: relative;
  align-items: start;
}

/* Subtitle: Col 1, Row 1 */
.contact__subtitle {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  justify-content: flex-start;
  align-self: baseline;
  margin-bottom: 24px;
}

/* Title: Col 2-3, Row 1 */
.contact__title {
  grid-column: 2 / -1;
  grid-row: 1;
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 1.2;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --- INFO COLUMN --- */
.contact__info {
  height: 100%;
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  background-image: url('../img/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
  padding: 40px;
  border-radius: 5px;
  color: #fff;
  overflow: hidden;
}

.contact__info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.contact__address {
  height: 100%;
  align-content: center;
  font-style: normal;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact__item-title {
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.contact__item-text {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.4;
  color: #fff;
}

.contact__link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact__link:hover {
  color: var(--brand-peach);
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact__map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--brand-peach);
  text-decoration: none;
  margin-top: 5px;
  transition: opacity 0.3s ease;
}

.contact__map-link:hover {
  opacity: 0.8;
}

.contact__socials {
  display: flex;
  gap: 15px;
}

.contact__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
}

.contact__social-link:hover {
  background-color: var(--brand-peach);
  border-color: var(--brand-peach);
  color: #fff;
}

/* --- FORM COLUMN --- */
.contact__form-wrapper {
  grid-column: 3;
  grid-row: 2;
  background: #fff;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
}

/* --- FORM STYLES --- */

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

.form__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.form__label {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--color-text-muted);
}

.form__input {
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--color-text);
  background: transparent;
  transition: border-color 0.3s ease;
  border-radius: 0;
}

.form__input:focus {
  outline: none;
  border-bottom-color: var(--brand-peach);
}

.form__input.error {
  border-bottom-color: #e74c3c;
}

.form__error {
  font-family: var(--font-ui);
  font-size: 12px;
  color: #e74c3c;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 0;
}

.form__input.error+.form__error,
.custom-select.error~.form__error {
  opacity: 1;
  max-height: 20px;
  margin-top: 4px;
}

.form__disclaimer {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 5px;
}

.form__success {
  display: none;
  margin-top: 20px;
  padding: 15px;
  background-color: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
  font-family: var(--font-ui);
  font-size: 14px;
  border-radius: 4px;
}

/* --- CUSTOM SELECT --- */

.custom-select {
  position: relative;
  user-select: none;
  width: 100%;
}

.custom-select__trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.custom-select.open .custom-select__trigger {
  border-bottom-color: var(--brand-peach);
}

.custom-select.error .custom-select__trigger {
  border-bottom-color: #e74c3c;
}

.arrow {
  position: relative;
  height: 10px;
  width: 10px;
}

.arrow::before,
.arrow::after {
  content: "";
  position: absolute;
  bottom: 0px;
  width: 0.15rem;
  height: 100%;
  transition: all 0.3s;
  background-color: var(--brand-peach);
}

.arrow::before {
  left: -3px;
  transform: rotate(-45deg);
}

.arrow::after {
  left: 3px;
  transform: rotate(45deg);
}

.custom-select.open .arrow::before {
  left: -3px;
  transform: rotate(45deg);
}

.custom-select.open .arrow::after {
  left: 3px;
  transform: rotate(-45deg);
}

.custom-select__options {
  position: absolute;
  display: block;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid var(--color-border);
  border-top: 0;
  background: #fff;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10;
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.custom-select.open .custom-select__options {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

.custom-select__option {
  position: relative;
  display: block;
  padding: 12px 15px;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-select__option:hover {
  background-color: var(--brand-peach);
  color: #fff;
}

.custom-select__option.selected {
  background-color: rgba(198, 156, 132, 0.2);
  color: var(--color-text);
}

/* Responsive adjustments */
@media (max-width: 1280px) {
  .contact {
    padding: 60px 0;
  }

  .contact__content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .contact__subtitle {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .contact__title {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 38px;
  }

  .contact__info {
    grid-column: 1;
    grid-row: 3;
  }

  .contact__form-wrapper {
    grid-column: 2;
    grid-row: 3;
  }
}

@media (max-width: 992px) {
  .contact__content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact__subtitle {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .contact__title {
    grid-column: 1;
    grid-row: 2;
    font-size: 34px;
  }

  .contact__info {
    grid-column: 1;
    grid-row: 4;
  }

  .contact__form-wrapper {
    grid-column: 1;
    grid-row: 5;
  }

  .contact__item-text {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 60px 0;
  }

  .contact__title {
    font-size: 28px;
  }

  .contact__form-wrapper {
    padding: 20px;
  }
}