/* Contact page — matches Starflower premium theme */

.contact-hero {
  position: relative;
  height: 40vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: calc(var(--nav-height) * -1);
  padding-top: var(--nav-height);
  overflow: hidden;
}

.contact-hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: brightness(0.95) contrast(1.05);
}

.contact-hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(252,251,250,1) 100%);
  z-index: 1;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
  transform: translateY(20px);
}

.contact-hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--color-purple);
  margin: 1rem 0;
}

.contact-hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-main);
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(255,255,255,0.8);
}

.contact-page {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 6rem;
  background: linear-gradient(
    165deg,
    #f8f4f0 0%,
    #f0dce8 28%,
    #e8d4f0 52%,
    #f5e8ee 78%,
    #fcfbfa 100%
  );
}

.contact-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 20% 10%, rgba(255, 255, 255, 0.75) 0%, transparent 55%),
    radial-gradient(circle at 85% 25%, rgba(212, 175, 55, 0.18) 0%, transparent 32%),
    radial-gradient(circle at 10% 80%, rgba(217, 108, 139, 0.12) 0%, transparent 28%);
  pointer-events: none;
  z-index: 0;
}

.contact-page .container {
  position: relative;
  z-index: 1;
}

.contact-page .section-header {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

/* Unified Editorial Card Layout */
.contact-editorial-card {
  display: flex;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(123, 44, 191, 0.15), 0 0 0 1px rgba(212, 175, 55, 0.3);
  margin-top: -3rem; /* overlap with hero slightly */
  position: relative;
  z-index: 10;
}

.contact-editorial-image {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
}

.contact-editorial-image img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.contact-editorial-card:hover .contact-editorial-image img {
  transform: scale(1.05);
}

.contact-editorial-content {
  flex: 1;
  padding: 4rem;
  display: flex;
  flex-direction: column;
}

.contact-direct-info {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.contact-direct-info .info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-floral);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-direct-info a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-purple);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-direct-info a:hover {
  color: var(--color-gold);
}

.contact-divider {
  border: none;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  margin: 0 0 2.5rem 0;
  display: none; /* hidden since we have border on contact-direct-info */
}

/* Reusing some form styles */
.contact-form-stage__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-purple);
  margin-bottom: 0.5rem;
}

.contact-form-stage__lead {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
}

.contact-field span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-purple);
  margin-bottom: 0.5rem;
}

.contact-field span em {
  font-style: normal;
  font-weight: 400;
  color: var(--color-text-muted);
}

.contact-field input,
.contact-field textarea,
.contact-field select {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.contact-field textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237b2cbf' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  padding-right: 3rem;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 0 4px rgba(123, 44, 191, 0.1);
  background: #fff;
}

.contact-form__submit {
  margin-top: 1rem;
  width: 100%;
  padding: 1.25rem;
  font-size: 1rem;
  letter-spacing: 2px;
  border-radius: 50px;
}

.contact-form__note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* Success state */
.contact-success {
  text-align: center;
  padding: 3rem 2rem;
}

.contact-success[hidden] {
  display: none !important;
}

.contact-form.is-sent {
  display: none;
}

.contact-success__icon {
  font-size: 3rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.contact-success h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-purple);
  margin-bottom: 1rem;
}

.contact-success p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .contact-editorial-card {
    flex-direction: column;
  }
  
  .contact-editorial-image {
    height: 300px;
    flex: none;
  }
  
  .contact-editorial-content {
    padding: 2.5rem;
  }
}

@media (max-width: 600px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
  
  .contact-direct-info {
    flex-direction: column;
    gap: 1.5rem;
  }
}
