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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  background: #000000;
  color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 300;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 80px;
  box-sizing: border-box;
}

/* Make header-content a positioned container so we can absolutely center the logo */
.header-content {
  position: relative;
}

.progress-wrapper {
  flex: 1;
  max-width: 400px;
  margin-left: 40px;
}

/* When progress is used at the top of the right panel make it full width
   and centered above the form */
.form-progress-top {
  max-width: none;
  width: 100%;
  padding: 24px 40px 0 40px; /* spacing to align with form-card margins */
  margin: 0 auto; /* center and remove any previous left margin */
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-progress-top .progress-container {
  max-width: 720px; /* prevent the bar from being too wide on very large screens */
  width: 100%;
}

.progress-text {
  display: block;
  width: 100%;
  text-align: center;
}

.logo {
  font-size: 32px;
  font-weight: 200;
  letter-spacing: 3px;
  color: #ffffff;
  position: relative;
  text-decoration: none;
}

/* Center the header logo horizontally within the header area. This keeps
   existing progress/content layout while visually centering the brand. */
.header .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100; /* keep above other header elements */
}

.logo::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgb(245, 200, 133), #ffd700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.logo:hover::after {
  transform: scaleX(1);
}

/* Progress Bar */
.progress-container {
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: rgb(245, 200, 133);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Split Layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 100px;
}

/* Full screen signup when left panel is hidden */
.split-layout.full-screen-signup {
  grid-template-columns: 1fr;
}

.split-layout.full-screen-signup .right-panel {
  width: 100%;
  max-width: none;
}

/* Left Panel */
.left-panel {
  background: linear-gradient(
    135deg,
    #000000 0%,
    #0a0a0a 50%,
    rgba(212, 175, 55, 0.05) 100%
  );
  position: relative;
  overflow: hidden;
}

.event-showcase {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
}

/* Right Panel */
.right-panel {
  background: linear-gradient(
    135deg,
    #0a0a0a 0%,
    #1a1a1a 50%,
    rgba(212, 175, 55, 0.02) 100%
  );
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
  height: 100%;
}

.form-container {
  padding: 40px 0;
}

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

.form-title {
  font-size: 28px;
  font-weight: 200;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.form-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

.event-cta-message {
  font-size: 16px;
  color: #ffffff;
  font-weight: 400;
  margin-bottom: 16px;
  padding: 16px 40px 16px 48px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.event-cta-message::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgb(245, 200, 133), #ffd700);
}

.event-cta-message::after {
  content: "✨";
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.8;
}

/* Welcome Section (Left Panel Default) */
.welcome-section {
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.welcome-content {
  animation: fadeInUp 0.8s ease forwards;
}

.luna-branding {
  margin-bottom: 60px;
}

.brand-icon {
  font-size: 80px;
  margin-bottom: 24px;
  animation: pulse 2s infinite;
}

/* Logo image (used in invitation and branding) */
.logo-image {
  /* Render at 80% of its container width for a slightly smaller logo
     while keeping it responsive. Use height:auto so aspect ratio is preserved. */
  width: 80%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
}

.brand-title {
  font-size: 42px;
  font-weight: 100;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #ffffff, rgb(245, 200, 133));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  line-height: 1.6;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.feature-icon {
  font-size: 20px;
  color: rgb(245, 200, 133);
  min-width: 24px;
}

/* Form Card */
.form-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin: 0 40px 40px 40px;
}

/* Small section headers within steps */
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 12px 0;
}
.section-title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-icon {
  font-size: 18px;
  color: rgb(245, 200, 133);
}
.section-title-sm {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}
.section-chip {
  background: rgba(255, 255, 255, 0.1);
  color: #ddd;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.helper-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-top: 8px;
}
.helper-text.subtle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}
.helper-text.center {
  text-align: center;
}

