/* === GLOBAL RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #fff;
  color: #333;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: linear-gradient(90deg, #0d47a1, #1565c0);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #FFD54F;
}

.navbar nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s;
}

.navbar nav a:hover {
  color: #FFD54F;
}

.btn-login {
  background: #FFD54F;
  color: #0d47a1;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #FFD54F;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-login:hover {
  background: #fff;
  color: #0d47a1;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* === HERO === */
.hero {
  position: relative;
  background: url('../images/hero-insurance.jpeg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom right,
    rgba(13, 71, 161, 0.9),
    rgba(21, 101, 192, 0.85)
  );
  z-index: 1;
}

.hero h1,
.hero p,
.hero a {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #FFD54F;
  animation: fadeInUp 1s ease forwards;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  animation: fadeInUp 1.3s ease forwards;
}

/* === BUTTONS === */
.btn-primary {
  background: #fff;
  color: #0d47a1;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.6s ease forwards;
}

.btn-primary:hover {
  background: #FFD54F;
  color: #0d47a1;
  transform: translateY(-3px);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE HERO === */
@media (max-width: 768px) {
  .hero {
    padding: 100px 15px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* === FEATURES === */
.features {
  padding: 60px 20px;
  text-align: center;
}

.features h2 {
  color: #0d47a1;
  margin-bottom: 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: auto;
}

.feature-item {
  background: #e3f2fd;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* === CTA === */
.cta {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.cta h2 {
  color: #FFD54F;
}

.btn-secondary {
  background: #FFD54F;
  color: #0d47a1;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
}

.btn-secondary:hover {
  background: #fff;
  color: #0d47a1;
}

/* === FOOTER === */
.footer {
  background: #0a1931;
  color: #ccc;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* === WHATSAPP FLOAT BUTTON === */
.float-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #1565c0;
  color: #fff;
  font-size: 2rem;
  width: 55px;
  height: 55px;
  text-align: center;
  border-radius: 50%;
  line-height: 55px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  transition: background 0.3s;
  z-index: 999;
}

.float-btn:hover {
  background: #0d47a1;
}

/* === DASHBOARD & TABLES === */
.dashboard th {
  background: #0d47a1;
  color: #fff;
}

.dashboard tr:hover {
  background: #e3f2fd;
}

.btn-primary,
.dashboard .btn-secondary {
  border-radius: 6px;
}

.dashboard .btn-secondary {
  background: #fff;
  color: #0d47a1;
  border: 1px solid #0d47a1;
}

.dashboard .btn-secondary:hover {
  background: #FFD54F;
  color: #0d47a1;
}

/* === FORM SECTIONS === */
.proposal-form-section {
  background: #fff;
  padding: 60px 20px;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.proposal-form h2 {
  color: #0d47a1;
  margin-bottom: 10px;
}

.plan-details {
  background: #e3f2fd;
  border-left: 5px solid #0d47a1;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
}

.plan-details h3 {
  color: #0d47a1;
}

/* === MOBILE === */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
  }
  #nav-links {
    display: none;
    flex-direction: column;
  }
  #nav-links.active {
    display: flex;
  }
  #nav-links a {
    margin: 10px 0;
  }
}

/* Product Page */
.product-hero {
  background: linear-gradient(to right, rgba(198,40,40,0.9), rgba(230,57,53,0.8)),
              url('../images/insurance-banner.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.product-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.product-details .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.product-card {
  background: #fff3f3;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.product-card h2 {
  color: #C62828;
  margin-bottom: 15px;
}

.product-card p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.product-features {
  list-style: none;
  margin-bottom: 20px;
}

.product-features li {
  margin-bottom: 10px;
  color: #444;
}

.product-features i {
  color: #C62828;
  margin-right: 8px;
}

.sidebar {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.sidebar h3 {
  color: #C62828;
  margin-bottom: 15px;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul a {
  color: #333;
  text-decoration: none;
}

.sidebar ul a:hover {
  color: #C62828;
}

/* Responsive */
@media (max-width: 768px) {
  .product-details .container {
    grid-template-columns: 1fr;
  }
}

.products-hero {
  background: linear-gradient(to right, #c62828, #e53935);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.categories .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.category-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  border-top: 4px solid #e53935;
}

.category-card h2 {
  color: #c62828;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.category-card ul {
  list-style: none;
  padding: 0;
}

.category-card li {
  margin-bottom: 8px;
}

.category-card a {
  color: #555;
  text-decoration: none;
  transition: 0.3s;
}

.category-card a:hover {
  color: #e53935;
  font-weight: 600;
}

@media (max-width: 768px) {
  .products-hero h1 {
    font-size: 1.8rem;
  }
  .category-card {
    padding: 20px;
  }
}

/* ====== Auth Pages ====== */
.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background: linear-gradient(135deg, #fff 60%, #ff4d4d20);
  padding: 1rem;
}

.auth-container {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.auth-container h2 {
  color: #b80000;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.auth-form label {
  display: block;
  text-align: left;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #333;
}

.auth-form input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.3s;
}

.auth-form input:focus {
  border-color: #ff4d4d;
  outline: none;
}

.btn-primary {
  width: 100%;
  background: #ff4d4d;
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #e03a3a;
}

.auth-links {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.auth-links a {
  color: #b80000;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.dashboard {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

.dashboard table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.dashboard th, .dashboard td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.dashboard th {
  background: #C62828;
  color: #fff;
}

.dashboard tr:hover {
  background: #fff3f3;
}

.dashboard .btn-secondary {
  text-decoration: none;
  background: #fff;
  color: #C62828;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
}


.dashboard {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

.dashboard table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.dashboard th, .dashboard td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.dashboard th {
  background: #C62828;
  color: #fff;
}

.dashboard tr:hover {
  background: #fff3f3;
}

.btn-primary {
  background: #C62828;
  color: #fff;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.btn-secondary {
  text-decoration: none;
  background: #fff;
  color: #C62828;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  border: 1px solid #C62828;
}

.proposal-form-section {
  background: #fff;
  padding: 60px 20px;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.proposal-form h2 {
  color: #C62828;
  margin-bottom: 10px;
}

.proposal-form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.proposal-form input[type="number"],
.proposal-form input[type="file"] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.proposal-form button {
  margin-top: 20px;
  width: 100%;
}

.plan-details {
  background: #fff3f3;
  border-left: 5px solid #C62828;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
}

.plan-details h3 {
  color: #C62828;
  margin-bottom: 5px;
}

.plan-details ul {
  margin-top: 10px;
  padding-left: 20px;
}

.plan-details li {
  list-style: disc;
  color: #444;
}
