/* Premium Modern Styling for Admission Application */
:root {
  --primary-color: #0f172a;
  --secondary-color: #3b82f6;
  --accent-color: #10b981;
  --danger-color: #ef4444;
  --bg-color: #f1f5f9;
  --card-bg: #ffffff;
  --text-main: #334155;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --focus-ring: rgba(59, 130, 246, 0.5);
}

body {
  background: var(--bg-color);
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  line-height: 1.6;
}

/* Header Styling */
.topheader {
  background: var(--card-bg);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  border-radius: 12px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.topheader h3 {
  color: var(--primary-color) !important;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.founder {
  color: var(--text-light) !important;
  font-weight: 500;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.founder::before, .founder::after {
  content: "";
  height: 1px;
  background: var(--border-color);
  flex-grow: 0.1;
}

/* Form Container */
#formLayout {
  background: var(--card-bg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  border: 1px solid var(--border-color);
}

form {
  padding: 0;
}

/* Form Headings and Sections */
#formTitle {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

#formTitle::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: var(--secondary-color);
}

#formTitle a {
  color: var(--secondary-color);
  transition: all 0.2s ease;
}

#formTitle a:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.ftitle {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 8px;
  padding: 0.75rem 1rem !important;
  margin-top: 2rem !important;
  margin-bottom: 1.5rem !important;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

/* Inputs and Labels */
label {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: inline-block;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

#formLayout .form-control, #formLayout .form-select {
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #f8fafc;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

#formLayout .form-control:focus, #formLayout .form-select:focus {
  border-color: var(--secondary-color);
  background-color: #fff;
  box-shadow: 0 0 0 4px var(--focus-ring);
  outline: none;
}

#formLayout .form-control::placeholder {
  color: #94a3b8;
}

/* Buttons */
.submitBtn {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.8rem 2.5rem;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submitBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  color: #ffffff;
}

.submitBtn:active {
  transform: translateY(0);
}

/* Checkbox */
.form-check-input {
  width: 1.25em;
  height: 1.25em;
  border: 2px solid var(--border-color);
  margin-top: 0.15em;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.agreeCheck {
  font-size: 1rem;
  font-weight: 500;
  margin-left: 0.5rem;
  cursor: pointer;
}

/* Alerts and Errors */
.text-danger {
  color: var(--danger-color) !important;
}

.fst-italic.text-danger {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

/* Toggled Sections */
#eHidden, #honoursDegree, #eHiddenEmployee, #other, #eHiddenKBAD, #eHiddenstudent, #eHiddenalumni, .paymentOption, .nursing_part {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Highlights */
#programs option[value="BSN"] {
  color: var(--secondary-color);
  font-weight: 700;
}

/* Footer */
#copyrightArea {
  background: var(--primary-color);
  color: #e2e8f0;
  padding: 2rem 1rem;
  border-radius: 12px 12px 0 0;
  margin-top: 3rem;
  box-shadow: 0 -10px 25px rgba(0,0,0,0.05);
}

#copyrightArea h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
}

#copyrightArea small {
  color: var(--accent-color);
}

#copyrightArea p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
  #formLayout {
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }
  
  .topheader h3 {
    font-size: 1.25rem;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .founder::before, .founder::after {
    display: none;
  }
  
  .ftitle {
    font-size: 1rem;
    text-align: center;
  }
  
  .submitBtn {
    padding: 1rem;
  }
}
