/* Hero Section Styling */
#hero {
  position: relative;
  color: #fff;
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
              url('assets/img/hero-bg.jpg') center/cover no-repeat;
  overflow: hidden;
}

#hero .welcome h1 {
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.6);
}

#hero .welcome p {
  font-size: 1.25rem;
  color: #f1f1f1;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.6);
}

/* Hero Buttons */
#hero .btn {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  border: none;
  padding: 12px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

#hero .btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

#hero .btn:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300%;
  height: 300%;
  background: rgba(255,255,255,0.1);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  transition: transform 0.5s ease;
}

#hero .btn:hover:after {
  transform: translate(-50%, -50%) scale(1);
}

/* Icon Boxes */
#hero .icon-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

#hero .icon-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

#hero .icon-box i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

#hero .icon-box:hover i {
  transform: scale(1.2) rotate(10deg);
}

#hero .icon-box h5 {
  font-weight: 700;
  margin-bottom: 10px;
}

#hero .icon-box p {
  font-size: 0.95rem;
  color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #hero .welcome h1 {
    font-size: 2.25rem;
  }
  #hero .welcome p {
    font-size: 1rem;
  }
  #hero .icon-box {
    margin-bottom: 20px;
  }
  #hero .btn {
    width: 45%;
    margin-bottom: 10px;
  }
}

/* Hero Title Styling */
.hero-title {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(90deg, #00aaff, #00ffaa, #ffb400, #ff6a00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 12px rgba(0,0,0,0.4);
  position: relative;
  display: inline-block;
  animation: gradientShift 5s infinite linear;
}

/* Hero Subtitle Styling */
.hero-subtitle {
  font-size: 18px;
  color: #f0f8ff;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.3);
  margin-top: 15px;
  font-weight: 500;
  animation: fadeInUp 2s ease forwards;
}

/* Icon Animations */
.hero-icon-left, .hero-icon-right {
  color: #ffb400;
  font-size: 1.5em;
  vertical-align: middle;
  display: inline-block;
  animation: bounceIcon 2s infinite;
}

.hero-icon-right { margin-left: 10px; }
.hero-icon-left { margin-right: 10px; }

/* Keyframes */
@keyframes bounceIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Premium Service Boxes */
.row[data-aos] .icon-box {
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  color: #1a1a1a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
              0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(.25,.8,.25,1);
  position: relative;
  overflow: hidden;
}

.row[data-aos] .icon-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
  transform: rotate(45deg);
  transition: all 0.6s ease-in-out;
}

.row[data-aos] .icon-box:hover::before {
  transform: rotate(0deg);
}

.row[data-aos] .icon-box i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.4s ease, text-shadow 0.4s ease;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.row[data-aos] .icon-box:hover i {
  transform: scale(1.3) rotate(-10deg);
  text-shadow: 3px 3px 15px rgba(0,0,0,0.3);
}

.row[data-aos] .icon-box h5 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.row[data-aos] .icon-box p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  transition: color 0.3s ease, transform 0.3s ease;
}

.row[data-aos] .icon-box:hover p {
  color: #333;
  transform: translateY(-5px);
}

/* Service Box Colors */
.icon-box:nth-child(1) {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
}

.icon-box:nth-child(2) {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: #fff;
}

.icon-box:nth-child(3) {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  color: #fff;
}

.icon-box:nth-child(4) {
  background: linear-gradient(135deg, #f7971e, #ffd200);
  color: #fff;
}

@media (max-width: 768px) {
  .row[data-aos] .icon-box {
    margin-bottom: 1.5rem;
  }
}

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-in-out;
}

/* Modal Box */
.modal-content {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.4s ease-out;
  text-align: center;
  position: relative;
}

.modal-content .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}

.modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 600;
  color: #333;
}

.modal-buttons {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 15px;
}

.modal-buttons .btn {
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  background-color: #007bff;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.modal-buttons .btn:hover {
  background-color: #0056b3;
}

