/* ============================================================
   CONTACT PAGE  (scoped .villas-home .v-cnt-*)
   Shared by the standalone page-contact-us.php template and the
   "Контакты" Elementor widget (cs2-cnt). Builds on villas-home.css.
   ============================================================ */
.villas-home .v-cnt { padding: 160px 0 100px; }

/* title + lead row */
.villas-home .v-cnt__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 56px;
}
.villas-home .v-cnt__title {
  font-family: var(--v-serif);
  font-weight: 600;
  font-size: clamp(48px, 6.2vw, 96px);
  line-height: .98;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--v-text);
}
.villas-home .v-cnt__lead {
  max-width: 380px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--v-dim-2);
  text-align: right;
  padding-bottom: 8px;
}

/* form + image */
.villas-home .v-cnt__main {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 88px;
}

/* form card */
.villas-home .v-cnt-form {
  position: relative;
  background: var(--v-surface);
  border: 1px solid var(--v-line-2);
  border-radius: 24px;
  padding: 44px;
}
.villas-home .v-cnt-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}
.villas-home .v-cnt-field { display: flex; flex-direction: column; }
.villas-home .v-cnt-field--full { grid-column: 1 / -1; }
.villas-home .v-cnt-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--v-dim);
}
.villas-home .v-cnt-form .v-input { height: 52px; }
.villas-home .v-cnt-textarea {
  height: 120px;
  padding: 14px 18px;
  line-height: 1.5;
  resize: vertical;
}
/* date input — keep the native picker legible on dark */
.villas-home .v-cnt-form input[type="date"] { color-scheme: dark; }

/* custom select with caret */
.villas-home .v-cnt-select { position: relative; }
.villas-home .v-cnt-select select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
}
.villas-home .v-cnt-select select:invalid { color: rgba(255, 255, 255, .3); }
.villas-home .v-cnt-select__caret {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--v-gold);
  pointer-events: none;
}
.villas-home .v-cnt-form option { background: var(--v-surface-2); color: #fff; }

/* submit row */
.villas-home .v-cnt-form__foot {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.villas-home .v-cnt-form__submit { height: 64px; padding: 0 34px; font-size: 16px; flex-shrink: 0; }
.villas-home .v-cnt-form__arrow {
  flex-shrink: 0;
  margin-left: auto; /* push the arrow + policy note together to the right */
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--v-gold-line);
  color: var(--v-gold);
  display: grid;
  place-items: center;
  background: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.villas-home .v-cnt-form__arrow svg { width: 24px; height: 24px; }
.villas-home .v-cnt-form__arrow:hover { background: var(--v-grad); color: var(--v-dark); border-color: transparent; transform: translateY(-2px); }
.villas-home .v-cnt-form__note {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .4);
  max-width: 220px;
}
.villas-home .v-cnt-form__note a { color: rgba(255, 255, 255, .65); text-decoration: underline; }

/* success state */
.villas-home .v-cnt-success {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5; /* cover the fields (some are position:relative) + block clicks */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 44px;
  background: var(--v-surface);
  border-radius: 24px;
}
.villas-home .v-cnt-success.is-visible { display: flex; }
.villas-home .v-cnt-success__ic {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--v-grad);
  color: var(--v-dark);
  display: grid;
  place-items: center;
}
.villas-home .v-cnt-success__ic svg { width: 30px; height: 30px; }
.villas-home .v-cnt-success__title { font-family: var(--v-serif); font-size: 30px; font-weight: 600; text-transform: uppercase; }
.villas-home .v-cnt-success__text { font-size: 16px; color: var(--v-dim-2); line-height: 1.5; max-width: 340px; }
.villas-home .v-cnt-success__again {
  margin-top: 6px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--v-gold);
  color: var(--v-gold);
  padding: 0 0 3px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity .15s ease;
}
.villas-home .v-cnt-success__again:hover { opacity: .75; }

/* image card */
.villas-home .v-cnt-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 480px;
}
.villas-home .v-cnt-media img { width: 100%; height: 100%; object-fit: cover; }
.villas-home .v-cnt-media__pill {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(14, 14, 14, .35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

/* info columns */
.villas-home .v-cnt-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 64px;
  border-top: 1px solid var(--v-line-2);
}
.villas-home .v-cnt-info__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.villas-home .v-cnt-info__ic {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--v-surface-2);
  border: 1px solid var(--v-line-2);
  color: var(--v-gold);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.villas-home .v-cnt-info__ic svg { width: 26px; height: 26px; }
.villas-home .v-cnt-info__title {
  font-family: var(--v-serif);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2px;
  margin-bottom: 4px;
}
.villas-home .v-cnt-info__val { font-size: 16px; color: var(--v-dim-2); transition: color .15s ease; }
.villas-home a.v-cnt-info__val:hover { color: var(--v-gold); }

/* ── Contact Form 7 wrappers (form is rendered as a real CF7 form) ── */
/* CF7 wraps each control in <span.wpcf7-form-control-wrap>; make it a block so
   the .v-input (width:100%) fills the field exactly like the static markup. */
.villas-home .v-cnt-form .wpcf7-form-control-wrap { display: block; }
/* Empty <fieldset> of hidden inputs renders as a bordered box — remove it. */
.villas-home .v-cnt-form .hidden-fields-container { display: none !important; }
/* Screen-reader response (CF7 puts it in the .wpcf7 wrapper, OUTSIDE the form)
   kept accessible but hidden visually — we show the .v-cnt-success overlay and
   field-level tips instead, so this summary must not appear above the card. */
.villas-home .v-cnt .wpcf7 .screen-reader-response {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* CF7 wraps the <form> in a .wpcf7 div; make it a flex column so the form card
   still stretches to the image height like the original grid item did. */
.villas-home .v-cnt__main .wpcf7 {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.villas-home .v-cnt__main .wpcf7 > .v-cnt-form { flex: 1 1 auto; }
/* Field-level validation tips. */
.villas-home .v-cnt-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #e07a7a;
}
/* CF7's own response line (errors). Success is covered by the overlay. */
.villas-home .v-cnt-form .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
}
.villas-home .v-cnt-form .wpcf7-response-output:empty { display: none !important; }
.villas-home .v-cnt-form .wpcf7-spinner { margin: 6px 0 0; }

/* ── responsive ──
   >1540 : form + image side by side, two-column fields (default)
   ≤1540 : form still beside image but narrow → fields go single column
   ≤1100 : image moves above the form, form full width → fields back to 2 cols
   ≤650  : mobile → fields single column again                                */
@media (max-width: 1540px) {
  .villas-home .v-cnt-form__grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .villas-home .v-cnt__main { grid-template-columns: 1fr; }
  .villas-home .v-cnt-media { min-height: 360px; order: -1; }
  /* form is full width again — restore the two-column field layout */
  .villas-home .v-cnt-form__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .villas-home .v-cnt { padding: 140px 0 80px; }
  .villas-home .v-cnt__top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .villas-home .v-cnt__lead { text-align: left; max-width: none; }
  .villas-home .v-cnt-info { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 650px) {
  .villas-home .v-cnt-form { padding: 28px; }
  .villas-home .v-cnt-form__grid { grid-template-columns: 1fr; }
  .villas-home .v-cnt-form__foot { flex-wrap: wrap; }
  .villas-home .v-cnt-form__arrow { margin-left: 0; }
  .villas-home .v-cnt-form__note { max-width: none; text-align: center; width: 100%; }
}
