:root {
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --black: #0d0d0d;
  --dark: #1a1a1a;
  --mid: #2e2e2e;
  --cream: #f5f0e8;
  --white: #ffffff;
  --border: #3a3220;
}

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

body {
  background: var(--black);
  color: var(--cream);
  font-family: 'Josefin Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── HEADER ── */
.site-header {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 32px 20px 24px;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.12) 0%, transparent 70%);
}
.header-logo-wrap {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.site-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(201, 168, 76, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.site-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 20px rgba(201, 168, 76, 0.5));
}
.header-ornament {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.header-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 300;
  letter-spacing: 6px;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
}
.header-sub {
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--gold);
  margin-top: 6px;
  text-transform: uppercase;
}
.gold-line {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto;
}
.header-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--gold-light);
  opacity: 0.8;
}

/* ── PROGRESS ── */
.progress-wrap {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 28px 20px;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
}
.step {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
  transition: color 0.4s;
}
.step.active { color: var(--gold); }
.step.done { color: #666; }
.step-num {
  width: 28px; height: 28px;
  border: 1px solid #333;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  transition: all 0.4s;
}
.step.active .step-num {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
}
.step.done .step-num {
  border-color: #444;
  background: #222;
}
.step-connector {
  width: 40px; height: 1px;
  background: #2a2a2a;
  margin: 0 8px;
}

/* ── MAIN CONTAINER ── */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ── SECTION HEADINGS ── */
.section-label {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 32px;
}

/* ── FORM CARD ── */
.form-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 36px;
  margin-bottom: 20px;
  position: relative;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.card-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ── FIELD GROUPS ── */
.field-group {
  margin-bottom: 22px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media(max-width: 560px) {
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
}

label {
  display: block;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}
label .req { color: #c0392b; margin-left: 3px; }

input[type=text],
input[type=email],
input[type=tel],
input[type=date],
textarea {
  width: 100%;
  background: var(--mid);
  border: 1px solid #3a3a3a;
  border-radius: 1px;
  color: var(--cream);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  letter-spacing: 0.5px;
}
input:focus, textarea:focus {
  border-color: var(--gold);
  background: #252015;
}
input::placeholder, textarea::placeholder { color: #555; }
textarea { resize: vertical; min-height: 80px; }

select {
  width: 100%;
  background: var(--mid);
  border: 1px solid #3a3a3a;
  border-radius: 1px;
  color: var(--cream);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  letter-spacing: 0.5px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' 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;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}
select option {
  background: #1a1a1a;
  color: #f5f0e8;
  padding: 10px;
}
select:focus {
  border-color: var(--gold);
  background-color: #252015;
}

/* ── PHOTO UPLOAD ── */
.photo-upload-area {
  display: block;
  border: 1px dashed #3a3220;
  border-radius: 2px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #1c1c1c;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.photo-upload-area:hover,
.photo-upload-area:focus-within {
  border-color: var(--gold);
  background: #201d10;
}
.photo-upload-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.photo-preview {
  width: 110px;
  height: 130px;
  object-fit: cover;
  border: 2px solid var(--gold);
  border-radius: 2px;
  margin: 0 auto 10px;
  display: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 2;
}
.photo-icon {
  font-size: 32px;
  margin-bottom: 10px;
  display: block;
}
.photo-text {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #888;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}
.photo-text strong { color: var(--gold); }

/* ── SIGNATURE ── */
.sig-note {
  font-size: 11px;
  color: #777;
  font-style: italic;
  margin-bottom: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
}

/* ── SUBMIT BUTTON (GLASSMORPHISM) ── */
.btn-submit {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.88), rgba(168, 124, 42, 0.75));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 235, 175, 0.35);
  border-radius: 3px;
  color: #0d0d0d;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-top: 32px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 8px 32px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}
.btn-submit::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}
.btn-submit:hover {
  background: linear-gradient(135deg, rgba(232, 213, 163, 0.95), rgba(201, 168, 76, 0.85));
  transform: translateY(-2px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 12px 36px rgba(201, 168, 76, 0.35);
}
.btn-submit:hover::after {
  left: 100%;
}
.btn-submit:active { transform: translateY(0); }

/* ── SUCCESS SCREEN ── */
#success-screen {
  display: none;
  animation: fadeIn 0.6s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.success-banner {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 40px 36px;
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.success-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 60%);
}
.success-icon { font-size: 48px; margin-bottom: 16px; }
.success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 10px;
}
.success-msg {
  font-size: 13px;
  color: #888;
  letter-spacing: 1px;
  line-height: 1.8;
}

.confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ── CONFIRMATION ACTION BUTTONS (GLASSMORPHISM) ── */
.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
.btn-action::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: 0.5s;
}
.btn-action:hover::after {
  left: 100%;
}

.btn-whatsapp {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.85), rgba(18, 140, 126, 0.72));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 8px 30px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, rgba(42, 224, 108, 0.95), rgba(22, 157, 141, 0.85));
  transform: translateY(-2px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 12px 36px rgba(37, 211, 102, 0.4);
}