/* Form Steps */
.form-step {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Step Header */
.step-header {
  text-align: center;
  margin-bottom: 40px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgb(245, 200, 133);
  color: #000000;
  border-radius: 50%;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.step-title {
  font-size: 28px;
  font-weight: 200;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.step-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

/* Form Fields */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-group,
.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 300;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: rgb(245, 200, 133);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-input:not(:placeholder-shown) {
  border-color: rgba(212, 175, 55, 0.3);
}

/* Floating Labels */
.floating-label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  pointer-events: none;
  transition: all 0.3s ease;
  background: transparent;
  padding: 0 4px;
}

.form-input:focus + .floating-label,
.form-input:not(:placeholder-shown) + .floating-label {
  transform: translateY(-32px) scale(0.85);
  color: rgb(245, 200, 133);
  background: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  pointer-events: none;
  transition: color 0.3s ease;
}

.form-input:focus + .input-icon,
.form-input:not(:placeholder-shown) + .input-icon {
  color: rgb(245, 200, 133);
}

.form-input.with-icon {
  padding-left: 50px;
}

/* Select Dropdown */
.select-wrapper {
  position: relative;
}

.form-select {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 300;
  cursor: pointer;
  appearance: none;
  transition: all 0.3s ease;
  outline: none;
}

.form-select:focus {
  border-color: rgb(245, 200, 133);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  pointer-events: none;
  transition: color 0.3s ease;
}

.form-select:focus + .select-arrow {
  color: rgb(245, 200, 133);
}

/* Photo Upload Section */
.photo-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 16px;
  margin: 0 auto 20px auto;
  align-items: stretch;
  max-width: 540px; /* further reduced scale on wide screens */
}

.photo-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%; /* match the height of the left primary tile */
}

.photo-column .photo-slot {
  flex: 1 1 0;
  aspect-ratio: auto; /* let height be driven by flex split */
  min-height: 0;
}

.photo-slot {
  aspect-ratio: 3/4;
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.photo-slot.primary {
  grid-column: 1 / 2;
  aspect-ratio: 3/4;
}

.photo-slot:hover {
  border-color: rgba(245, 200, 133, 0.8);
  background: rgba(212, 175, 55, 0.08);
}

.photo-slot.has-image {
  border-color: rgb(245, 200, 133);
  border-style: solid;
  padding: 0;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* Summary photo grid should be read-only */
.summary-photo-grid .photo-slot {
  cursor: default;
}
.summary-photo-grid .photo-slot:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.photo-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

.photo-placeholder i {
  font-size: 28px; /* slightly smaller placeholder icon */
  margin-bottom: 8px;
  display: block;
}

.photo-placeholder span {
  font-size: 12px; /* slightly smaller helper text */
  font-weight: 500;
}

.photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.photo-remove:hover {
  background: rgba(255, 0, 0, 0.8);
}

.photo-primary-badge,
.photo-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgb(245, 200, 133);
  color: #000000;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.photo-placeholder-icon,
.photo-placeholder-text {
  display: block;
  text-align: center;
}

/* Textarea */
.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 300;
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s ease;
  outline: none;
}

.form-textarea:focus {
  border-color: rgb(245, 200, 133);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.char-counter {
  text-align: right;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.char-counter.valid {
  color: rgb(245, 200, 133);
}

/* Bio step UI */
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 200, 133, 0.4);
  border-radius: 14px;
  background: rgba(245, 200, 133, 0.08);
  color: rgb(245, 200, 133);
  margin-bottom: 20px;
}
.info-icon {
  line-height: 1;
  display: inline-flex;
}
.info-text {
  color: rgb(245, 200, 133);
  font-size: 14px;
}

.field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 10px 0;
}
.field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #ffffff;
}
.field-icon {
  color: rgb(245, 200, 133);
  display: inline-flex;
}
.counter-pill {
  background: rgba(245, 200, 133, 0.15);
  color: rgb(245, 200, 133);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.form-textarea.bio {
  border-radius: 22px;
  padding: 18px 20px;
  min-height: 140px;
}

/* Professional section custom layout */
.professional-group .occupation-full .form-input {
  border-radius: 24px;
  padding: 18px 22px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.prof-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.prof-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.prof-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.prof-card-field .form-input.small,
.prof-card-field .form-select.small {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  padding: 10px 12px;
  font-size: 15px;
  color: #fff;
  border-radius: 12px;
}

.prof-card-field .form-input.small:focus,
.prof-card-field .form-select.small:focus {
  outline: none;
  box-shadow: none;
}

/* ensure select arrow visible for small select inside card */
.prof-card .select-arrow {
  right: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.requirement {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
}
.requirement .req-icon {
  color: rgb(245, 200, 133);
  display: inline-flex;
}
.requirement.met {
  color: rgb(245, 200, 133);
}

/* Invite step */
.invite-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.invite-counter {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Friend Entry Form */
.friend-entry-form {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 16px;
}
.phone-input-row {
  display: flex;
  gap: 12px;
  margin: 12px 0;
}
.country-code {
  flex: 0 0 140px;
}
.phone-number {
  flex: 1;
}
.friends-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.friend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}
.friend-info {
  display: flex;
  flex-direction: column;
}
.friend-name {
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.friend-phone {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.remove-friend {
  background: rgba(255, 0, 0, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.remove-friend:hover {
  background: rgba(255, 0, 0, 0.3);
}
.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}
.contact-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: rgb(245, 200, 133);
}
.contact-name {
  font-weight: 600;
  color: #fff;
}
.contact-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.contact-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  position: relative;
  cursor: pointer;
}
.contact-item.selected .contact-check {
  border-color: rgb(245, 200, 133);
  background: rgb(245, 200, 133);
}

/* Summary */
.summary-content {
  display: grid;
  gap: 16px;
}
.summary-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 16px;
}
.summary-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.summary-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}
.summary-value {
  color: #fff;
  font-weight: 600;
}

.summary-empty {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}

.friends-summary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.friend-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: background-color 0.2s ease;
}

.friend-summary-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.friend-summary-info {
  flex: 1;
}

.friend-summary-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 2px;
}

