/* =========================================================
   StarLine Events — Registration Form Styles
   Palette: dark chocolate background, gold accents, cream text
   ========================================================= */

:root {
  --bg: #231108;
  --card-bg: #2f1a0d;
  --gold: #B67B34;
  --gold-light: #d9a25c;
  --text: #f5ead9;
  --text-dim: #cbb59a;
  --input-bg: #1b0d05;
  --border: #B67B34;
  --error: #e06a5c;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.page {
  display: flex;
  justify-content: center;
  padding: 32px 16px 64px;
}

.card {
  width: 100%;
  max-width: 560px;
  background: var(--card-bg);
  border: 1px solid #4a2c14;
  border-radius: 18px;
  padding: 32px 28px 40px;
  box-shadow: 0 0 0 6px var(--gold), 0 10px 40px rgba(0,0,0,0.5);
}

.card-header {
  text-align: center;
  margin-bottom: 28px;
}

.brand-title {
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  font-size: 44px;
  color: var(--gold-light);
  margin: 0 0 6px;
  letter-spacing: 1px;
}

.brand-sub {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
}

.translate-box {
  display: flex;
  justify-content: center;
}

/* ---------- Alerts ---------- */
.alert {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}
.alert-error {
  background: rgba(224, 106, 92, 0.12);
  border: 1px solid var(--error);
  color: #ffd8d2;
}
.alert-error ul { margin: 8px 0 0; padding-left: 18px; }

/* ---------- Field groups ---------- */
.field-group {
  margin-bottom: 26px;
}

.section-label {
  display: block;
  font-size: 15px;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.req { color: var(--error); }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"] {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 13px 14px;
  font-size: 15px;
  margin-bottom: 12px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

input[type="text"]::placeholder,
input[type="tel"]::placeholder,
input[type="email"]::placeholder {
  color: #8a7359;
}

input:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(182, 123, 52, 0.35);
}

/* ---------- Upload box ---------- */
.upload-box {
  position: relative;
}

.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.upload-inner {
  background: #e9e4da;
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #3a2a18;
  font-size: 15px;
}

.upload-icons {
  display: flex;
  gap: 10px;
}

.upload-icons svg {
  background: #fff;
  border-radius: 50%;
  padding: 8px;
  width: 34px;
  height: 34px;
  color: #3a2a18;
}

.upload-preview {
  margin-top: 14px;
  max-width: 100%;
  max-height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

/* ---------- Date field ---------- */
.date-wrap {
  position: relative;
}

.date-wrap input#dob_display {
  padding-right: 44px;
  cursor: pointer;
}

.date-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

.cal-icon {
  position: absolute;
  right: 14px;
  top: 14px;
  color: var(--gold-light);
  pointer-events: none;
}

/* ---------- Package / checkbox list ---------- */
.pkg-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pkg-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
}

.pkg-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  border: 1.5px solid var(--gold-light);
  border-radius: 4px;
  background: var(--input-bg);
  display: inline-grid;
  place-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.pkg-option input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 0.1s ease-in;
  box-shadow: inset 1em 1em var(--gold-light);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.pkg-option input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.other-wrap {
  margin-top: 12px;
}

/* ---------- Submit ---------- */
.submit-btn {
  width: 100%;
  background: var(--gold);
  color: #1b0d05;
  border: none;
  border-radius: var(--radius);
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 10px;
  transition: filter 0.15s ease, transform 0.05s ease;
}

.submit-btn:hover {
  filter: brightness(1.08);
}

.submit-btn:active {
  transform: translateY(1px);
}

/* ---------- Success page ---------- */
.success-box {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--gold-light);
}

.success-box h1 {
  color: var(--gold-light);
  font-size: 24px;
  margin-bottom: 12px;
}

.success-box p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--gold-light);
  text-decoration: none;
  border: 1px solid var(--gold);
  padding: 10px 22px;
  border-radius: var(--radius);
}

.back-link:hover {
  background: rgba(182, 123, 52, 0.15);
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .card {
    padding: 24px 18px 32px;
    border-radius: 14px;
  }
  .brand-title { font-size: 36px; }
}
