/* Style sheet for BGHSS - Kottur Reunion Registration Form */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  --bg-dark: #f0f9ff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --primary-rgb: 2, 132, 199;
  --primary: rgb(var(--primary-rgb));
  --primary-hover: #0369a1;
  --primary-light: rgba(var(--primary-rgb), 0.1);
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: rgba(2, 132, 199, 0.15);
  --border-focus: rgba(var(--primary-rgb), 0.5);
  --success: #059669;
  --error: #dc2626;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(2, 132, 199, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  background-image: linear-gradient(135deg, rgba(240, 249, 255, 0.95) 0%, rgba(224, 242, 254, 0.9) 100%), url('reunion_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 2rem 1rem;
}

body::before, body::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(150px);
  opacity: 0.06;
  z-index: -1;
}

body::before {
  top: 10%;
  left: 10%;
}

body::after {
  bottom: 10%;
  right: 10%;
}

.container {
  width: 100%;
  max-width: 780px;
  z-index: 1;
}

.header-brand {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease-out;
}

.header-brand h1 {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #0f172a, var(--primary), #0f172a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.header-brand p {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(2, 132, 199, 0.05);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

.step-container {
  display: none;
}

.step-container.active {
  display: block;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

h2 i {
  color: var(--primary);
}

.subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  letter-spacing: 0.3px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 1.1rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.form-control:focus + i {
  color: var(--primary);
}

select.form-control {
  appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
}

.select-wrapper::after {
  content: '▼';
  font-size: 0.75rem;
  color: var(--text-muted);
  position: absolute;
  right: 1.25rem;
  pointer-events: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .radio-group {
    grid-template-columns: 1fr;
  }
}

.radio-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
  gap: 0.35rem;
}

.radio-card-content i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.radio-card input:checked + .radio-card-content {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.radio-card input:checked + .radio-card-content i {
  color: var(--primary);
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 0;
}

.checkbox-wrapper input {
  display: none;
}

.checkmark {
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  position: relative;
  transition: var(--transition);
}

.checkbox-wrapper input:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.checkmark::after {
  content: '';
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-wrapper input:checked + .checkmark::after {
  display: block;
}

#plusOneDetails {
  display: none;
  margin-top: 1rem;
  padding: 1.25rem;
  background: rgba(2, 132, 199, 0.02);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  animation: fadeIn 0.4s ease-out;
}

.otp-input-container {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.otp-box {
  width: 100%;
  height: 3.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: var(--transition);
}

.otp-box:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.otp-timer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.resend-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.resend-btn:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  gap: 0.5rem;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  margin-top: 1rem;
}

.btn-secondary:hover {
  background: #ffffff;
}

.btn-info {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(3, 105, 161, 0.25) !important;
}

.btn-info:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(3, 105, 161, 0.35) !important;
}

.btn-info:active {
  transform: translateY(0) !important;
}

.btn-success-gradient {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.25) !important;
}

.btn-success-gradient:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.35) !important;
}

.btn-success-gradient:active {
  transform: translateY(0) !important;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25) !important;
}

.btn-whatsapp:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35) !important;
}

.btn-whatsapp:active {
  transform: translateY(0) !important;
}

.ticket-wrapper {
  perspective: 1000px;
  margin: 2rem 0;
}

.ticket {
  background: radial-gradient(circle at 0% 50%, transparent 12px, rgba(2, 132, 199, 0.1) 13px),
              radial-gradient(circle at 100% 50%, transparent 12px, rgba(2, 132, 199, 0.1) 13px);
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(2, 132, 199, 0.15);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ticket::before {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  top: 55%;
  border-bottom: 2px dashed rgba(2, 132, 199, 0.15);
}

.ticket-header {
  margin-bottom: 2.5rem;
}

.ticket-school {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.ticket-title {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.ticket-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.ticket-details {
  width: 100%;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.ticket-info-group label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.ticket-info-group p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.directory-controls {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 480px) {
  .directory-controls {
    grid-template-columns: 1fr;
  }
}

.classmate-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.classmate-list::-webkit-scrollbar {
  width: 6px;
}

.classmate-list::-webkit-scrollbar-track {
  background: rgba(2, 132, 199, 0.02);
}

.classmate-list::-webkit-scrollbar-thumb {
  background: rgba(2, 132, 199, 0.15);
  border-radius: 4px;
}

.classmate-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.classmate-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.classmate-card:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(4px);
}

.classmate-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.classmate-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.classmate-meta h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.classmate-meta p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.classmate-batch {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: rgba(2, 132, 199, 0.2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.invalid-feedback {
  color: var(--error);
  font-size: 0.75rem;
  margin-top: 0.35rem;
  display: none;
}

.form-control.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.form-control.is-invalid + i {
  color: var(--error);
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #ffffff;
  border: 1px solid rgba(2, 132, 199, 0.15);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success i {
  color: var(--success);
}

.toast-error i {
  color: var(--error);
}

/* @media print Styles for Reunion Pass */
@media print {
  body {
    background: none !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  body > * {
    display: none !important;
  }
  
  body > .container,
  .container > .card,
  .card > #section-register,
  #section-register > #step-success,
  #step-success > .ticket-wrapper,
  .ticket-wrapper > #print-ticket-area {
    display: block !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    backdrop-filter: none !important;
  }

  .ticket {
    display: flex !important;
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 12px !important;
    padding: 2.5rem !important;
    color: #000000 !important;
    box-shadow: none !important;
    margin: 2rem auto !important;
    max-width: 550px !important;
    position: relative !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .ticket::before {
    border-bottom: 2px dashed #000000 !important;
    top: 52% !important;
  }

  .ticket-header {
    margin-bottom: 2rem !important;
    text-align: center !important;
  }

  .ticket-school {
    color: #000000 !important;
    font-size: 1.6rem !important;
    font-weight: bold !important;
  }

  .ticket-title {
    color: #111111 !important;
    font-size: 1.4rem !important;
    margin-top: 0.25rem !important;
  }

  .ticket-subtitle {
    color: #444444 !important;
    font-size: 0.8rem !important;
    letter-spacing: 1px !important;
  }

  .ticket-details {
    width: 100% !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  .ticket-info-group label {
    color: #555555 !important;
    font-size: 0.75rem !important;
    font-weight: bold !important;
  }

  .ticket-info-group p {
    color: #000000 !important;
    font-size: 1rem !important;
  }

  #ticket-id {
    color: #000000 !important;
    font-weight: bold !important;
  }

  .subtitle, .tabs, .header-brand, .btn, .toast, #btn-print-pass, #btn-view-directory, #btn-register-new {
    display: none !important;
  }
}