.friend-summary-phone {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.friend-summary-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(108, 99, 255, 0.2);
  color: #6c63ff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

/* Date Picker */
.date-picker-wrapper {
  position: relative;
}

.form-date {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.form-date:focus {
  border-color: rgb(245, 200, 133);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Location Search */
.location-search-container {
  position: relative;
}

.location-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 0 0 16px 16px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.location-suggestions.show {
  display: block;
}

.location-suggestion {
  padding: 12px 20px;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.location-suggestion:hover {
  background: rgba(212, 175, 55, 0.2);
  color: rgb(245, 200, 133);
}

.location-suggestion:last-child {
  border-bottom: none;
}

.location-suggestion .location-name {
  font-weight: 500;
  margin-bottom: 4px;
  color: #ffffff;
}

.location-suggestion .location-details {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.location-suggestion:hover .location-name {
  color: rgb(245, 200, 133);
}

/* Continue Button */
.continue-section {
  margin-top: 60px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards 0.7s;
}

.continue-button {
  width: 100%;
  max-width: 300px;
  padding: 18px 32px;
  background: rgb(245, 200, 133);
  border: none;
  border-radius: 16px;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.continue-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
}

.continue-button:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.continue-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}

.continue-button:hover::before {
  left: 100%;
}

.terms-text {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-buttons {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: space-between;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  outline: none;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  /* Primary button color set to requested RGB. Use solid color for consistency. */
  background: rgb(245, 200, 133);
  color: #000000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
}

.btn-primary:disabled {
  background: #9ca3af;
  color: #6b7280;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 40px;
  font-size: 18px;
}

/* Validation Messages */
.validation-message {
  margin-top: 8px;
  font-size: 12px;
  color: #ff6b6b;
  display: none;
}

.validation-message.show {
  display: block;
}

.validation-message.valid {
  color: rgb(245, 200, 133);
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.modal.show {
  display: flex;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.95),
    rgba(42, 42, 42, 0.95)
  );
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 24px;
  font-weight: bold;
  line-height: 1;
}

.modal-icon.success {
  /* keep success circle for visual emphasis */
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgb(245, 200, 133);
  color: #000000;
  display: flex; /* ensure centering */
}

.modal-icon.error {
  /* Remove red circular background — show the ⚠️ glyph plainly */
  background: transparent;
  color: #ff6b6b; /* use red color for the glyph itself */
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline-flex;
}

.modal-title {
  font-size: 28px;
  font-weight: 200;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.modal-message {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Event Invitation Styles (Left Panel) */
.event-invitation {
  width: 100%;
  max-width: 500px;
  animation: fadeInUp 0.8s ease forwards;
}

.invitation-content {
  text-align: center;
}

.invitation-header {
  margin-bottom: 40px;
}

.invitation-icon {
  width: 100px;
  height: 100px;
  background: rgb(245, 200, 133);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #000000;
  margin: 0 auto 24px;
  animation: pulse 2s infinite;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
}

.invitation-title {
  font-size: 36px;
  font-weight: 100;
  color: #ffffff;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff, rgb(245, 200, 133));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.event-details {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(10px);
}

.event-name {
  font-size: 24px;
  font-weight: 600;
  color: rgb(245, 200, 133);
  margin-bottom: 16px;
  text-align: center;
}

.event-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  line-height: 1.7;
  font-size: 16px;
  text-align: center;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.detail-icon {
  font-size: 18px;
  color: rgb(245, 200, 133);
  min-width: 24px;
  text-align: center;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Event Media Styles */
.event-media {
  width: 100%;
  max-width: 500px;
  margin-bottom: 40px;
}

.media-container {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.event-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
}

/* Inline framed thumbnails shown directly above the event title */
.event-inline-images {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center; /* center the thumbnails */
  margin-bottom: 14px;
  max-width: 340px; /* keep group compact and centered */
  margin-left: auto;
  margin-right: auto;
}
.event-inline-images .event-thumb {
  width: 88px; /* slightly larger */
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px; /* inner padding to create a small framed feel */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.04)
  );
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.event-inline-images .event-thumb:hover {
  transform: translateY(-2px);
  transition: transform 0.18s ease;
}

/* Carousel (single-image swipeable) */
.event-carousel {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 14px auto;
}
.carousel-track-container {
  overflow: hidden;
  width: 100%;
}
.carousel-track {
  display: flex;
  list-style: none;
  transition: transform 0.35s ease;
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-carousel-image {
  width: 100%;
  max-width: 420px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}
.carousel-btn:active {
  transform: translateY(-50%) scale(0.98);
}
.carousel-btn:focus {
  outline: 2px solid rgba(245, 200, 133, 0.6);
}

@media (max-width: 768px) {
  .event-carousel {
    max-width: 300px;
  }
  .event-carousel-image {
    height: 180px;
  }
  .carousel-btn {
    padding: 8px 10px;
    font-size: 20px;
  }
}

/* specific left/right positions */
.carousel-btn-left {
  left: 8px;
}
.carousel-btn-right {
  right: 8px;
}

@media (max-width: 768px) {
  .event-inline-images {
    max-width: 260px;
  }
  .event-inline-images .event-thumb {
    width: 64px;
    height: 64px;
    border-radius: 6px;
  }
}

.event-image {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-image:hover img {
  transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .split-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .left-panel {
    min-height: 50vh;
    order: 1;
  }

  .right-panel {
    order: 2;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .event-showcase {
    padding: 32px 20px;
    min-height: 50vh;
  }

  .form-container {
    padding: 32px 20px;
  }

  .brand-title {
    font-size: 32px;
  }

  .invitation-title {
    font-size: 28px;
  }

  .invitation-icon {
    width: 80px;
    height: 80px;
    font-size: 36px;
    padding: 6px;
  }
}

@media (max-width: 768px) {
  /* Mobile full-screen left panel by default */
  body {
    overflow-x: hidden;
  }

  .split-layout {
    display: block;
    padding-top: 76px; /* room for slimmer header on mobile */
  }

  .left-panel,
  .right-panel {
    width: 100%;
  }

  .left-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 76px; /* room for slimmer header */
    overflow-y: auto;
    z-index: 900; /* below header (1000) */
    transform: translateX(0);
    transition: transform 0.35s ease;
  }

  .right-panel {
    position: fixed;
    top: 0;
    left: 100%;
    right: -100%;
    bottom: 0;
    padding-top: 76px; /* room for slimmer header */
    overflow-y: auto;
    z-index: 950;
    transition: transform 0.35s ease;
    transform: translateX(0);
  }

  /* When form is open on mobile, slide left panel out and right panel in */
  body.mobile-form-open .left-panel {
    transform: translateX(-100%);
  }

  body.mobile-form-open .right-panel {
    transform: translateX(-100%);
  }

  /* Mobile-only helper */
  .mobile-only {
    display: block;
  }

  /* Mobile CTA pinned near bottom of left panel */
  .mobile-cta {
    position: sticky;
    bottom: 24px;
    width: 100%;
    max-width: 500px;
    margin: 24px auto 0 auto;
    padding: 0 16px;
  }

  .mobile-cta .btn {
    width: 100%;
  }

  /* Back button in form header on mobile */
  .form-header {
    position: relative;
    padding-top: 8px;
  }
  #mobileBackBtn.back-btn {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1;
    min-width: auto;
    height: auto;
    width: auto; /* override mobile .btn { width:100% } */
    white-space: nowrap;
  }

  .header-content {
    padding: 20px 20px;
    flex-direction: column;
    gap: 16px;
    min-height: 88px; /* slim header on mobile */
  }

  /* Slim down the header itself on small screens */
  .header {
    background: rgba(0, 0, 0, 0.92);
    border-bottom-width: 1px;
  }

  /* Reduce overall padding inside header to make it feel thinner */
  .header-content {
    padding: 12px 16px;
  }

  .progress-wrapper {
    margin-left: 0;
    max-width: 100%;
  }

  .logo {
    font-size: 24px;
    letter-spacing: 2px;
  }

  /* On small screens restore normal flow so logo sits with other header items */
  .header .logo {
    position: static;
    transform: none;
    z-index: auto;
  }

  .split-layout {
    padding-top: 76px;
  }

  .event-showcase {
    padding: 24px 16px;
  }

  .form-container {
    padding: 24px 0;
  }

  .form-card {
    padding: 24px;
    margin: 0 16px 40px 16px;
  }

  .event-cta-message {
    font-size: 14px;
    padding: 14px 32px 14px 40px;
    margin-bottom: 12px;
  }

  .event-cta-message::after {
    font-size: 12px;
    left: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Keep friend name fields side by side in mobile */
  .friend-entry-form .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .photo-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
  }
  .photo-column {
    gap: 12px;
  }
  .photo-column .photo-slot {
    flex: 1 1 0;
  }
  .photo-slot.primary {
    aspect-ratio: 3/4;
  }

  .brand-title {
    font-size: 28px;
  }

  .brand-icon {
    font-size: 60px;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .step-title {
    font-size: 24px;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .form-input,
  .form-select,
  .form-textarea,
  .form-date {
    padding: 14px 16px;
    font-size: 16px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 14px;
  }

  .form-navigation {
    flex-direction: column;
    gap: 16px;
  }

  .nav-buttons {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
  }

  .invitation-title {
    font-size: 24px;
  }

  .event-name {
    font-size: 20px;
  }

  .event-details {
    padding: 24px;
  }
}

/* Desktop/tablet: hide mobile-only elements by default */
@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

/* Wheel-style birthday selects */
.wheel-row {
  gap: 12px;
}
.wheel-row .select-wrapper {
  flex: 1;
}
.wheel-row .select-wrapper:nth-child(1) {
  flex: 1.2; /* Month slightly wider */
}
.wheel-row .select-wrapper:nth-child(2) {
  flex: 0.8; /* Day narrower */
}
.wheel-row .select-wrapper:nth-child(3) {
  flex: 1; /* Year */
}

/* Animated Birthday Spinner */
.spinner-birthday {
  margin-top: 8px;
  margin-bottom: 8px;
}

.spinner-columns {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.spinner-column {
  height: 180px; /* visible area */
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  position: relative;
  scrollbar-width: none; /* Firefox */
}
.spinner-column::-webkit-scrollbar {
  display: none;
}

.spinner-item {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  color: rgba(255, 255, 255, 0.75);
  transition: transform 0.12s ease, color 0.12s ease;
  font-size: 16px;
}
.spinner-item.active {
  transform: scale(1.08);
  color: #fff;
  font-weight: 600;
}

.spinner-padding {
  height: 72px;
  flex: 0 0 72px;
}

.spinner-highlight {
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(50% - 18px);
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(245, 200, 133, 0.35);
  box-shadow: inset 0 0 0 1px rgba(245, 200, 133, 0.15),
    0 0 0 0 rgba(0, 0, 0, 0);
  pointer-events: none;
}

/* edge mask gradient to soft fade top/bottom */
.spinner-columns::before,
.spinner-columns::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  pointer-events: none;
  z-index: 1;
}
.spinner-columns::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
}
.spinner-columns::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
}

/* =======================
   OTP Screen Styles
   ======================= */
.otp-screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.otp-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(1.1);
}

.otp-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.65) 60%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.otp-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  padding: 32px;
  background: rgba(18, 18, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  color: #fff;
}

.otp-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.otp-logo img {
  width: 64px;
  height: 64px;
}

.otp-title {
  margin: 8px 0 4px 0;
  font-size: 28px;
  line-height: 1.2;
  text-align: center;
}
.otp-subtitle {
  margin: 0 0 20px 0;
  font-size: 14px;
  opacity: 0.9;
  text-align: center;
}

.otp-label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  opacity: 0.9;
}
.otp-phone-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.otp-code-inputs {
  display: grid;
  grid-template-columns: repeat(6, 40px);
  gap: 10px;
  margin-bottom: 16px;
  justify-content: center;
}
.otp-digit {
  height: 48px;
  text-align: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 10px;
}

.recaptcha-holder {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.06);
  /* padding: 8px 12px; */
  /* border-radius: 8px;   */
  /* reserve more vertical space so the visible widget/bubble fits comfortably */
  /* min-height: 84px; */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4; /* above overlay but below the main content's highest layers */
}

/* If the visible reCAPTCHA (g-recaptcha) is rendered inside the container,
   center it and ensure it scales down on small screens. */
.recaptcha-holder .g-recaptcha {
  display: inline-block;
  margin: 0 auto;
  transform-origin: top center;
}

@media (max-width: 480px) {
  .recaptcha-holder {
    min-height: 72px;
    padding: 6px 8px;
  }
  .recaptcha-holder .g-recaptcha {
    transform: scale(0.92);
  }
}

/* The Google badge is rendered as a fixed element by the grecaptcha script.
   Increase its z-index and nudge it further away from the OTP card to avoid overlap.
   Keep smaller offsets on narrow screens. */
.grecaptcha-badge {
  position: fixed !important;
  /* move the badge slightly down and left relative to bottom-right corner */
  transform: translateY(-8px) translateX(-100px) !important;
  right: 28px !important; /* base anchor still right, but transform shifts it further left */
  bottom: -480px !important; /* increased bottom to push badge lower on the page */
  z-index: 99999 !important;
}

@media (max-width: 768px) {
  .grecaptcha-badge {
    transform: translateY(-6px) translateX(-64px) !important;
    right: 78px !important; /* base anchor still right, but transform shifts it further left */
    bottom: -480px !important; /* increased bottom to push badge lower on the page */
    z-index: 99999 !important;
  }
}

.otp-content .btn {
  width: 100%;
}
.otp-content .btn + .btn {
  margin-top: 10px;
}

.otp-content .validation-message {
  color: #ffb4b4;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .otp-screen {
    height: 100%;
  }
  .otp-content {
    padding: 20px;
    max-width: 560px;
    margin: 0 12px;
  }
  .otp-phone-row {
    grid-template-columns: 110px 1fr;
  }
}