/* ? PREMIUM FORM STYLING (REPLACED) */
#forms-container {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 40px 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-in;
  margin-top: 20px;
  transition: box-shadow 0.3s ease;
}

#forms-container:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.login-section h2 {
  font-weight: 800;
  font-size: 2rem;
  color: #222;
  margin-bottom: 10px;
}

.login-section p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 25px;
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  display: block;
}

.form-group {
  position: relative;
}

.input-group {
  display: flex;
  align-items: center;
  background-color: #f1f1f1;
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 6px 10px;
  transition: border 0.3s, box-shadow 0.3s;
}

.input-group:focus-within {
  border-color: #6a5acd;
  box-shadow: 0 0 0 4px rgba(106, 90, 205, 0.15);
}

.input-group i {
  color: #555;
  font-size: 1.25rem;
  margin-right: 10px;
}

.form-control {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 1rem;
  padding: 10px 0;
  color: #222;
}

.form-control::placeholder {
  color: #aaa;
}

.input-group .btn {
  background: transparent;
  border: none;
  padding: 6px 10px;
  font-size: 1rem;
  cursor: pointer;
  color: #555;
  transition: color 0.3s ease;
}

.input-group .btn:hover {
  color: #000;
}

.text-danger {
  font-size: 0.85rem;
  color: #dc3545;
}

.paperform-glass-style {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  padding: 40px 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .modal-content { padding: 30px 20px; }
  .modal-buttons .btn { width: 100%; }
  #forms-container { padding: 30px 20px; }
}

/* Close Button */
.modal-content .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #ff3b3b;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.modal-content .close-btn:hover {
  transform: scale(1.2);
  color: #ff0000;
}
/* === Premium Glass Form Styling (Scoped) === */
#patientRegistrationForm {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  transition: box-shadow 0.3s ease;
}

#patientRegistrationForm:hover {
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

#patientRegistrationForm .form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

#patientRegistrationForm .form-control {
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 16px 14px 16px 14px;
  font-size: 1rem;
  color: #333;
  width: 100%;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

#patientRegistrationForm .form-control:focus {
  border-color: #6a5acd;
  box-shadow: 0 0 0 4px rgba(106, 90, 205, 0.1);
  background-color: rgba(255, 255, 255, 0.95);
}

#patientRegistrationForm .form-label {
  position: absolute;
  top: 16px;
  left: 14px;
  background-color: transparent;
  color: #666;
  font-size: 1rem;
  padding: 0 4px;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 2;
}

/* === Float label up when focused or filled === */
#patientRegistrationForm .form-control:focus + .form-label,
#patientRegistrationForm .form-control:not(:placeholder-shown) + .form-label {
  top: -10px;
  left: 12px;
  font-size: 0.75rem;
  background-color: #fff;
  color: #6a5acd;
  padding: 0 6px;
  font-weight: 500;
}

#patientRegistrationForm .input-group {
  display: flex;
  align-items: center;
  position: relative;
}

#patientRegistrationForm .input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#patientRegistrationForm .input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background-color: rgba(240, 240, 240, 0.8);
  color: #333;
  font-size: 1rem;
  padding: 10px 14px;
  transition: background 0.3s ease;
}

#patientRegistrationForm .input-group .btn:hover {
  background-color: rgba(220, 220, 220, 1);
}

#patientRegistrationForm .btn-primary {
  background: linear-gradient(135deg, #6a5acd, #4b0082);
  color: white;
  font-weight: 600;
  border: none;
  padding: 14px;
  font-size: 1rem;
  border-radius: 12px;
  transition: background 0.3s ease;
}

#patientRegistrationForm .btn-primary:hover {
  background: linear-gradient(135deg, #4b0082, #2f004f);
}

#patientRegistrationForm .text-danger {
  font-size: 0.85rem;
  color: #dc3545;
  margin-top: 5px;
}

/* === Responsive Adjustments === */
@media (max-width: 480px) {
  #patientRegistrationForm {
    padding: 25px 20px;
  }

  #patientRegistrationForm .btn-primary {
    font-size: 0.95rem;
    padding: 12px;
  }
}


