/* ============================================================
   Berrybind — Light Purple Brand Theme Shared Stylesheet
   Brand color: #38228f (deep purple from logo)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:    #38228f;
  --brand-md: #4e35a8;
  --brand-lt: #ede9fb;
  --bg:       #f0ecfc;        /* light lavender — brand-tinted background */
  --surf:     #faf8ff;        /* slightly purple-tinted card surface */
  --border:   #d6cef5;
  --text:     #1a1040;        /* deep purple-dark text */
  --muted:    #6b5fa0;
  --purple:   #c264fe;
  --pink:     #f272a5;
  --cyan:     #06b6d4;
  --gold:     #f59e0b;
  --green:    #22c55e;
  --grad:     linear-gradient(135deg, #c264fe, #f272a5);
  --shadow:   0 2px 20px rgba(56,34,143,0.10);
  --radius:   12px;
}

html, body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

/* ── Header ── */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(56,34,143,0.07);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo__text {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand);
}

.header-back {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.header-back:hover { color: var(--brand); }

/* ── Page layout ── */
.page-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ── Page hero ── */
.page-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-hero .badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid currentColor;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Form card ── */
.form-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-section {
  padding: 2rem 2rem 0;
}

.form-section:last-of-type {
  padding-bottom: 2rem;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-md);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.form-divider {
  height: 1px;
  background: var(--border);
  margin: 0 2rem;
}

/* ── Form grid ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 1rem;
}

.form-group:last-child { margin-bottom: 0; }
.form-row .form-group { margin-bottom: 0; }

label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

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

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 10px 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus-color, #38228f);
  box-shadow: 0 0 0 3px var(--focus-glow, rgba(56,34,143,0.12));
}

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='%236b5fa0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

::placeholder { color: #a89dcc; }

/* ── Submit area ── */
.form-submit {
  padding: 1.5rem 2rem;
  background: var(--brand-lt);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.submit-btn:active { transform: translateY(0); }

.form-legal {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.form-legal a { color: var(--brand-md); text-decoration: none; }
.form-legal a:hover { text-decoration: underline; }

/* Honeypot */
.mc-honeypot { position: absolute; left: -5000px; }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.2s;
}
.site-footer a:hover { color: var(--brand); }

/* ── Responsive ── */
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.5rem; }
  .form-section { padding: 1.25rem 1.25rem 0; }
  .form-section:last-of-type { padding-bottom: 1.25rem; }
  .form-divider { margin: 0 1.25rem; }
  .form-submit { padding: 1.25rem; }
  .site-header { padding: 0 1rem; }
}
