/* =========================
   Reset
========================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
img { max-width: 100%; height: auto; display: block; }

/* =========================
   Registration Modal
========================= */

/* Overlay */
.modal {
  display: none;  /* keep it hidden */
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Modal container with animated gradient frame */
.modal-content {
  background: linear-gradient(135deg, #5c0dac, #2c058d, #d946ef, #ffb000);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  padding: 6px;              /* thickness of gradient frame */
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 0 25px rgba(92, 13, 172, 0.5);
  position: relative;
  animation: fadeIn 0.3s ease;
}

/* Inner white form card */
.form-card {
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  width: 100%;
}

/* Modal fade in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Gradient animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =========================
   Modal Close Button
========================= */
.close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #444;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.close:hover {
  background: #e5e7eb;
  color: #000;
}

/* =========================
   Form Elements
========================= */
.form-card h2 {
  font-size: 1.5em;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  color: #2c058d;
  letter-spacing: 0.5px;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95em;
  box-sizing: border-box;
  font-family: inherit;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: #5c0dac;
  box-shadow: 0 0 0 3px rgba(92, 13, 172, 0.1);
}



/* Divider */
.divider {
  height: 1px;
  background: #eee;
  margin: 20px 0;
}


/* =========================
   Buttons
========================= */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #2c89ff, #385cff);
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d6fe2, #2549d7);
}

/* =========================
   Phone Input (intl-tel-input)
========================= */
.iti {
  width: 100%;
  margin-bottom: 16px; /* gap below phone field */
}
.iti input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.95em;
}

.phone-group {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #fff;
}

.phone-prefix {
  display: flex;
  align-items: center;
  background: #f9fafb;
  padding: 0 10px;
  gap: 6px;
  border-right: 1px solid #ddd;
}

.phone-prefix img {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  aspect-ratio: auto 24 /24;
}

.phone-prefix .country-code {
  font-size: 0.95em;
  font-weight: 500;
  color: #333;
}

#phone {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 0.95em;
  outline: none;
}

#successModal > .modal-content{
  max-width: 400px;
  width: 90%;
  padding: 0;
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
  z-index: 0;
}

#successModal > .modal-content > .form-card{
  text-align: center;
  position: relative;
  overflow: hidden;
  background: none;
  padding: 40px 28px 28px 28px;
}

#successModal > .modal-content > .form-card::before {
  content: "";
  position: absolute;
  inset: 0;
}

#participantName{
  text-transform: uppercase;
}



.modal-boarding {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px 0;

}

.ticket-shape {
  position: relative;
  width: 340px;
  height: 70vh;
  margin: auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    #0073cf 0 10%,   /* Sky Blue top */
    #f5c518 10% 25%, /* Golden Yellow band */
    #f3f4f6 25% 100% /* White body */
  );

  border-radius: 10px 10px 0 0;

  /* ✅ Mask with side notches + shifted bottom scallops */
  -webkit-mask:
    linear-gradient(#000 0 0), /* base */
    radial-gradient(circle 20px at 0 65%, transparent 99%, black 100%),   /* left notch */
    radial-gradient(circle 20px at 100% 65%, transparent 99%, black 100%),/* right notch */
    radial-gradient(10px at 50% 100%, #0000 100%, #000) 0 100% / 23px 100%;  
    -webkit-mask-composite: destination-out, destination-out, destination-out;
  -webkit-mask-repeat: no-repeat, no-repeat, no-repeat, repeat-x;
  -webkit-mask-position: 0 0, 0 0, 0 0, 0 100%;
  -webkit-mask-size: auto, auto, auto, 20px 20px;

  mask:
    linear-gradient(#000 0 0),
    radial-gradient(circle 20px at 0 65%, transparent 99%, black 100%),
    radial-gradient(circle 20px at 100% 65%, transparent 99%, black 100%),
    radial-gradient(10px at 50% 100%, #0000 100%, #000) 0 100% / 23px 100%;  
    mask-composite: intersect;
}


    .ticket-header {
      position: absolute;
      top: 2%;
      width: 100%;
      text-align: center;
      font-family: 'Poppins', sans-serif;
      font-weight: 700;
      font-size: 20px;
      color: #fff;
      letter-spacing: 5px;
      text-transform: uppercase;
    }

    .event-meta {
      position: absolute;
      top: 15%;
      width: 100%;
      text-align: center;
      font-weight: 600;
      letter-spacing: 0.6px;
      color: #3a2e00;
    }
    .event-meta .receipt {
      display: inline-block;
      font-size: 18px;
    }

    .ticket-info {
      position: absolute;
      top: 25%;
      left: 22px;
      right: 22px;
      text-align: center;
    }
    .ticket-info p {
      margin: 18px 0;
      font-size: 18px;
      font-weight: 600;
      color: #111;
    }
    .ticket-info strong {
      display: block;
      font-size: 12px;
      color: black;
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .ticket-footer {
      position: absolute;
      bottom: 10px;
      width: 100%;
      text-align: center;
      font-size: 13px;
      font-weight: 500;
      color: #444;
      letter-spacing: 1px;
    }

    #successModal .close {
      cursor: pointer;
      position: absolute;
      top: 12px;
      right: 16px;
      font-size: 1.6em;
      font-weight: bold;
      background: #f5c518;
      border: none;
      color: #444;
      z-index: 9999; /* ensure it’s above overlays */
  }
