/* ==========================================================================
   Start a Conversation — page-specific styles
   Inherits all variables from ../style.css
   ========================================================================== */

/* ── Hero band ── */
.conv-hero {
  background: var(--navy-deep);
  color: #fff;
  padding: 3rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.conv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(185,138,62,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.conv-hero .section-label {
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}

.conv-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.conv-hero-sub {
  color: rgba(255,255,255,0.68);
  max-width: 36rem;
  font-size: 1rem;
  margin: 0;
}

.back-link {
  display: inline-block;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}
.back-link:hover { color: var(--gold-light); }

/* ── Body layout ── */
.conv-body {
  padding: 4rem 0 6rem;
}

.conv-wrap {
  max-width: 1000px;
}

.conv-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── Form ── */
.conv-form {
  display: grid;
  gap: 1.4rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.req {
  color: var(--gold);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: #aab0ba;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185,138,62,0.12);
}

/* Invalid state after attempted submit */
.was-validated input:invalid,
.was-validated select:invalid,
.was-validated textarea:invalid {
  border-color: #c0392b;
}

select {
  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 d='M1 1l5 5 5-5' stroke='%235B6472' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* ── Checkbox ── */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  margin-top: 1px;
  transition: background 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Field errors ── */
.field-error {
  font-size: 0.8rem;
  color: #c0392b;
  min-height: 1rem;
  display: block;
}

/* ── Submit row ── */
.conv-form-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.btn-submit {
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn-submit.is-loading .btn-label { opacity: 0.5; }
.btn-submit.is-loading .btn-spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.conv-form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 22rem;
  line-height: 1.5;
}

/* ── Success state ── */
.conv-success {
  text-align: center;
  padding: 3rem 2rem;
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(185,138,62,0.1);
  color: var(--gold);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.conv-success h2 { margin-bottom: 0.6rem; }
.conv-success p  { max-width: 28rem; margin: 0 auto 1.75rem; }

/* ── Aside panel ── */
.conv-aside-inner {
  background: var(--cream-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  position: sticky;
  top: 100px;
}

.conv-aside-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.conv-aside-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1.5rem;
}

.conv-aside-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.conv-aside-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  opacity: 0.7;
  min-width: 24px;
  margin-top: 0.1rem;
}

.conv-aside-list strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.conv-aside-list p {
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.55;
}

.conv-aside-contact {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.conv-aside-contact-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.conv-aside-email {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
  word-break: break-all;
  position: relative;
}

.conv-aside-email::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.conv-aside-email:hover::after { width: 100%; }

/* ── Responsive ── */
@media (max-width: 800px) {
  .conv-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .conv-aside { order: -1; }
  .conv-aside-inner { position: static; }
  .conv-body { padding: 3rem 0 4.5rem; }
}

@media (max-width: 600px) {
  .conv-form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-submit {
    width: 100%;
    min-width: unset;
  }
}

/* ── Confirmation state: thank-you only ──
   JS adds .is-success to .conv-grid after a successful submit.
   Keep this block at the end so it wins over the rules above. */
.conv-grid.is-success {
  display: block;
  max-width: 560px;
  margin: 0 auto;
}

.conv-grid.is-success .conv-form,
.conv-grid.is-success .conv-aside {
  display: none !important;
}

.conv-grid.is-success .conv-form-col {
  width: 100%;
}

.conv-grid.is-success .conv-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

/* Keep the [hidden] attribute working on elements with their own display rule */
.conv-success[hidden] { display: none !important; }