/* ── TOP HEADER ── */
.top-header {
  background: #ffffff;
  width: 100%;
  overflow: hidden;
}

.top-header-inner {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.top-col-fixed {
  flex: 0 0 279px;
  width: 279px;
  overflow: hidden;
}

.top-col-fluid {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.top-col-fixed img,
.top-col-fluid img {
  display: block;
  height: 275px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .top-col-fixed {
    flex: 0 0 22%;
    width: 22%;
  }
  .top-col-fixed img{
    height: 120px;
	width: auto;
  }
  .top-col-fluid img {
    height: 150px;
	width: auto;
  }
}

@media (max-width: 480px) {
  .top-col-fixed {
    flex: 0 0 20%;
    width: 20%;
  }
  .top-col-fixed img,
  .top-col-fluid img {
    height: 80px;
  }
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
  --white: #ffffff;
  --off-white: #f9faf7;
  --gray-50: #f4f7f2;
  --gray-100: #e8ede4;
  --gray-200: #d0d9cb;
  --gray-400: #8fa885;
  --gray-600: #4a6642;
  --gray-800: #1d3012;
  --gold: #397630;
  --gold-light: #c2d9bb;
  --gold-dark: #2a5a22;
  --rose: #5a8f50;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--white); color: var(--gray-800); font-family: var(--font-body); font-weight: 400; line-height: 1.6; font-size: 16px; }
.hidden { display: none !important; }

/* ── HERO ── */
.hero {
  background: transparent;
  height:445px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  display: none;
}

/* Media container - imaginea si video-ul centrate */
.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.hero-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.8s ease;
}

.hero-side {
  flex: 1;
}

.hero-side.hero-side-left {
    margin-right: -13px;
}

.hero-side.hero-side-right {
    margin-left: -13px;
}

.hero-video-wrap{
  flex: 0 0 619px;
}

.hero-video {
  height: 445px;
  margin: auto;
  object-fit: contain;
  pointer-events: none;
}

/* Overlay inchis peste media ca textul sa fie lizibil */
.hero::after {
  display: none;
}

.hero-content {
  position: absolute;
  z-index: 2;
  top:331px;
}

@media (max-width: 768px) {
  .hero-video {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
  }
}

.hero-pre {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-names {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-names span {
  color: var(--gold);
  font-style: normal;
}

.hero-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
  opacity: 0.6;
}

.hero-date {
  font-family: var(--font-display);
  font-size: 3.1rem;
  color: #000;
  letter-spacing: 0.02em;
  line-height: 3rem;
  text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.7);
}

/* PROGRAM (biserica + restaurant) */
.hero-program {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin:25px 0;
}

.hero-prog-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.hero-prog-ora {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: #000;
  line-height: 1;
}

.hero-prog-loc {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  font-weight: 400;
}

.hero-prog-sep {
  color: #000;
  opacity: 0.3;
  font-size: 1.2rem;
  line-height: 1;
  align-self: center;
}

/* COUNTDOWN */
.countdown {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.7);
}

.cd-block span {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color:#000;
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}

.cd-block small {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000;
}

/* ── FORM SECTION ── */
.form-section {
  padding: 3rem 1.25rem;
  background: var(--white);
}

.container {
  max-width: 560px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gray-800);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* CHOICE BUTTONS */
.rsvp-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 420px) {
  .rsvp-choice { grid-template-columns: 1fr; }
}

.btn-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.75rem 1.25rem;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-800);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-choice:hover, .btn-choice:active {
  border-color: #397630;
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-choice.yes:hover { border-color: #397630; }
.btn-choice.no:hover { border-color: var(--gray-400); }

.btn-icon {
  font-style: normal;
  font-size: 1.5rem;
}

/* FORM CARD */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* FORM GROUPS */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 0.4rem;
}

.req { color: var(--gold-dark); }
.opt { color: var(--gray-400); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.75rem; }

.form-group input,
.form-group select,
.ins-fields input,
.ins-fields select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-800);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.5;
}

.form-group 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='%23a8a49e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus,
.ins-fields input:focus,
.ins-fields select:focus {
  border-color: #397630;
  box-shadow: 0 0 0 3px rgba(57,118,48,0.12);
}

.form-group input::placeholder { color: var(--gray-400); }

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='%23a8a49e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

/* INSOȚITORI */
.insotitori-section { margin: 1.75rem 0 1.25rem; }

.insotitori-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 0.75rem;
}

.insotitori-header span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.btn-plus {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1.5px solid #6c6c6c;
  color: var(--gold-dark);
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  font-family: var(--font-body);
}

.btn-plus:hover {
  background: var(--gold-light);
  border-color: var(--gold);
}

.insotitor-row {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.6rem;
}

.ins-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.7rem;
}

