/* ═══════════════════════════════════════════════
   M3M Event Landing Page – style.css
   Dark luxury gold aesthetic
═══════════════════════════════════════════════ */

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

:root {
  --gold-1: #d4af37;
  --gold-2: #f3e5ab;
  --gold-3: #aa771c;
  --gold-4: #c59b27;
  --dark-bg: #050305;
  --dark-input: rgba(255, 255, 255, 0.04);
  --dark-input-hover: rgba(212, 175, 55, 0.07);
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-gold-focus: rgba(212, 175, 55, 0.75);
  --text-primary: #f5e9c8;
  --text-muted: rgba(245, 233, 200, 0.55);
  --text-label: rgba(212, 175, 55, 0.85);
  --error-col: #e57373;
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Montserrat', 'Segoe UI', sans-serif;
  --radius: 8px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}


/* ═══════════════════════════════════════════════
   SECTION 1 — HERO BANNER (Image-based)
═══════════════════════════════════════════════ */

.hero {
  position: relative;
  width: 100%;
  background: #050305;
  /* No height needed — driven by the image's natural aspect ratio */
  overflow: hidden;
  display: block;
}

/* Full-width banner image — always fills the container */
.hero__banner-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  /* On desktop: natural 16:9 ratio. On mobile: scales proportionally */
}

/* Particle canvas — absolute overlay on top of the image */
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* M3M Logo — overlaid top-left, sized as % of the container width */
.hero__logo {
  position: absolute;
  top: 4%;          /* 4% of section height */
  left: 2.8%;       /* 2.8% of section width */
  z-index: 10;
}

.hero__logo img {
  /* Fluid sizing: clamp(min, preferred%, max) */
  width: clamp(72px, 9vw, 135px);
  height: auto;
  object-fit: contain;
  filter: brightness(1.1) drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}


/* ═══════════════════════════════════════════════
   SECTION 2 — REGISTRATION FORM
═══════════════════════════════════════════════ */

.form-section {
  position: relative;
  width: 100%;
  padding: 80px 20px 100px;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(180, 130, 20, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #080505 0%, #030203 100%);
  overflow: hidden;
}

.form-glow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.2;
  background: radial-gradient(ellipse, #b8860b 0%, transparent 70%);
}
.form-glow-top { top: -80px; }
.form-glow-bot { bottom: -80px; }

/* ── Form Container ─────────────────────────── */
.form-container {
  position: relative;
  z-index: 5;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
}

/* ── Section Rule / Decorative Divider ─────── */
.section-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 4px;
}
.section-rule span:not(.rule-dot) {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
}
.rule-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-1);
  box-shadow: 0 0 6px var(--gold-1);
  flex: none !important;
}

/* ── Form Header ────────────────────────────── */
.form-header {
  text-align: center;
  margin-bottom: 44px;
}

.form-heading {
  font-family: var(--font-display);
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 600;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-1), var(--gold-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 12px 0 12px;
}

.form-subheading {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  line-height: 1.6;
  max-width: 380px;
  margin: 10px auto 0;
}

/* ── Field Groups ───────────────────────────── */
.field-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--text-label);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.req { color: var(--gold-1); margin-left: 2px; }

/* Input wrapper – full row with icon */
.input-wrapper {
  display: flex;
  align-items: center;
  background: var(--dark-input);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  overflow: hidden;
  padding: 0 16px;
  gap: 10px;
  height: 50px;
}

.input-wrapper:hover {
  background: var(--dark-input-hover);
  border-color: rgba(212, 175, 55, 0.5);
}

.input-wrapper:focus-within {
  background: rgba(212, 175, 55, 0.06);
  border-color: var(--border-gold-focus);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1), 0 0 20px rgba(212, 175, 55, 0.08);
}

/* Icon in input */
.input-icon {
  display: flex;
  align-items: center;
  color: rgba(212, 175, 55, 0.6);
  flex-shrink: 0;
}
.input-icon svg {
  width: 16px;
  height: 16px;
}

/* Phone prefix */
.phone-prefix {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-1);
  flex-shrink: 0;
  font-family: var(--font-body);
}
.phone-sep {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Actual input element */
input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  height: 100%;
  caret-color: var(--gold-1);
}

input::placeholder {
  color: rgba(245, 233, 200, 0.3);
  font-size: 13px;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #0d0a04 inset;
  -webkit-text-fill-color: var(--text-primary);
}

/* Error state */
.field-group.has-error .input-wrapper {
  border-color: var(--error-col);
  box-shadow: 0 0 0 2px rgba(229, 115, 115, 0.15);
}

.error-msg {
  font-size: 11px;
  color: var(--error-col);
  margin-top: 5px;
  padding-left: 4px;
  display: none;
  font-weight: 400;
}
.field-group.has-error .error-msg { display: block; }

/* ── Submit Button ──────────────────────────── */
.btn-submit {
  position: relative;
  width: 100%;
  height: 54px;
  margin-top: 32px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #aa771c 0%, #d4af37 35%, #f3e5ab 65%, #c59b27 100%);
  background-size: 200% 100%;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #0d0a04;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  transition: background-position var(--transition), transform 0.15s ease, box-shadow var(--transition);
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.3), 0 2px 8px rgba(0,0,0,0.4);
}

.btn-submit:hover {
  background-position: 100% 0;
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5), 0 2px 12px rgba(0,0,0,0.5);
  transform: translateY(-1px);
}

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

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

/* Shimmer sweep */
.btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  animation: shimmer 2.5s ease infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

.btn-arrow {
  font-size: 18px;
  line-height: 1;
  font-family: sans-serif;
}


/* ═══════════════════════════════════════════════
   SUCCESS MODAL
═══════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: linear-gradient(145deg, #120e05, #0d0903);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  padding: 48px 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.15), 0 20px 60px rgba(0,0,0,0.6);
  transform: translateY(20px);
  transition: transform 0.35s ease;
}
.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-icon { margin-bottom: 20px; }
.modal-icon svg { width: 64px; height: 64px; }

.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.modal-msg {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.modal-msg strong { color: var(--text-primary); font-weight: 500; }

.modal-close {
  background: transparent;
  border: 1px solid var(--gold-1);
  border-radius: var(--radius);
  color: var(--gold-1);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 3px;
  padding: 12px 32px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover {
  background: var(--gold-1);
  color: #0d0a04;
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE ( ≤ 768px )
═══════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Hero: image stays full width, logo scales fluidly via clamp() */
  .hero__logo {
    top: 3.5%;
    left: 3.5%;
  }
  /* clamp in hero__logo img already handles the logo size — no override needed */

  /* Form section tighter padding on mobile */
  .form-section { padding: 52px 16px 72px; }

  .form-heading { font-size: 17px; letter-spacing: 2.5px; }
  .form-subheading { font-size: 12px; }

  .input-wrapper { height: 48px; padding: 0 14px; }

  label { font-size: 11px; letter-spacing: 1.2px; }

  .btn-submit { height: 50px; font-size: 13px; letter-spacing: 3px; }

  .modal-box { padding: 36px 24px; }
  .modal-title { font-size: 18px; }
}

@media (max-width: 430px) {
  .form-heading { font-size: 14px; letter-spacing: 2px; }
  .form-subheading { font-size: 11.5px; }
  .btn-submit { font-size: 12px; letter-spacing: 2.5px; }
}
