/* ============================================
   Quizz Caritabil @ Coffee Fest - Campaign Site
   Rotaract Hoia & Asociația Something New
   Look & feel inspirat din "Fii o Lumină de Paște"
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  --gold: #d4a017;
  --gold-dark: #b8860b;
  --gold-light: #f5deb3;
  --gold-bg: #fdf3d6;
  --coffee: #4a3428;
  --coffee-light: #6f5240;
  --cream: #fdf8f0;
  --white: #ffffff;
  --text: #2d2d2d;
  --text-light: #666666;
  --border: #e8e0d4;
  --success: #3d8b4f;
  --danger: #b3402f;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 14px;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Open Sans", -apple-system, sans-serif;
  --container: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.link-gold {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

section[id],
header[id] {
  scroll-margin-top: 12px;
}

ul {
  list-style: none;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 28px 0;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text);
}

.section__title em {
  font-style: italic;
}

.section__title--decorated {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section__title--decorated::before,
.section__title--decorated::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section__lead {
  max-width: 640px;
  margin: 0 auto 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--text);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn--outline:hover {
  background: var(--text);
  color: var(--white);
}

/* Varianta pentru fundal inchis (hero) */
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(253, 248, 240, 0.55);
}

.btn--ghost:hover {
  background: var(--cream);
  color: var(--coffee);
  border-color: var(--cream);
}

.btn--full {
  width: 100%;
}

.btn--lg {
  padding: 14px 36px;
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 40px 0 32px;
  background:
    radial-gradient(ellipse at top, rgba(212, 160, 23, 0.12), transparent 60%),
    var(--coffee);
  color: var(--cream);
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
  color: var(--white);
}

.hero__tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Despre ---------- */
.about {
  text-align: center;
  background: var(--white);
}

.about__text {
  font-size: 0.98rem;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.about__text strong {
  color: var(--text);
}

/* ---------- Program (zile) ---------- */
.program {
  background: var(--cream);
}

.program__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.day-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.day-card:hover {
  box-shadow: var(--shadow);
}

.day-card--full {
  opacity: 0.75;
}

.day-card--full .day-card__spots {
  color: var(--danger);
}

.day-card__day {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.day-card__time {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-dark);
  font-family: var(--font-heading);
}

.day-card__spots {
  font-size: 0.85rem;
  color: var(--text-light);
}

.day-card__spots strong {
  color: var(--success);
  font-size: 1rem;
}

.day-card .progress-bar {
  margin-top: 4px;
}

.program__facts {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  text-align: center;
}

.program__fact {
  font-size: 0.9rem;
  color: var(--text-light);
}

.program__fact strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text);
}

.program__note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 14px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Structura quiz ---------- */
.structure {
  background: var(--white);
}

.structure__list {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.structure__wrap {
  text-align: center;
}

.structure__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.structure__duration {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.structure__duration strong {
  color: var(--text);
}

/* ---------- Cauza ---------- */
.cause {
  background: var(--gold-bg);
}

.cause__text {
  max-width: 680px;
  margin: 0 auto 12px;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.7;
}

.cause__text p + p {
  margin-top: 12px;
}

.cause__text em {
  font-family: var(--font-heading);
  font-style: italic;
}

.cause__links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ---------- Inscriere / Formular ---------- */
.register {
  background: var(--white);
}

.register__intro {
  max-width: 640px;
  margin: 0 auto 24px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
}

.register__form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 20px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.form-section-title:first-child {
  margin-top: 0;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 70px;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

.form-group select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  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='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: border-color 0.2s;
}

/* Zile - radio cards */
.day-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 48px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.95rem;
}

.day-option:hover {
  border-color: var(--gold);
}

.day-option.selected {
  border-color: var(--gold);
  background: var(--gold-bg);
}

.day-option input {
  accent-color: var(--gold-dark);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.day-option__label {
  flex: 1;
}

.day-option__spots {
  font-size: 0.78rem;
  color: var(--text-light);
  white-space: nowrap;
}

.day-option.full {
  opacity: 0.55;
  cursor: not-allowed;
}

.day-option.full .day-option__spots {
  color: var(--danger);
  font-weight: 600;
}

/* Taxa */
.fee-box {
  background: var(--gold-bg);
  border: 2px solid var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  text-align: center;
}

.fee-box__amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.fee-box__detail {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* Checkbox-uri */
.consent-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 0;
}

.consent input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--gold-dark);
  flex-shrink: 0;
}

.consent a {
  color: var(--gold-dark);
  text-decoration: underline;
}

.form-error {
  display: none;
  background: #fbeae7;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.form-error.visible {
  display: block;
}

/* ---------- Progress Bar ---------- */
.progress-bar {
  width: 100%;
  height: 10px;
  background: var(--gold-bg);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  transition: width 1s ease-out;
  min-width: 0;
}

/* ---------- Parteneri ---------- */
.partners {
  background: var(--cream);
}

.partners__list {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.partner {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 28px;
  text-align: center;
  min-width: 220px;
}

.partner__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.partner__role {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 32px 0 40px;
  background: var(--coffee);
  color: var(--cream);
}

.footer__text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.footer__text em {
  font-style: italic;
  color: var(--gold-light);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer__links a {
  color: var(--gold-light);
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__copy {
  margin-top: 18px;
  font-size: 0.75rem;
  color: rgba(253, 248, 240, 0.6);
}

/* ---------- Pagini status (success / cancel) ---------- */
.status-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.status-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  max-width: 480px;
}

.status-card__icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.status-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.status-card__text {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .program__grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    gap: 10px;
  }

  /* Carduri de zi compacte, pe orizontala */
  .day-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "day time"
      "bar bar"
      "spots spots";
    align-items: center;
    text-align: left;
    padding: 14px 16px;
    gap: 2px 12px;
  }

  .day-card__day {
    grid-area: day;
    font-size: 1.05rem;
  }

  .day-card__time {
    grid-area: time;
    font-size: 1.05rem;
  }

  .day-card .progress-bar {
    grid-area: bar;
    margin-top: 8px;
  }

  .day-card__spots {
    grid-area: spots;
  }
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 1.9rem;
  }

  .section__title {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }

  .section {
    padding: 22px 0;
  }

  .container {
    padding: 0 18px;
  }

  .program__facts {
    gap: 16px 24px;
  }

  .partners__list {
    gap: 10px;
  }

  .partner {
    padding: 12px 20px;
    min-width: 0;
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 30px 0 24px;
  }

  .hero__title {
    font-size: 1.55rem;
  }

  .hero__tagline {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .hero__subtitle {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .about__text,
  .cause__text {
    font-size: 0.92rem;
  }

  .structure__list li {
    font-size: 0.9rem;
    align-items: flex-start;
  }

  .structure__list .check-icon {
    margin-top: 1px;
  }

  .cause__links {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .register__form {
    padding: 20px 14px;
  }

  .form-section-title {
    margin-top: 16px;
    font-size: 1.05rem;
  }

  .fee-box {
    padding: 12px 14px;
  }

  .fee-box__amount {
    font-size: 1.35rem;
  }

  .day-option__label {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .btn {
    padding: 9px 18px;
    font-size: 0.85rem;
  }

  .btn--lg {
    padding: 13px 24px;
    font-size: 0.92rem;
  }

  .footer__links {
    flex-direction: column;
    gap: 10px;
  }
}
