* {
  box-sizing: border-box;  /* FIXES OVERFLOW ISSUES GLOBALLY */
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  line-height: 1.6;
  color: #1e293b;
  background: #f1f5f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: #0f172a;
  color: white;
  padding: 18px 0;
  text-align: center;
}

.hero {
  background: 
    linear-gradient(rgba(0,0,0,0.60), rgba(0,0,0,0.60)), 
    url('images/hero_image.jpg') center / cover no-repeat;
  color: white;
  text-align: center;
  padding: 160px 20px 140px;
}

/* IMPROVED h1 – better wrapping and mobile handling */
h1 {
  font-size: 3.6rem;
  margin: 0 0 24px;
  font-weight: 800;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  padding: 0 20px;
  max-width: 100%;
}

.tagline {
  font-size: 1.5rem;
  max-width: 900px;
  margin: 0 auto 40px;
  font-weight: 500;
}

.btn {
  display: inline-block;
  background: #c41e3a;
  color: white;
  padding: 18px 36px;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  margin: 10px;
  box-sizing: border-box;
}

.btn:hover {
  background: #a0172c;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  border-radius: 8px;
}

.pricing {
  background: #f8fafc;
  padding: 120px 0 100px;
}

/* TABLE STYLING */
table {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-collapse: collapse;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

th, td {
  padding: 24px 20px;
  text-align: center;
  vertical-align: middle;
}

th {
  background: #0f172a;
  color: white;
  font-weight: 600;
  position: relative;
}

th:first-child {
  background: #0f172a;
}

/* RED COLUMN (PRO BREW) */
thead th:nth-child(3),
tbody td:nth-child(3) {
  background: #c41e3a;
  color: white;
  font-weight: 600;
}

/* OTHER HEADER COLUMNS */
thead th:nth-child(2),
thead th:nth-child(4),
thead th:nth-child(5) {
  background: #1e293b;
}

tbody td {
  background: white;
}

tbody td:first-child {
  background: #f1f5f9;
  font-weight: 600;
}

/* MOST POPULAR BADGE */
.popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: #fbbf24;
  color: #000;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 8px 24px;
  border-radius: 30px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 10;
}

.price {
  font-size: 2.6rem;
  font-weight: 800;
}

.calc-section {
  padding: 100px 20px;
  background: white;
}

.calculator {
  max-width: 620px;
  margin: 40px auto;
  padding: 40px;
  background: #f8fafc;
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

input, button {
  width: 100%;
  padding: 18px;
  margin: 12px 0;
  font-size: 1.2rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  box-sizing: border-box;
}

button {
  background: #c41e3a;
  color: white;
  border: none;
  font-weight: 600;
  font-size: 1.3rem;
  cursor: pointer;
}

button:hover {
  background: #a0172c;
}

.features {
  padding: 100px 0;
  background: #0f172a;
  color: white;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.grid div {
  font-size: 1.3rem;
  text-align: center;
  padding: 25px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
}

footer {
  background: #000;
  color: #94a3b8;
  text-align: center;
  padding: 50px 20px;
}

html {
  scroll-behavior: smooth;
}

@keyframes pulse-scale {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulsing-text {
  animation: pulse-scale 1s ease-in-out infinite;
}

/* ===================================
   GLOBAL FORM STYLING (DESKTOP + MOBILE BASE)
   =================================== */

label {
  display: block;
  margin: 20px 0 8px;
  font-weight: 600;
  color: #1e293b;
  font-size: 1.05rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: white;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #c41e3a;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.2);
}

select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%2364748b" d="M0 0l6 8 6-8z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

form {
  max-width: 800px;
  margin: 0 auto;
}

form button,
form .btn {
  width: 100%;
  padding: 20px;
  font-size: 1.5rem;
  font-weight: 700;
  background: white;
  color: #c41e3a;
  border: 3px solid #c41e3a;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

form button:hover,
form .btn:hover {
  background: #c41e3a;
  color: white;
}

/* ===================================
   RESPONSIVE IMPROVEMENTS
   =================================== */

@media (max-width: 1024px) {
  .hero {
    padding: 130px 20px 110px;
  }

  h1 {
    font-size: 3.2rem;
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 20px 80px;
  }

  h1 {
    font-size: 2.0rem;
    line-height: 1.2;
    padding: 0 20px;
  }

  .tagline {
    font-size: 1.3rem;
    padding: 0 10px;
  }

  .btn,
  button {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 15px auto;
    padding: 20px;
    font-size: 1.4rem;
  }

  section[style*="padding:120px"] .btn {
    max-width: 380px;
    font-size: 1.5rem;
    padding: 22px 40px;
  }

  .pricing {
    padding: 80px 0 60px;
  }

  .calc-section {
    padding: 80px 20px;
  }

  .calculator {
    padding: 30px 20px;
  }

  .calculator input,
  .calculator button {
    max-width: 100%;
  }

  .features {
    padding: 80px 0;
  }

  table {
    width: 100%;
    overflow-x: hidden;
  }

  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr {
    margin: 30px 10px;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
  }

  td {
    border: none;
    position: relative;
    padding: 16px 20px 16px 50%;
    text-align: right;
  }

  td:before {
    content: attr(data-label);
    position: absolute;
    left: 20px;
    width: 45%;
    padding-right: 10px;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
  }

  td:nth-child(3) {
    background: #c41e3a !important;
    color: white;
  }

  .popular-badge {
    top: -12px;
    font-size: 0.8rem;
    padding: 6px 20px;
  }

  /* Mobile-specific form tweaks (larger touch targets, prevent zoom) */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="number"],
  select,
  textarea {
    padding: 18px;
    font-size: 1.1rem; /* prevents iOS zoom */
  }

  label {
    margin: 18px 0 6px;
    font-size: 1.05rem;
  }

  /* Enrollment page specific mobile adjustments */
  section[style*="padding:100px"] .container,
  section[style*="padding:140px"] .container,
  section[style*="background:#f8fafc"] .container {
    padding: 30px 20px !important;
  }

  div[style*="background:#f1f5f9"] {
    padding: 30px 20px !important;
    font-size: 1.15rem !important;
    line-height: 1.7 !important;
  }

  span[style*="background:#c41e3a"][style*="padding"] {
    padding: 10px 24px !important;
    font-size: 1.1rem !important;
  }

  div[style*="background:#fbbf24"] {
    font-size: 0.8rem !important;
    padding: 6px 18px !important;
    top: -10px !important;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.0rem;
    padding: 0 15px;
  }

  .tagline {
    font-size: 1.15rem;
  }

  .price {
    font-size: 2.2rem;
  }

  .btn {
    font-size: 1.3rem;
    padding: 18px;
  }

  form button,
  form .btn {
    font-size: 1.4rem;
    padding: 18px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 2.0rem;
    padding: 0 10px;
  }
}

/* NEW RESPONSIVE PRICING CARDS (OPTIONAL UPGRADE) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 70px auto 0;
  padding: 0 15px;
}

.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  transition: transform 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-10px);
}

.pricing-card.popular {
  border: 3px solid #c41e3a;
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-card h3 {
  font-size: 2rem;
  margin: 0 0 20px;
  color: #1e293b;
}

.price {
  font-size: 3.5rem;
  font-weight: 800;
  color: #c41e3a;
  margin: 20px 0;
}

.price span {
  font-size: 1.2rem;
  font-weight: normal;
  color: #64748b;
}

.commitment {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 30px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.8;
}

.features-list li {
  padding-left: 24px;
  position: relative;
}

.features-list li:before {
  content: "✓";
  color: #c41e3a;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.pricing-card .popular-badge {
  top: -16px;
}