.btn-email {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(29, 78, 216, 0.72));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 8px 30px rgba(59, 130, 246, 0.25);
}
.btn-email:hover {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.95), rgba(37, 99, 235, 0.85));
  transform: translateY(-2px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 12px 36px rgba(59, 130, 246, 0.4);
}

.btn-pdf {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.85), rgba(153, 122, 43, 0.72));
  color: #0d0d0d;
  border: 1px solid rgba(255, 235, 175, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 8px 30px rgba(201, 168, 76, 0.25);
}
.btn-pdf:hover {
  background: linear-gradient(135deg, rgba(223, 190, 94, 0.95), rgba(184, 147, 52, 0.85));
  transform: translateY(-2px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 12px 36px rgba(201, 168, 76, 0.4);
}

.btn-action:active {
  transform: translateY(0);
}

.action-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── ITEMS LIST ── */
.items-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 36px;
  margin-bottom: 20px;
  position: relative;
}
.items-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
@media(max-width: 480px) { .items-grid { grid-template-columns: 1fr; } }
.item-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 1px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--cream);
  letter-spacing: 0.3px;
}
.item-badge::before {
  content: '◆';
  color: var(--gold);
  font-size: 8px;
  flex-shrink: 0;
}
.fee-note {
  background: #1a1500;
  border: 1px solid #3a2f00;
  border-radius: 1px;
  padding: 16px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--gold-light);
  line-height: 1.7;
}
.material-note {
  background: #0d1a0d;
  border: 1px solid #1a3a1a;
  border-radius: 1px;
  padding: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: #8fa;
  line-height: 1.7;
  letter-spacing: 0.3px;
}

/* ── CODE OF CONDUCT BUTTON (GLASSMORPHISM) ── */
.btn-conduct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: rgba(201, 168, 76, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 3px;
  color: var(--gold);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-top: 20px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}
.btn-conduct::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.15), transparent);
  transition: 0.5s;
}
.btn-conduct:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15), 0 8px 28px rgba(201, 168, 76, 0.25);
}
.btn-conduct:hover::after {
  left: 100%;
}
.conduct-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  overflow-y: auto;
  padding: 40px 20px;
  animation: fadeIn 0.3s;
}
.modal-box {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 4px;
  position: relative;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 20px 60px rgba(0, 0, 0, 0.7);
}
.modal-header {
  padding: 28px 36px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.modal-close {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #aaa;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
}
.modal-close:hover {
  background: rgba(231, 76, 60, 0.2);
  border-color: rgba(231, 76, 60, 0.5);
  color: #ff6b6b;
  transform: rotate(90deg);
}
.modal-body {
  padding: 32px 36px;
  font-size: 13px;
  line-height: 1.9;
  color: #ccc;
}
@media(max-width: 480px) {
  .modal-header, .modal-body { padding: 20px; }
}
.conduct-section {
  margin-bottom: 28px;
}
.conduct-section h3 {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2a2a;
}
.conduct-section p { margin-bottom: 10px; color: #bbb; }
.conduct-section ol { padding-left: 20px; }
.conduct-section ol li { margin-bottom: 8px; color: #bbb; }
.conduct-highlight {
  background: #1a1500;
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #ddd;
  line-height: 1.7;
}

/* ── DOWNLOAD BTN ── */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #c9a84c, #a87c2a);
  border: none;
  border-radius: 1px;
  color: var(--black);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  margin-top: 20px;
}
.btn-download:hover {
  background: linear-gradient(135deg, #e8d5a3, #c9a84c);
  transform: translateY(-1px);
}

/* ── VALIDATION ── */
.field-error {
  font-size: 11px;
  color: #e74c3c;
  letter-spacing: 0.5px;
  margin-top: 5px;
  display: none;
}
input.invalid, textarea.invalid, select.invalid {
  border-color: #e74c3c !important;
}

/* ── LOADING ── */
.loading-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.loading-overlay.show { display: flex; }
.spinner {
  width: 40px; height: 40px;
  border: 2px solid #333;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}
