/*------------ G Font Poppins ------------*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ------- Reset Styles ----------- */
*,
::after,
::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* ------ Css Variables ---------- */
:root {
  --primary: #447ca9;
  --secondary: #105891;
  --step-bg: #eee9f6;
  --line-color: #e7e1ee;
  --white: #fff;
  --bg: #447ca9;
  --shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.33);
}

/* ------- Body Styles ----------- */
body {
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  background-color: var(--bg);
}

/* ----------- Signup Styles --------- */
#signUpCard,
#loginCard {
  width: 100%;
  max-width: 350px;
  height: auto;
  background-color: var(--white);
}

#response-message,
#alert-msg-student,
#workshops_wrapper1,
#optional-workshop-text,
#mandatory-workshop-text {
  display: none;
}

#visibility-toggle,
#visibility-toggle1 {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: large;
  cursor: pointer;
}

.form-group small {
  font-size: 14px;
}

/* Hide Input Type Number Browser style */
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* -------- custom button styles ---------- */
.custom-primary {
  background-color: var(--primary);
  color: var(--white);
  transition: background-color 0.4s ease;
}

/* hover */
.custom-primary:hover {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow);
}

/* -------- Steps card Style --------- */
#stepsCard {
  width: 100%;
  max-width: 900px;
  background: var(--white);
}
.steps-timeline-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px 15px;
}

/* ==============================
   STEP
================================ */

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;

  position: relative;

  color: var(--secondary);
  font-weight: 600;
  font-size: 15px;

  transition: 0.3s ease;
}

/* ==============================
   NUMBER CIRCLE
================================ */

.step-number {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 50%;

  background: var(--step-bg);
  color: var(--secondary);

  font-size: 14px;
  font-weight: 700;

  transition: all 0.3s ease;
}

/* ==============================
   LABEL
================================ */

.step-label {
  white-space: nowrap;
}

/* ==============================
   CONNECTING LINE
================================ */

.step-line {
  width: 50px;
  height: 2px;

  margin: 0 18px;

  background: var(--line-color);
}

/* ==============================
   ACTIVE STEP
================================ */

.step-item.active {
  color: var(--primary);
}

.step-item.active .step-number {
  background: var(--primary);
  color: #fff;

  box-shadow:
    0 5px 12px rgba(84, 37, 143, 0.3),
    0 0 16px rgba(84, 37, 143, 0.2);
}

.step-line.completed {
  background: var(--primary);
}

/* Bottom active indicator */
.step-item.active::after {
  content: '';

  position: absolute;

  left: -18px;
  right: -18px;
  bottom: -22px;

  height: 2px;

  background: var(--primary);
}

/* ==============================
   COMPLETED
================================ */

.step-item.completed {
  color: var(--primary);
}

.step-item.completed .step-number {
  background: var(--primary);
  color: #fff;
}

/* ==============================
   MOBILE
================================ */

@media (max-width: 576px) {
  .steps-timeline-wrapper {
    padding-inline: 5px;
    display: none;
  }

  .step-item {
    gap: 6px;
    font-size: 12px;
  }

  .step-number {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .step-line {
    width: 20px;
    margin: 0 8px;
  }

  .step-item.active::after {
    bottom: -22px;
  }
}

/* ==============================
   Step2 Styles
================================ */
#membership_number_wrapper,
#area_speciality_wrapper,
#workshops_wrapper,
#accompanying-module {
  display: none;
}

/* ==============================
   Workshop Styles
================================ */
.workshop-option {
  display: block;
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.workshop-option:hover {
  border-color: #0d6efd;
  background: #f8f9fa;
}

.workshop-checkbox {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
}

.workshop-name {
  font-weight: 500;
  font-size: 15px;
}

.workshop-price {
  font-size: 14px;
  color: #6c757d;
  margin-top: 2px;
}

.workshop-option .badge {
  white-space: nowrap;
  margin-left: 10px;
}

.workshop-disabled {
  cursor: not-allowed;
  opacity: 0.7;
  background: #f8f9fa;
}

.workshop-disabled:hover {
  border-color: #dee2e6;
  background: #f8f9fa;
}

/* ==============================
   Accomdation Styles
================================ */
.accommodation-option {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.accommodation-option:hover {
  border-color: #0d6efd;
}

.accommodation-option:has(.accommodation-radio:checked) {
  border-color: #0d6efd;
}

.accommodation-radio {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.accom-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #212529;
}

.accom-price {
  margin-top: 3px;
  font-size: 16px;
  color: #6c757d;
}

.table th[scope='row'] {
  width: 250px; /* Ensures all left columns share the exact same width */
  white-space: nowrap; /* Keeps labels from breaking awkwardly */
}
.fade:not(.show) {
  opacity: 0;
  display: none;
}

/* ========= Coupon ============ */
#coupon-wrapper {
  display: none;
}

/* ========= User Dashboard ============ */
.table-wrapper {
  max-width: 1024px;
}

/*========= RESET PASSWORD UI ============*/
/* Container Spacing */
.error_message,
.success_message {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* Base Alert Styling */
.error_message,
.success_message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  border-radius: 8px;
  font-size: 0.925rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  animation: fadeIn 0.3s ease-in-out;
}

/* Premium Error Alert */
.error_message {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
}

.error_message::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-color: #dc2626;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E")
    no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E")
    no-repeat center / contain;
}

/* Premium Success Alert */
.success_message {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
}

.success_message::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-color: #16a34a;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E")
    no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E")
    no-repeat center / contain;
}

/* Smooth Entrance Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