.btn-remove {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
  line-height: 1;
}
.btn-remove:hover { background: #fef0ef; color: #c0392b; }

.ins-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.ins-fields select { grid-column: 1 / -1; }

@media (max-width: 400px) {
  .ins-fields { grid-template-columns: 1fr; }
  .ins-fields select { grid-column: auto; }
}

/* CHECKBOXURI */
.checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.5rem 0 1.25rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
}

.check-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--gray-800);
  line-height: 1.4;
}

.check-label input[type=checkbox] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #397630;
  cursor: pointer;
  border-radius: 4px;
}

/* ERORI */
.form-errors {
  background: #fef5f5;
  border: 1px solid #fbd5d5;
  color: #c0392b;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
  line-height: 1.5;
}

/* BUTOANE */
.btn-primary {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  background: #397630;
  color: var(--white);
  border: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover, .btn-primary:active { background: #4e9e42; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-primary.btn-nu { background: #5a7a55; }
.btn-primary.btn-nu:hover { background: #397630; }

.btn-secondary {
  flex: 1;
  padding: 0.9rem 1rem;
  background: transparent;
  color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--gray-400); color: var(--gray-800); }

/* CONFIRMARE */
.confirmare-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gray-800);
  text-align: center;
  margin-bottom: 1.5rem;
}

.confirmare-text {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
}

.info-row:last-child { border-bottom: none; }
.info-row:nth-child(even) { background: var(--gray-50); }

.info-row span {
  color: var(--gray-400);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-right: 1rem;
}

.info-row strong {
  color: var(--gray-800);
  font-weight: 500;
  text-align: right;
}

.info-sep {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #397630;
  padding: 0.5rem 1rem 0.25rem;
  background: rgba(57,118,48,0.06);
  border-bottom: 1px solid var(--gray-100);
}

.confirmare-btns {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.75rem;
}

@media (max-width: 400px) {
  .confirmare-btns { grid-template-columns: 1fr; }
}

/* SUCCES / ABSENT */
.succes-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.succes-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.succes-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gray-800);
  margin-bottom: 0.75rem;
}

.succes-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.6;
}

.absent-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gray-600);
  font-style: italic;
  line-height: 1.6;
}

/* ── FAQ ── */
.faq-section {
  background: var(--white);
  padding: 5rem 1.25rem;
  border-top: 1px solid var(--gray-100);
}

.faq-list {
  margin-top: 2.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.faq-q:hover { background: var(--gray-50); }
.faq-item.open .faq-q { background: var(--gray-50); }

.faq-arrow {
  color: #6c6c6c;
  font-size: 0.85rem;
  transition: transform 0.25s;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #6c6c6c;
  border-radius: 50%;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-a { max-height: 500px; }

.faq-a p {
  padding: 1.25rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── FOOTER ── */
.footer {
  background: url('/static/rsvp/images/bottom.jpg') center center;
  color: #1d3012;
  text-align: center;
  padding: 0;
  height: 143px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer p {
  margin: 0;
  text-shadow: 0 1px 3px rgba(255,255,255,0.6);
  color: #1d3012;
}

/* ── MOBILE GLOBAL ── */
@media (max-width: 600px) {
  .form-section { padding: 3rem 1rem; }
  .faq-section { padding: 3rem 1rem; }
  .form-card { padding: 1.5rem 1.25rem; }
  .hero { padding: 2.5rem 1rem; }
  .section-title { font-size: 1.7rem; }
  .btn-choice { padding: 1.4rem 1rem; font-size: 1rem; }
}

@media (max-width: 380px) {
  .form-card { padding: 1.25rem 1rem; }
  .cd-block span { font-size: 1.8rem; }
  .countdown { gap: 1rem; }
}

.ins-fields-simple input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-800);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 0.5rem;
}

.ins-fields-simple input:focus {
  border-color: #397630;
  box-shadow: 0 0 0 3px rgba(57,118,48,0.12);
}

.ins-fields-simple input::placeholder { color: var(--gray-400); }

.ins-fields-simple select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-800);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  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 d='M1 1l5 5 5-5' stroke='%23a8a49e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.ins-fields-simple select:focus {
  border-color: #397630;
  box-shadow: 0 0 0 3px rgba(57,118,48,0.12);
}

.meniu-detalii {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #6c6c6c;
  background: var(--white);
  color: var(--gray-800);
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}

.meniu-detalii:focus {
  border-color: #397630;
  box-shadow: 0 0 0 3px rgba(57,118,48,0.12);
}

.meniu-detalii::placeholder { color: var(--gray-400); }

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
  padding-left: 4px;
}

.video-play-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: translate(-50%, -50%) scale(1.08);
}

/* ── NAMES & PRE in form section ── */
.form-names {
  font-style: italic;
  color: var(--gray-800) !important;
  text-align: center;
  margin-bottom: 0.4rem !important;
  font-size: 2.8rem !important;
}

.form-names span {
  color: #8bb970 !important;
}

.form-pre {
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: #397630 !important;
  text-align: center !important;
  margin-bottom: 1.5rem !important;
}
