@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap");

:root {
  --primary-green: #8dbf43;
  /* Light green from image */
  --primary-dark-green: #4a7c26;
  /* Darker shade */
  --accent-orange: #f37021;
  --accent-orange-hover: #d35400;
  --promo-blue: #2c3e50;
  /* Dark blue/gray from promo bar */
  --promo-green: #8dbf43;
  --text-color: #333;
  --bg-color: #f9f9f9;
  --white: #ffffff;
  --input-bg: #fff;
  --input-border: #ccc;
  --footer-bg: #1a4d6e;
  /* Dark teal footer */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ================= Benefits Section ================= */
.benefits-section {
  padding: 20px;
  background: #fff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 columns on mobile */
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s;
}

.benefit-card img:hover {
  transform: scale(1.02);
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns on desktop */
  }
}

/* ================= Promo Bar ================= */
.promo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  line-height: 1.2;
}

.promo-left {
  background-color: #264653;
  /* Dark Blue */
  flex: 1;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 280px;
}

.promo-right {
  background-color: #8dbf43;
  /* Green */
  flex: 1;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 280px;
}

.promo-equal {
  font-size: 2rem;
  margin: 0 10px;
  display: none;
  /* Hidden on mobile stack, usually */
}

@media (min-width: 768px) {
  .promo-equal {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .promo-bar {
    position: relative;
  }
}

.promo-text small {
  display: block;
  font-size: 0.7em;
  font-weight: 400;
  margin-bottom: 5px;
  text-transform: lowercase;
}

.promo-text strong {
  font-size: 1.4em;
}

/* ================= Form Hero Section ================= */
.form-hero {
  position: relative;
  background-color: #a2c65a;
  /* Fallback */
  background: linear-gradient(180deg, #a2c65a 0%, #8dbf43 100%);
  padding: 40px 20px 100px;
  text-align: center;
  color: white;
  /* Wavy bottom effect */
  border-bottom-left-radius: 50% 30px;
  border-bottom-right-radius: 50% 30px;
}

.form-hero h2 {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ================= Form Container ================= */
.form-container {
  max-width: 700px;
  margin: -80px auto 50px;
  /* Pull up to overlap hero */
  padding: 0 15px;
  position: relative;
  z-index: 10;
}

.form-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 30px;
  overflow: hidden;
  /* Added to contain negative margin elements */
}

/* Floating Logo */
.brand-logo {
  text-align: center;
  margin-bottom: 30px;
}

.brand-logo img {
  max-width: 180px;
}

.card-header-img {
  margin: -30px -30px 25px -30px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  display: block;
}

.card-header-img img {
  width: 100% !important;
  height: auto;
  display: block;
}

/* Inputs */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.col-half {
  flex: 1;
  min-width: 250px;
}

label {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 5px;
  font-weight: 500;
}

input,
select,
textarea,
input[type="date"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  background: #fdfdfd;
}

input:focus,
select:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(141, 191, 67, 0.2);
}

/* Disclaimer Box */
.disclaimer-box {
  background: #f1f8e9;
  border: 1px solid #c5e1a5;
  padding: 15px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #558b2f;
  margin: 20px 0;
}

.disclaimer-list {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 10px;
}

.disclaimer-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}

.disclaimer-check input {
  width: 20px;
  height: 20px;
}

/* Buttons */
.btn-submit {
  background-color: var(--accent-orange);
  color: white;
  border: none;
  padding: 15px;
  width: 100%;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
}

.btn-submit:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(243, 112, 33, 0.3);
}

/* Companions Area */
.companions-container {
  background: #fafafa;
  border: 1px dashed #ccc;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.companions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.companions-header h3 {
  font-size: 1rem;
  color: var(--primary-dark-green);
}

.btn-add-companion {
  background: white;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-add-companion:hover:not(:disabled) {
  background: var(--primary-green);
  color: white;
}

.btn-add-companion:disabled {
  opacity: 0.5;
  cursor: default;
  border-color: #ccc;
  color: #999;
}

.companion-entry {
  background: white;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  position: relative;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.companion-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #e74c3c;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg);
  color: white;
  padding: 50px 20px;
  text-align: center;
  clip-path: ellipse(150% 100% at 50% 100%);
  /* Curve top effect */
  margin-top: -50px;
  position: relative;
  z-index: 1;
  padding-top: 100px;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-icons span {
  font-size: 1.5rem;
  cursor: pointer;
}

/* Radio Buttons and Checkboxes Styling */
input[type="radio"],
input[type="checkbox"] {
  width: auto !important;
  min-width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

/* Radio/Checkbox Container */
.form-group label[style*="display: flex"] {
  white-space: nowrap;
  min-width: fit-content;
}

/* Responsive Tweaks */
@media (max-width: 600px) {
  .promo-bar {
    font-size: 1rem;
  }

  .promo-left,
  .promo-right {
    min-width: 100%;
    padding: 15px;
  }

  .form-card {
    padding: 30px 15px;
  }

  .form-hero h2 {
    font-size: 1.2rem;
    padding: 0 10px;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-row {
    gap: 10px;
  }

  /* Radio buttons - stack vertically on mobile */
  .form-group div[style*="display: flex"][style*="gap: 20px"] {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
  }

  /* Checkboxes - better wrapping on mobile */
  .form-group div[style*="flex-wrap: wrap"][style*="gap: 15px"] {
    gap: 10px !important;
  }

  .form-group div[style*="flex-wrap: wrap"] label {
    min-width: calc(50% - 5px);
    flex: 0 0 calc(50% - 5px);
  }

  /* Ensure text doesn't wrap inside labels */
  .form-group label[style*="display: flex"] span {
    font-size: 0.9rem;
    white-space: normal;
    word-break: keep-all;
  }
}

.card-header-img {
  margin: -30px -30px 20px -30px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.card-header-img img {
  width: 100%;
  display: block;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s;
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.modal-content h2 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.modal-content p {
  color: #666;
  margin-bottom: 20px;
}

.modal-content button {
  background: #8dbf43;
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
}

.modal-content button:hover {
  background: #7ca83b;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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