/* Global */
:root{
  --bg: #001e17;
  --bg-glass: rgba(0, 43, 31, 0.6);
  --gold: #d4af37;
  --mint: #a8e6cf;
  --text: #f3f5f4;
  --shadow: 0 10px 40px rgba(0,0,0,.4);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Lucida Calligraphy', cursive;
  color: var(--text);
  background-color: var(--bg);
  overflow-x:hidden;
}

/* Logo as watermark in the background (mandala-style) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(0,30,23,.72), rgba(0,50,36,.78)),
    url('assets/logo.png') center center / cover no-repeat fixed;
  background-color: var(--bg);
  opacity: 1;
  z-index: -1;
  pointer-events: none;
}

/* Intro overlay */
#overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 1.2s ease, opacity 1.2s ease, visibility 1.2s ease;
}

#logo {
  width: auto;
border-radius: 50%;  
  max-width: 40%; /* starting size */
  opacity: 1;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.6));
  transform: scale(1);
  transition: transform 1.6s ease;
}



/* Layout */
.container{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding: clamp(16px, 3vw, 32px);
  gap: 24px;
  text-align:center;
}

/* Brand */
.site-title{
  font-size: clamp(28px, 6vw, 56px);
  color: var(--gold);
  letter-spacing: .5px;
  margin: 0 0 8px;
}
.tagline{
  margin:0;
  font-size: clamp(16px, 3vw, 22px);
  color: var(--mint);
  opacity: .95;
}

/* Form – glassmorphism */
form{
  width: min(92vw, 560px);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  text-align:left;
}
.field{margin-bottom: 14px;}
label{
  display:block; margin:0 0 6px 6px;
  font-size: 14px; color: #cfe8dc;
}
input, textarea{
  width:100%;
  padding: 12px 14px;
  border: 1px solid rgba(168,230,207,.25);
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus{
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.25);
  background: rgba(0,0,0,.35);
}
textarea{resize: vertical; min-height: 110px;}

select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(168,230,207,.25);
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Make form labels bigger and gold */
form label {
  font-size: 1.1rem; /* slightly bigger — adjust if needed */
  color: var(--gold);
  font-weight: bold;
}

/* Center-align only the Send button */
form button,
form input[type="submit"] {
  display: block;
  margin: 1rem auto 0;
}

.btn{
  display:inline-block;
  appearance:none;
  border:none;
  border-radius: 12px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--gold), #b9931a);
  color: #073b2d;
  font-weight: 700;
  letter-spacing:.2px;
  cursor:pointer;
  transition: transform 120ms ease, filter 200ms ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.btn:active{ transform: translateY(0); }

/* Socials */
.socials{ display:flex; gap:18px; margin-top: 10px; }
.social{
  width:46px; height:46px; display:grid; place-items:center;
  border-radius:12px; background: rgba(0,0,0,.35);
  border: 1px solid rgba(212,175,55,.25);
  transition: transform 140ms ease, background 200ms ease, border-color 200ms ease;
}
.social:hover{ transform: translateY(-2px); background: rgba(0,0,0,.45); border-color: var(--gold); }
.icon{ width:22px; height:22px; fill: var(--gold); }

/* Instagram gift CTA (shown with badge after registration) */
.instagram-gift-cta {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  text-align: center;
}
.instagram-gift-cta p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--text);
}
.instagram-gift-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--gold), #b9931a);
  color: #0a2e23;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}
.instagram-gift-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

@media (max-width: 420px){
  .socials{ gap:12px; }
  .social{ width:42px; height:42px; }
  .icon{ width:20px; height:20px; }
}

.event-intro {
  max-width: 900px;
  margin: 3rem auto;
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  backdrop-filter: blur(6px);
}

