﻿/* ===========================
   SERENOVA - CONTACT PAGE CSS
   =========================== */

/* PAGE BANNER */
.page-banner {
  position: relative;
  height: 220px;
  background: url("https://images.unsplash.com/photo-1519823551278-64ac92734fb1?w=1400&q=80")
    center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2.5rem;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(92, 45, 120, 0.6) 0%,
    rgba(40, 10, 60, 0.78) 100%
  );
}
.banner-content {
  position: relative;
  z-index: 1;
  padding: 0 3rem;
}
.banner-content h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}
.breadcrumb a:hover {
  color: var(--gold);
}
.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}

/* ── MAIN CONTACT SECTION ── */
.contact-main {
  padding: 5rem 0 5rem;
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-col-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}
.contact-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
}

/* MAP */
.map-wrap {
  width: 100%;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Info cards */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  transition: var(--transition);
}
.info-card:hover {
  border-color: var(--purple-light);
  box-shadow: var(--shadow-soft);
  transform: translateX(4px);
}
.info-icon {
  width: 40px;
  height: 40px;
  background: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.info-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.info-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CONTACT FORM ── */
.cform {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cform-field {
  display: flex;
  flex-direction: column;
  position: relative;
}

.cform-field input,
.cform-field textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--off-white);
  transition: var(--transition);
  outline: none;
}
.cform-field input:focus,
.cform-field textarea:focus {
  border-color: var(--purple);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(123, 63, 160, 0.08);
}
.cform-field input.invalid,
.cform-field textarea.invalid {
  border-color: #d9534f;
  background: #fff8f8;
}
.cform-field textarea {
  resize: vertical;
  min-height: 140px;
}

.field-err {
  display: none;
  font-size: 0.73rem;
  color: #d9534f;
  margin-top: 0.3rem;
  padding-left: 0.2rem;
}
.field-err.show {
  display: block;
}

/* Captcha row */
.captcha-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.captcha-box {
  flex-shrink: 0;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  min-width: 110px;
  text-align: center;
}
.captcha-code {
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple-dark);
  letter-spacing: 0.25em;
  user-select: none;
  /* slight distortion effect */
  display: inline-block;
  transform: skewX(-4deg);
  text-shadow: 1px 1px 0 rgba(123, 63, 160, 0.2);
}
.captcha-input-wrap {
  flex: 1;
}
.captcha-refresh {
  width: 40px;
  height: 40px;
  background: var(--purple-pale);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--purple);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0;
}
.captcha-refresh:hover {
  background: var(--purple);
  color: var(--white);
}

/* Submit row */
.cform-submit-row {
  display: flex;
  justify-content: flex-end;
}
.cform-submit-row .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 160px;
  justify-content: center;
}
.cform-submit-row .btn-primary.loading {
  opacity: 0.7;
  pointer-events: none;
}

.cform-success {
  display: none;
  background: #edf8f2;
  color: #2e7d52;
  border: 1.5px solid #b2dfce;
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}
.cform-success.show {
  display: flex;
}
.cform-success i {
  font-size: 1.1rem;
}

/* ── PROMO BANNER ── */
.promo-banner {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #2d1a40;
  min-height: 160px;
}
.promo-banner-text {
  flex: 1;
  padding: 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}
.pb-headline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.pb-offer {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.pb-offer span {
  font-size: 3rem;
}
.pb-offer sup {
  font-size: 1rem;
  vertical-align: super;
  color: rgba(255, 255, 255, 0.6);
}
.pb-small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.8rem;
}
.promo-banner-text .btn-primary {
  align-self: flex-start;
}

.promo-banner-img {
  flex: 0 0 200px;
  position: relative;
  overflow: hidden;
}
.promo-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pb-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 58px;
  height: 58px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* FOOTER SHARED */
.footer-top-logo {
  text-align: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2.5rem;
}
.footer-brand-center {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .map-wrap {
    height: 280px;
  }
}
@media (max-width: 768px) {
  .banner-content {
    padding: 0 1.5rem;
  }
  .banner-content h1 {
    font-size: 2rem;
  }
  .cform-row {
    grid-template-columns: 1fr;
  }
  .captcha-row {
    flex-wrap: wrap;
  }
  .captcha-input-wrap {
    min-width: 0;
    width: 100%;
  }
  .promo-banner {
    flex-direction: column;
  }
  .promo-banner-img {
    flex: none;
    height: 160px;
  }
}
@media (max-width: 480px) {
  .cform-submit-row {
    justify-content: stretch;
  }
  .cform-submit-row .btn-primary {
    width: 100%;
  }
}
