/* Elle Rêve Estetica: styles for contatti.html only. Shared rules live in ../style.css. */

/* ---------- Hero: the moon inside an arch, like the arched illustrations ---------- */

.contact-hero .page-hero__illus.contact-hero__art {
  position: relative;
  display: grid;
  place-items: center;
  width: min(60%, 10.5rem);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: var(--arch-radius);
  color: var(--burgundy);
}

.contact-hero__art::before {
  content: "";
  position: absolute;
  inset: 0.8rem 0.8rem 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--arch-radius);
}

.contact-hero .contact-hero__art img {
  position: relative;
  width: 62%;
  height: auto;
}

.contact-hero__star {
  position: absolute;
  font-size: 0.9rem;
}

.contact-hero__star--a {
  top: 24%;
  left: -1.6rem;
}

.contact-hero__star--b {
  right: -1.3rem;
  bottom: 18%;
  font-size: 0.65rem;
}

@media (min-width: 60em) {
  .contact-hero .page-hero__illus.contact-hero__art {
    width: min(100%, 15rem);
    justify-self: center;
  }

  .contact-hero__star--a {
    left: -2.25rem;
    font-size: 1.15rem;
  }

  .contact-hero__star--b {
    right: -1.75rem;
    font-size: 0.8rem;
  }
}

/* ---------- Information ---------- */

.contact-info .section-head {
  margin-bottom: var(--space-4);
}

.contact-info__grid {
  gap: var(--space-3) var(--space-5);
}

@media (min-width: 40em) {
  .contact-info__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-4);
  }
}

@media (min-width: 64em) {
  .contact-info__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contact-info__grid > div {
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-strong);
}

.contact-value {
  font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.3rem);
  line-height: 1.45;
}

.contact-value a {
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.25em;
}

.contact-value a:hover {
  text-decoration-color: currentColor;
}

.contact-info__more {
  margin-top: var(--space-2);
  color: var(--burgundy);
}

.contact-hours {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

.contact-hours li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.15rem var(--space-3);
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.contact-hours li:first-child {
  padding-top: 0;
}

.contact-hours li:last-child {
  border-bottom: 0;
}

.contact-hours li span:last-child {
  font-weight: 450;
}

.contact-info__note {
  margin: var(--space-4) 0 0;
}

/* ---------- Booking: three ways and the request form ---------- */

.contact-booking {
  color: var(--ink);
}

.contact-booking__grid {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}

@media (min-width: 60em) {
  .contact-booking__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--space-5) clamp(3rem, 6vw, 6rem);
  }

  .contact-booking__intro {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }
}

.contact-booking__intro .lead {
  max-width: 30rem;
  margin: 0;
}

.contact-ways {
  display: grid;
  gap: 0;
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.contact-way {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--space-2);
  padding-block: var(--space-3);
  border-top: 1px solid var(--line-strong);
}

.contact-way:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.contact-way__num {
  padding-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--burgundy);
}

.contact-way .small-title {
  margin-bottom: 0.35rem;
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
}

.contact-way p {
  max-width: 26rem;
  margin: 0 0 0.9rem;
  font-size: var(--fs-small);
  line-height: 1.55;
}

.contact-way .link-arrow {
  color: var(--burgundy);
}

/* The form sits on an ivory card with a fine inner frame, like an invitation */
.contact-form-card {
  position: relative;
  padding: clamp(1.75rem, 1.2rem + 2.5vw, 3.25rem);
  background: var(--ivory);
  box-shadow: 0 30px 60px -40px rgba(97, 19, 39, 0.45);
}

.contact-form-card::before {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border: 1px solid var(--line);
  pointer-events: none;
}

.contact-form-card > * {
  position: relative;
}

.contact-form-card .rule {
  margin-block: var(--space-2) var(--space-3);
  color: var(--burgundy);
}

.contact-form-card__intro {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-small);
  color: var(--ink-muted);
}

.contact-form {
  gap: 1.35rem;
}

.contact-form__row {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 40em) {
  .contact-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea {
  border-color: rgba(97, 19, 39, 0.32);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-form .field input:hover,
.contact-form .field select:hover,
.contact-form .field textarea:hover {
  border-color: var(--burgundy);
}

.contact-form ::placeholder {
  color: #85666d;
  opacity: 1;
}

.contact-form select {
  padding-right: 2.75rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 1.5 8 8.5 15 1.5' fill='none' stroke='%23611327' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.8rem;
}

.contact-form .field--consent {
  display: flex;
  gap: 0.75rem;
}

.contact-form .field--consent input {
  width: 1.15rem;
  min-height: 0;
  padding: 0;
}

.contact-form .field--consent label {
  font-size: var(--fs-small);
  font-weight: 320;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
  color: var(--ink);
}

.contact-form .field--consent a {
  color: var(--burgundy);
}

.contact-form__submit {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  margin-top: 0.4rem;
}

.contact-form__submit .btn {
  min-width: 14rem;
}

.contact-form__submit .demo-note {
  margin: 0;
}

.contact-form .form__result {
  margin: 0;
  color: var(--burgundy);
}

/* ---------- How to get here ---------- */

.contact-find .section-title {
  margin-bottom: 0;
}

.contact-find__text .lead {
  margin: 0 0 var(--space-3);
}

.contact-find__text p:not(.lead):not(.eyebrow):not(.demo-note) {
  max-width: 34rem;
}

.contact-find__note {
  margin: var(--space-3) 0 0;
}

.contact-find__art {
  position: relative;
  justify-self: center;
  width: min(82%, 19rem);
  aspect-ratio: 4 / 5;
  background: var(--blush);
  border-radius: var(--arch-radius);
  overflow: visible;
}

.contact-find__art::before {
  content: "";
  position: absolute;
  inset: -0.75rem -0.75rem 0;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: var(--arch-radius);
  pointer-events: none;
}

.contact-find__art img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: auto;
  height: 90%;
  max-width: none;
  transform: translateX(-50%);
}

.contact-find__star {
  position: absolute;
  color: var(--burgundy);
}

.contact-find__star--a {
  top: 30%;
  right: -2.25rem;
  font-size: 1.1rem;
}

.contact-find__star--b {
  bottom: 26%;
  left: -2rem;
  font-size: 0.75rem;
}

@media (min-width: 60em) {
  .contact-find__art {
    justify-self: end;
    margin-right: var(--space-3);
  }
}