.event-intro h1 {
  font-family: 'Lucida Calligraphy', Italics;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.event-intro .intro {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #fff;
}

.event-intro .highlight {
  color: var(--gold);
  font-weight: bold;
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
  justify-content: center;
}

.highlight-box {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 1rem;
  width: 250px;
}

.highlight-title {
font-size: 1.8rem;
  display: block;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.event-intro .closing {
  font-size: 1.1rem;
  color: #fff;
  margin: 2rem 0 1.5rem;
}

.event-intro .event-tagline {
  font-size: 1.35rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.form-heading {
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 0 1rem;
  text-align: center;
}

/* Override font for event intro + form */
.event-intro,
.event-intro * ,
form,
form * {
  font-family: 'Calibri', Times, serif !important;
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
  background-color: var(--gold);
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: #d4af37;
  transform: scale(1.05);
}

html {
  scroll-behavior: smooth;
}

/* Gold glow effect */
.glow-highlight {
  box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.6);
  transition: box-shadow 0.5s ease-out;
}


/* Bigger gold labels for the form */
form label {
  font-size: 1.1rem; /* slightly bigger */
  color: var(--gold);
  font-weight: bold;
}

/* Send button styling */
form button,
form input[type="submit"] {
  display: block;               /* Forces it to take its own line */
  margin: 1.2rem auto 0 auto;    /* Centers horizontally */
  padding: 0.8rem 2rem;          /* Bigger size */
  font-size: 1.1rem;             /* Slightly larger text */
  background-color: var(--gold);
  color: #000;                   /* Black text for contrast */
  border: none;
  border-radius: 30px;           /* Smooth pill shape */
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Gold glow on hover */
form button:hover,
form input[type="submit"]:hover {
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  transform: scale(1.05); /* Slight zoom effect */
}

/* Center the button reliably */
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* Bigger, premium button */
.submit-btn {
  /* size & layout */
  display: inline-block;
  width: auto !important;            /* kills any width:100% from earlier rules */
  padding: 0.9rem 2.2rem;
  font-size: 1.12rem;
  border-radius: 30px;

  /* colors */
  background: linear-gradient(135deg, var(--gold), #b9931a);
  color: #0a2e23;
  border: none;

  /* polish */
  cursor: pointer;
  transition: transform .2s ease, box-shadow .3s ease, filter .25s ease;
  box-shadow: 0 0 0 rgba(212,175,55,0); /* start with no glow */

  /* entrance animation (CSS-only) */
  animation: fadeSlideIn .8s ease-out .3s both;
}

/* Lux hover glow */
.submit-btn:hover {
  box-shadow: 0 0 18px rgba(212,175,55,0.75);
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.03);
}

/* Entrance keyframes */
@keyframes fadeSlideIn {
  0%   { opacity: 0; transform: translateY(20px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Labels: bigger & gold (keeps other text left-aligned) */
form label {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: bold;
}

/* Form status message (success/error) */
form .status {
  margin-top: 0.75rem;
  min-height: 1.25rem;
  font-size: 0.95rem;
  color: var(--mint);
  text-align: center;
}

form .status:empty {
  display: block;
}

.site-footer {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 215, 0, 0.6); /* subtle gold */
  margin-top: 3rem;
  padding: 1rem 0;
}

.site-footer p {
  margin: 0;
}

/* Progress Section */
.progress-section {
  max-width: 520px;
  margin: 1.5rem auto 2rem;
  text-align: center;
}

.progress-label {
  font-size: 1.5rem;
  color: #e39c29;
font-family: 'Lucida Calligraphy', cursive;
  font-weight: 1200;
  margin-bottom: .4rem;
}

.progress-container {
  width: 100%;
  height: 16px;
  background: #e5e7eb; /* light grey track */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.08);
}

.progress-bar {
  width: 10%; /* starts empty */
  height: 100%;
  background: #b98316;
  border-radius: 10px;
  transition: width 2s ease;
}

.progress-percent {
  font-size: .95rem;
  margin-top: .3rem;
  color: var(--muted);
  font-weight: 500;
}

/* Bigger, luxe CTA link */
.cta-link{
  display:inline-block;
  font-size: 1.6rem;      /* adjust 1.3–1.8rem as you like */
  font-weight: 600;
  color: #cce7c9;         /* your gold */
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease, transform .15s ease;
}
.cta-link:hover{
  color: #b98316;         /* deeper gold on hover */
  border-color: currentColor;
  transform: translateY(-1px);
}

/* ========== Mobile & responsive ========== */
@media (max-width: 768px) {
  .container {
    padding: 12px 16px;
    gap: 16px;
    justify-content: flex-start;
    min-height: auto;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .form-heading {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
  }

  form {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    border-radius: 14px;
  }

  .field {
    margin-bottom: 12px;
  }

  form label {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  /* Touch-friendly inputs (min 44px tap target, 16px to reduce iOS zoom) */
  input,
  textarea,
  select {
    padding: 14px 12px;
    font-size: 16px;
    min-height: 48px;
    border-radius: 10px;
  }

  select {
    width: 100%;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: menulist;
    background-image: none;
    padding-right: 14px;
  }

  .form-actions {
    margin-top: 1rem;
  }

  .submit-btn {
    padding: 14px 24px;
    font-size: 1.05rem;
    min-height: 48px;
    width: 100%;
    max-width: 100%;
  }

  #newRegBtn {
    width: 100%;
    max-width: 320px;
    min-height: 48px;
    padding: 14px 20px;
  }

  .site-footer {
    margin-top: 2rem;
    padding: 0.75rem 16px;
    font-size: 0.8rem;
  }

  .event-intro {
    margin: 1.5rem auto;
    padding: 1.25rem;
  }

  .event-intro h1 {
    font-size: 1.75rem;
  }

  .event-intro .intro,
  .event-intro .closing {
    font-size: 1rem;
  }

  .highlights {
    gap: 1rem;
    margin: 1.25rem 0;
  }

  .highlight-box {
    width: 100%;
    max-width: 280px;
  }

  .highlight-title {
    font-size: 1.4rem;
  }

  .progress-section {
    margin: 1rem auto 1.5rem;
    padding: 0 8px;
  }

  .progress-label {
    font-size: 1.25rem;
  }
}

/* Overlay logo: smaller on narrow screens */
@media (max-width: 768px) {
  #logo {
    max-width: 70%;
  }
}

@media (max-width: 480px) {
  #logo {
    max-width: 85%;
  }
}

/* Carousel & badge: full-width, no clipping on mobile */
@media (max-width: 768px) {
  #badgePreview {
    margin-top: 16px;
    padding: 0;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
  }

  #badgePreview h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding: 0 8px;
  }

  .carousel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin: 0;
  }

  .carousel-track {
    align-items: flex-start;
  }

  .carousel-slide {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  #badgePreview .carousel-track img,
  #badgePreview img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: top center;
    border-radius: 0;
  }

  .carousel-btn {
    width: 48px;
    min-height: 48px;
    font-size: 28px;
  }

  .carousel-dots {
    bottom: 8px;
    gap: 6px;
  }

  .dot {
    width: 12px;
    height: 12px;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .form-heading {
    font-size: 1rem;
  }

  form {
    padding: 12px;
  }

  .submit-btn {
    font-size: 1rem;
    padding: 12px 20px;
  }
}
