:root {
  --primary: #01B4ED;
  --secondary: #126277;
  --white: #FDFEFE;
  --light-gray: #CAD8D5;
  --dark: #000202;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Finlandica Text", sans-serif;
  background: var(--white);
  color: var(--dark);
}

.page-wrapper {
  width: 100%;
  min-height: 100%;
}

/* Header */
.admission-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  padding: 5px 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(1, 180, 237, 0.3);
}

.admission-header .logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.admission-header .logo-icon {
  width: 150px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admission-header .logo-icon i {
  font-size: 28px;
  color: var(--primary);
}

.admission-header h1 {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.admission-header .tagline {
  color: rgba(253,254,254,0.85);
  font-size: 0.9rem;
  margin-top: 4px;
  font-weight: 300;
}

/* Logo Image */
.logo-img {
    width: 120px;
    border-radius: 12px;
    padding: 5px;
}

/* Slider Section */
.slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Form Overlay */
.form-overlay {
  position: absolute;
  top: 50%;
  right: 60px;
  transform: translateY(-50%);
  width: 420px;
  max-width: 85%;
  background: rgba(253, 254, 254, 0.97);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 100;
  max-height: 480px;
  overflow-y: auto;
}

.form-overlay::-webkit-scrollbar {
  width: 5px;
}

.form-overlay::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.form-overlay .form-title {
  font-size: 23px;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 20px;
}

.form-group-custom {
  margin-bottom: 12px;
}

.form-group-custom label {
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 10px;
  display: block;
  letter-spacing: 1px;
}

.form-group-custom input,
.form-group-custom select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--light-gray);
  border-radius: 8px;
  font-size: 15px;
  letter-spacing: 1px;
  font-family: "Finlandica Text", sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--white);
}

.form-group-custom input:focus,
.form-group-custom select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1, 180, 237, 0.15);
}

.form-group-custom .error-msg {
  color: #e74c3c;
  font-size: 0.72rem;
  margin-top: 3px;
  display: none;
  font-weight: 500;
}

.form-group-custom .error-msg.show {
  display: block;
}

.form-group-custom input.is-invalid,
.form-group-custom select.is-invalid {
  border-color: #e74c3c;
}

/* College Selection */
.college-selection-area {
  margin-bottom: 12px;
}

.college-selection-area label {
  font-size: 15px;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

/* College Dropdown */
.college-dropdown-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.college-dropdown-btn {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--light-gray);
  border-radius: 8px;
  background: #f8fffe;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  font-family: "Finlandica Text", sans-serif;
}

.college-dropdown-btn:hover {
  border-color: var(--primary);
  background: rgba(1, 180, 237, 0.05);
}

.college-dropdown-btn:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1, 180, 237, 0.15);
}

.college-dropdown-btn.active {
  border-color: var(--primary);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: var(--white);
}

.college-dropdown-btn i {
  transition: transform 0.3s ease;
}

.college-dropdown-btn.active i {
  transform: rotate(180deg);
}

.college-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--primary);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 12px rgba(1, 180, 237, 0.2);
}

.college-dropdown-menu.active {
  display: block;
}

.college-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}

.college-dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.college-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.college-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  border-bottom: 1px solid #f0f0f0;
}

.college-item:last-child {
  border-bottom: none;
}

.college-item:hover {
  background: rgba(1, 180, 237, 0.08);
}

.college-item input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.college-item span {
  cursor: pointer;
  flex: 1;
}

.college-item.disabled-college {
  opacity: 0.5;
  pointer-events: none;
  background: #f9f9f9;
}

.max-selection-text {
  letter-spacing: 1px;
  font-size: 12px;
  color: #e74c3c;
  font-weight: 600;
  margin-top: 10px;
}

.college-error-msg {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 3px;
  display: none;
  letter-spacing: 1px;
  font-weight: 500;
}

.college-error-msg.show {
  display: block;
}

/* Captcha */
.captcha-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.captcha-box {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 4px;
  user-select: none;
  min-width: 100px;
  text-align: center;
}

