/* =========================================
   WFM Bag Charm Workshop — Stylesheet
   ========================================= */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Sacramento&display=swap');

/* --- CSS Variables --- */
:root {
  --pink:       #F9A8C9;
  --pink-light: #FDF2F8;
  --pink-mid:   #FBCFE8;
  --teal:       #5CC5BA;
  --teal-dark:  #3AADA5;
  --teal-light: #E8F8F7;
  --white:      #FFFFFF;
  --dark:       #2D3748;
  --gray:       #718096;
  --gray-light: #EDF2F7;
  --green:      #48BB78;
  --shadow:     0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.06);
  --radius:     16px;
  --radius-sm:  8px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.1rem; font-weight: 700; }

p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
}

/* --- Container --- */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- WFM Logo Bar --- */
.logo-bar {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 0;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.logo-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

.logo-bar img {
  height: 56px;
  width: auto;
  display: block;
}

.logo-bar-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 10px;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(160deg, var(--pink-light) 0%, var(--teal-light) 100%);
  padding: 60px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: var(--pink-mid);
  border-radius: 50%;
  opacity: 0.4;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -30px;
  width: 160px;
  height: 160px;
  background: var(--teal);
  border-radius: 50%;
  opacity: 0.15;
}

.hero-badge {
  display: inline-block;
  background: var(--white);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1.5px solid var(--teal);
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--dark);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.hero h1.hero-title-script {
  font-family: 'Sacramento', cursive;
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 5rem);
  line-height: 1;
  margin-bottom: 4px;
  color: var(--teal-dark);
}

.hero-subtitle-script {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.hero-image {
  max-width: 320px;
  margin: 0 auto 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

/* --- Event Strip --- */
.event-strip {
  background: var(--white);
  border-top: 1.5px solid var(--pink-light);
  border-bottom: 1.5px solid var(--pink-light);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .event-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.event-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--dark);
}

.event-strip-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  background: var(--teal-dark);
  text-decoration: none;
  color: var(--white);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-block;
  background: var(--white);
  color: var(--teal-dark);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 100px;
  border: 2px solid var(--teal);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--teal-light);
  text-decoration: none;
  color: var(--teal-dark);
}

.btn-copy {
  background: var(--pink);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-copy:hover {
  background: #f080b5;
}

.btn-copy.copied {
  background: var(--green);
}

/* --- Section --- */
.section {
  padding: 64px 24px;
}

.section-alt {
  background: var(--pink-light);
}

.section h2 {
  text-align: center;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-sub {
  text-align: center;
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* --- What You'll Make — 3 column grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* --- Color Gallery --- */
.color-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.color-swatch {
  border-radius: var(--radius);
  height: 120px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.color-swatch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3) 100%);
}

.color-name {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  text-shadow: 0 1px 2px rgba(255,255,255,0.4);
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 32px;
}

.steps-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .steps, .steps-4 { grid-template-columns: 1fr; }
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  color: var(--dark);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* --- Form --- */
.form-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
  max-width: 520px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .form-section {
    padding: 28px 20px;
  }
}

.form-section h2 {
  text-align: center;
  margin-bottom: 8px;
}

.form-sub {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group label .optional {
  font-weight: 400;
  color: var(--gray);
  font-size: 0.85rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Radio group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.radio-option:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}

.radio-option input[type="radio"] {
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.radio-option span {
  font-size: 0.95rem;
  color: var(--dark);
}

.form-submit-wrap {
  margin-top: 28px;
  text-align: center;
}

.form-submit-wrap .btn-primary {
  width: 100%;
  max-width: 280px;
}

.form-fineprint {
  font-size: 0.8rem;
  color: var(--gray);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

/* --- FAQ --- */
.faq-list {
  max-width: 640px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--teal);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.faq-item summary:hover {
  background: var(--pink-light);
}

.faq-item p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--gray);
  margin: 0;
}

/* --- Success Screen --- */
.success-screen {
  text-align: center;
  padding: 64px 24px;
  max-width: 560px;
  margin: 0 auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #C6F6D5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.5rem;
}

.success-screen h1 {
  color: var(--dark);
  margin-bottom: 12px;
}

.success-screen .success-sub {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 32px;
}

/* Event recap card */
.event-card {
  background: var(--pink-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
  border: 1.5px solid var(--pink-mid);
}

.event-card-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--dark);
}

.event-card-row:last-child {
  margin-bottom: 0;
}

.event-card-row .emoji {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.event-card-row strong {
  font-weight: 700;
}

.calendar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  text-decoration: none;
}

.calendar-btn:hover {
  text-decoration: none;
}

/* --- Payment Section --- */
.payment-section {
  background: var(--teal-light);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 32px 0;
  text-align: left;
}

.payment-section h3 {
  text-align: center;
  color: var(--dark);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.payment-intro {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 20px;
}

.payment-total {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.payment-total-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

.payment-total-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--teal-dark);
}

.bank-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
  gap: 12px;
}

.bank-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bank-row:first-child {
  padding-top: 0;
}

.bank-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 600;
}

.bank-value {
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 700;
  text-align: right;
}

.bank-account {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.bank-account-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--teal-dark);
  font-weight: 600;
  margin-top: 16px;
}

/* Share section */
.share-section {
  border-top: 1.5px solid var(--gray-light);
  padding-top: 28px;
}

.share-section h3 {
  color: var(--dark);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.share-section p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 16px;
}

.share-url-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}

.share-url-row input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  color: var(--gray);
  background: var(--gray-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Footer --- */
.footer {
  background: var(--pink-light);
  padding: 40px 24px;
  text-align: center;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pink);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 4px;
}

.footer-contact {
  font-size: 0.85rem;
  color: var(--teal-dark);
}

.footer-contacts {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-contact-name {
  font-weight: 700;
  color: #8F514F;
}

.footer-contact-link {
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 600;
}

.footer-contact-link:hover {
  text-decoration: underline;
}

/* --- Utilities --- */
.hidden {
  display: none !important;
}

.error-msg {
  color: #E53E3E;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-group.error input,
.form-group.error select {
  border-color: #E53E3E;
}

.form-group.error .error-msg {
  display: block;
}

/* Loading state on button */
.btn-primary.loading {
  opacity: 0.8;
  pointer-events: none;
}

/* Divider */
.divider {
  border: none;
  border-top: 1.5px solid var(--gray-light);
  margin: 28px 0;
}

/* CTA anchor offset for fixed header */
#register {
  scroll-margin-top: 24px;
}

/* Invite banner */
.invite-banner {
  background: var(--teal-light);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
