html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Roboto', sans-serif;
  scroll-behavior: smooth;
  background-color: #fff;
  color: #222;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: #222;
    color: var(--text-color-dark-mode);
}

body.dark-mode .dashboard-container,
body.dark-mode .user-management-list {
    background-color: #2c2c2c;
}

body.dark-mode .booking-card,
body.dark-mode .user-row {
    background-color: #333 !important;
}

.hero {
  background: url('images/cpr-hero.jpg') center center/cover no-repeat;
  color: #fff;
  padding: 8rem 2rem 6rem;
  text-align: center;
  position: relative;
  user-select: none;
  border-radius: 0 0 40px 40px;
  box-shadow: inset 0 -100px 150px -50px rgba(0,0,0,0.5);
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto 3rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
}

.cta-button {
  background-color: #d7001f;
  color: #fff;
  padding: 0.85rem 2.5rem;
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(215, 0, 31, 0.85);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  will-change: transform;
}

.cta-button:hover,
.cta-button:focus {
  background-color: #b5001a;
  box-shadow: 0 10px 25px rgba(181, 0, 26, 0.95);
  outline: none;
  transform: scale(1.05);
}

section {
  padding: 5rem 2rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  scroll-margin-top: 80px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: #d7001f;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-bottom: 4px solid #d7001f;
  display: inline-block;
  padding-bottom: 0.25rem;
  user-select: none;
}

.dark-mode .section-title {
  color: #ff4a5a;
  border-color: #ff4a5a;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 2.25rem 2rem;
  width: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  cursor: default;
  color: #444;
  user-select: none;
  margin: 0;
}

.card h4 {
  font-weight: 900;
  margin-bottom: 1rem;
  color: #d7001f;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.card p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #555;
}

.card:hover,
.card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 18px 50px rgba(215, 0, 31, 0.3);
}

.dark-mode .card {
  background: #222;
  color: #eee;
  box-shadow: 0 10px 30px rgba(255, 74, 90, 0.25);
}

.dark-mode .card h4 {
  color: #ff4a5a;
}

#bookNowBtn {
  background-color: #d7001f;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  border: none;
  padding: 0.85rem 2.5rem;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(215, 0, 31, 0.85);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin-top: 200px;
  user-select: none;
}

#bookNowBtn:hover,
#bookNowBtn:focus {
  background-color: #b5001a;
  box-shadow: 0 10px 25px rgba(181, 0, 26, 0.95);
  outline: none;
}

.booking-form {
  background: #fff;
  max-width: 700px;
  margin: 4rem auto 0;
  padding: 3.5rem 4rem;
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  text-align: left;
  user-select: none;
}

.booking-form h3 {
  color: #d7001f;
  font-weight: 900;
  margin-bottom: 1.75rem;
  font-size: 2.25rem;
  text-align: center;
  letter-spacing: 0.03em;
}

.booking-form label {
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
  color: #444;
  letter-spacing: 0.01em;
}

.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form select,
.booking-form input[type="datetime-local"],
.booking-form input[type="number"] {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 1.1rem;
  border: 2px solid #ddd;
  border-radius: 12px;
  margin-bottom: 1.8rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  user-select: text;
}

.booking-form input[type="text"]:focus,
.booking-form input[type="email"]:focus,
.booking-form input[type="tel"]:focus,
.booking-form select:focus {
  border-color: #d7001f;
  outline: none;
  box-shadow: 0 0 12px rgba(215, 0, 31, 0.6);
}

.booking-form button[type="submit"] {
  width: 100%;
  background-color: #d7001f;
  color: white;
  font-weight: 900;
  font-size: 1.25rem;
  padding: 1.15rem 0;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(215, 0, 31, 0.85);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.booking-form button[type="submit"]:hover,
.booking-form button[type="submit"]:focus {
  background-color: #b5001a;
  box-shadow: 0 12px 30px rgba(181, 0, 26, 0.95);
  outline: none;
}

.dark-mode .booking-form {
  background: #1c1c1c;
  color: #eee;
  box-shadow: 0 15px 50px rgba(255, 74, 90, 0.4);
}

.dark-mode .booking-form label {
  color: #ff4a5a;
}

.dark-mode .booking-form input,
.dark-mode textarea,
.dark-mode .booking-form select {
  background: #2a2a2a;
  border-color: #444;
  color: #eee;
}

.dark-mode .booking-form input:focus,
.dark-mode .booking-form select:focus {
  border-color: #ff4a5a;
  box-shadow: 0 0 12px rgba(255, 74, 90, 0.8);
}

.alert {
  max-width: 700px;
  margin: 2.5rem auto;
  padding: 1.25rem 2rem;
  border-radius: 12px;
  font-weight: 900;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  user-select: none;
  letter-spacing: 0.02em;
}

.alert.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

footer {
  background-color: #222;
  color: #eee;
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 1rem;
  user-select: none;
}

footer a {
  color: #d7001f;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

footer a:hover,
footer a:focus {
  text-decoration: underline;
  outline: none;
  color: #ff4a5a;
}

#darkModeBtn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #d7001f;
  border: none;
  color: white;
  font-weight: 900;
  padding: 0.75rem 1.75rem;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(215,0,31,0.85);
  z-index: 9999;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
  user-select: none;
  will-change: transform;
}

#darkModeBtn:hover,
#darkModeBtn:focus {
  background-color: #b5001a;
  outline: none;
  box-shadow: 0 10px 30px rgba(181,0,26,0.95);
  transform: scale(1.05);
}