.captcha-area input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--light-gray);
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: 1px;
  font-family: "Finlandica Text", sans-serif;
}

.captcha-area input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1, 180, 237, 0.15);
}

.captcha-refresh {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s;
}

.captcha-refresh:hover {
  background: rgba(1, 180, 237, 0.1);
}

.captcha-error-msg {
  color: #e74c3c;
  font-size: 0.72rem;
  margin-top: -8px;
  margin-bottom: 8px;
  display: none;
  font-weight: 500;
}

.captcha-error-msg.show {
  display: block;
}

/* Submit Button */
.btn-submit-form {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  font-family: "Finlandica Text", sans-serif;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(1, 180, 237, 0.4);
}

.btn-submit-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(1, 180, 237, 0.5);
}

/* Steps Section */
.steps-section {
  padding: 60px 0;
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 18px;
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 1px;
}

.step-card {
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: 16px;
  padding: 25px 15px;
  text-align: center;
  transition: all 0.3s;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(1, 180, 237, 0.15);
  border-color: var(--primary);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 14px;
}

.step-card h5 {
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 10px;
  font-size: 17px;
  letter-spacing: 1px;
}

.step-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  letter-spacing: 1px;
}

/* Instructions Section */
.instructions-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #f0f9fc 0%, var(--white) 100%);
}

.instruction-card {
  background: var(--white);
  border-radius: 14px;
  padding: 22px 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  height: 100%;
  transition: all 0.3s;
  border-left: 4px solid var(--primary);
}

.instruction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(1, 180, 237, 0.12);
}

.instruction-card .instr-icon {
  width: 50px;
  height: 50px;
  background: rgba(1, 180, 237, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.instruction-card .instr-icon i {
  color: var(--primary);
  font-size: 20px;
}

.instruction-card h6 {
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
  font-size: 16px;
  letter-spacing: 1px;
}

.instruction-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  letter-spacing: 1px;
}

/* Footer */
.admission-footer {
  background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
  padding: 40px 0;
  color: var(--white);
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgb(255 255 255);
}

.footer-brand {
  flex-shrink: 0;
}

.footer-logo-img {
  width: 200px;
  border-radius: 8px;
  padding: 10px;
  display: block;
  margin-bottom: 8px;
  border: 2px solid rgba(1, 180, 237, 0.3);
}



.footer-contact-wrapper {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 150px;
}

.footer-contact-item i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: capitalize;
  letter-spacing: 1px;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: var(--primary);
}

.footer-contact-item span {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  font-weight: 500;
}

.footer-bottom {
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: rgb(255 255 255);
  font-size: 18px;
  margin: 0;
  letter-spacing: 1px;
}

/* Footer Social Links (if used) */
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(1, 180, 237, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-right: 8px;
  transition: all 0.3s;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-contact-wrapper {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .footer-contact-item {
    min-width: auto;
  }
}

/* Success Message */
.form-success {
  display: none;
  text-align: center;
  padding: 20px;
}

.form-success i {
  font-size: 3rem;
  color: #27ae60;
  margin-bottom: 12px;
}

.form-success h4 {
  color: var(--secondary);
  font-weight: 700;
}

.form-success p {
  color: #666;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .slider-container {
    height: 400px;
  }

  .form-overlay {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 95%;
    max-width: 450px;
    margin: 20px auto;
    max-height: none;
  }

  .slide-content h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .slider-container {
    height: 300px;
  }

  .form-overlay {
    width: 90%;
    max-width: 95%;
  }
}

@media (max-width: 576px) {
  .slider-container {
    height: 214px;
  }

  .admission-header h1 {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .college-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    padding: 20px 16px;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(1, 180, 237, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  padding: 0;
}

.scroll-to-top:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 8px 24px rgba(1, 180, 237, 0.6);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.scroll-to-top:active {
  transform: translateY(-4px) scale(0.98);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 576px) {
  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}