.hero-split {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  min-height: 100vh;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  gap: 4rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 450px;
  max-width: 600px;
  animation: slideFade 1s ease-in-out forwards;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #d7001f;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.25rem;
  color: #444;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-image {
  flex: 1 1 400px;
  text-align: center;
  animation: floatIn 1.2s ease-in-out forwards;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hero-cta {
  background: #d7001f;
  padding: 0.85rem 2.25rem;
  font-size: 1.15rem;
  border-radius: 50px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 16px rgba(215, 0, 31, 0.4);
}

.hero-cta:hover {
  background: #b5001a;
  box-shadow: 0 8px 25px rgba(181, 0, 26, 0.6);
}

@keyframes slideFade {
  0% {
    transform: translateX(-30px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

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

body.dark-mode .hero-split {
  background: linear-gradient(to right, #1a1a1a, #111);
}

body.dark-mode .hero-text h1 {
  color: #ff4a5a;
}

body.dark-mode .hero-text p {
  color: #ccc;
}

body.dark-mode .hero-image img {
  box-shadow: 0 10px 30px rgba(255, 74, 90, 0.25);
}

.payment-section {
  padding: 2rem 1rem 3rem;
  background: #f9f9f9;
  border-radius: 12px;
  max-width: 600px;
  margin: 3rem auto 4rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 4.5rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.payment-icons li {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #222;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  width: 100px;
}

.payment-icons li i {
  font-size: 4.5rem;
  margin-bottom: 0.4rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.payment-icons li:nth-child(1) i { color: #EB001B; }
.payment-icons li:nth-child(2) i { color: #003087; }
.payment-icons li:nth-child(3) i { color: #1A1F71; }

.payment-icons li:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.payment-icons li:hover i {
  transform: scale(1.15);
}

body.dark-mode .payment-section {
  background: #222;
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

body.dark-mode .payment-icons li {
  color: #eee;
}

body.dark-mode .payment-icons li:nth-child(1) i {
  color: #FF4B5C;
}

body.dark-mode .payment-icons li:nth-child(2) i {
  color: #5BA7FF;
}

body.dark-mode .payment-icons li:nth-child(3) i {
  color: #A4B0FF;
}

body.dark-mode .payment-icons li:hover {
  box-shadow: 0 12px 24px rgba(255,255,255,0.15);
}

.faq-section {
  padding: 5rem 1rem;
  background: #fefefe;
  width: 100%;
}

.dark-mode .faq-section {
  background: #121212;
}

.faq-list {
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0;
}

.faq-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.4rem;
  padding: 1.5rem 2rem;
  color: #d7001f;
  position: relative;
  list-style: none;
}

.faq-item summary::marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2rem;
  font-size: 2rem;
  color: #666;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: "–";
  transform: rotate(180deg);
  color: #d7001f;
}

.faq-item p {
  padding: 0 2rem 2rem;
  font-size: 1.1rem;
  line-height: 1.65;
  color: #333;
  animation: fadeIn 0.3s ease-in-out;
}

.dark-mode .faq-item {
  background: #1a1a1a;
  box-shadow: 0 10px 30px rgba(255, 74, 90, 0.1);
}

.dark-mode #about p {
  color: white;
}

.dark-mode .faq-item summary {
  color: #ff4a5a;
}

.dark-mode .faq-item summary::after {
  color: #aaa;
}

.dark-mode .faq-item[open] summary::after {
  color: #ff4a5a;
}

.dark-mode .faq-item p {
  color: #ccc;
}

.warning-icon {
  font-size: 1em;
  width: 1em;
  height: 1em;
}

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

.full-width {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 768px) {
 .grid {
    display: block !important;
  }

  .card {
    width: 90% !important;
    max-width: none !important;
    margin: 1rem auto !important;
  }

  #bookNowBtn {
    margin-top: 700px;
  }

  #bookingForm {
    margin-top: 5px !important;
  }
}