/* --- Container & Layout --- */

.container *,
.container *::before,
.container *::after {
  box-sizing: border-box;
}

/* Base styles for the container itself */
.container {
  max-width: 850px;
  margin: 0 auto;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);

  line-height: 1.7;
  color: #333333;
  font-size: 16px;
  /* Base font size for the container */
}

/* --- Scoped Typography --- */
/* All typography selectors are now preceded by .container */

.container h1,
.container h2,
.container h3,
.container h4 {
  font-weight: 600;
  line-height: 1.3;
  color: #222;
}

.container h1 {
  font-size: 2.5rem;
  text-align: center;
  border-bottom: 2px solid #dadada;
  padding-bottom: 0.5em;
  margin-top: 0;
  /* Set top margin to 0 for the first element */
  margin-bottom: 1em;
}

.container h2 {
  font-size: 1.75rem;
  margin-top: 2.5em;
  margin-bottom: 1em;
  border-left: 4px solid #dadada;
  padding-left: 0.5em;
}

.container h3 {
  font-size: 1.4rem;
  margin-top: 2em;
  margin-bottom: 0.8em;
  color: #333;
}

.container h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Scoped subtitle style */
.container .policy-subtitle {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #333333;
  margin-top: 0;
  margin-bottom: 2em;
}

.container p {
  margin-bottom: 1.25em;
}

.container a {
  color: #4f88b7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}

.container a:hover,
.container a:focus {
  color: #0b2d48;
  text-decoration: underline;
}

.container ul {
  list-style-position: outside;
  padding-left: 20px;
  margin-bottom: 1.5em;
}

.container li {
  margin-bottom: 0.75em;
}

/* --- Scoped Responsive Design --- */

/* Base Styles (for 360px and up) */
.container {
  padding: 2em 1em;
  margin: 1em;
  border-radius: 8px;
}

.container h1 {
  font-size: 2rem;
}

.container h2 {
  font-size: 1.5rem;
}

.container h3 {
  font-size: 1.25rem;
}

.text-wrapper {
  display: flex;
}

/* ===================================================================== */
/* --- Page Header (REGISTER BUSINESS) --- */
.page-header {
  text-align: center;
  padding: 1.5em 1em;
  padding-top: 100px;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 0.9rem;
  color: #555;
  background-color: #ffffff;
  border-bottom: 1px solid #e9ecef;
}

/* --- Form Container --- */
.form-container {
  max-width: 900px;
  margin: 2em auto;
  padding: 2em;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-container h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #111; /* Dark blue from main theme */
  margin-top: 0;
  margin-bottom: 1.5em;
}

/* --- Form Grid Layout --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr; /* Default to a single column on mobile */
  gap: 1.5em;
}

/* --- Form Elements --- */
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0b2d48; /* Dark blue from main theme */
  margin-bottom: 0.5em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 0.8em 1em;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background-color: #f8f9fa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #adb5bd;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f7b731;
  /* box-shadow: 0 0 0 3px rgba(79, 136, 183, 0.2); */
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Form Actions (Submit Button) --- */
.form-actions {
  text-align: center;
  margin-top: 2.5em;
}

.form-actions button {
  display: inline-block;
  padding: 0.8em 2.5em;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  color: #ffffff;
  background-color: #f3b63a; /* Yellow-orange from the image */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.form-actions button:hover {
  background-color: #e6a730; /* A slightly darker shade for hover */
}

.form-actions button:active {
  transform: scale(0.98);
}

/* ================================================FAQ=============================================== */
/* --- Add this to the bottom of your main style.css file --- */

/* FAQ Accordion Styles */
.faq-accordion {
  margin-top: 2em;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 1em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

/* The clickable question part */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25em;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0b2d48; /* Dark blue from main theme */
  cursor: pointer;
  list-style: none; /* Removes the default triangle marker */
}

/* Hides the default marker in Webkit browsers (Chrome, Safari) */
.faq-question::-webkit-details-marker {
  display: none;
}

/* The answer part */
.faq-answer {
  padding: 0 1.25em 1.25em 1.25em;
  color: #333;
  line-height: 1.6;
  /* border-top: 1px solid #e9ecef; */
}

/* Styling for lists inside an answer */
.faq-answer ul {
  list-style-position: inside;
  padding-left: 0;
  margin-top: 1em;
}
.faq-answer li {
  margin-bottom: 0.5em;
}

/* --- Plus/Minus Icon Styling --- */
.faq-icon {
  position: relative;
  width: 1em;
  height: 1em;
  color: #111; /* Lighter blue icon */
  transition: transform 0.3s ease-in-out;
}

/* When the details element is open, rotate the icon container */
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Horizontal line (always visible) */
.faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
}

/* Vertical line (for the 'plus') */
.faq-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  margin-left: -1px;
}

/* When the details element is open, fade out the vertical line */
.faq-item[open] .faq-icon::after {
  transform: scaleY(0);
  opacity: 0;
}

/* Small devices (480px and up) */
@media (min-width: 480px) {
  .container {
    padding: 2.5em 1.5em;
    padding-top: 80px;
    margin: 1.5em;
  }
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
  /* Instead of changing html font-size, we change it on the container */
  .container {
    font-size: 17px;
    padding: 3em 2.5em;
    margin: 2em auto;
    border-radius: 12px;
  }

  .container h1 {
    font-size: 2.75rem;
  }

  .container h2 {
    font-size: 1.85rem;
  }

  .container h3 {
    font-size: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 2em; /* Increase gap for larger screens */
  }

  .form-group.full-width {
    grid-column: 1 / -1; /* Make this element span both columns */
  }

  .form-container {
    margin: 3em auto;
    padding: 3em;
  }
}

/* Small Laptops (1024px and up) */
@media (min-width: 1024px) {
  .container {
    font-size: 18px;
    padding: 4em;
  }
}

/* For smaller screens like 360px */
@media (max-width: 480px) {
  .container {
    margin-top: 80px;
  }
  .form-container {
    margin: 1em;
    padding: 1.5em;
  }
  .form-container h1 {
    font-size: 1.8rem;
    padding-top: 30px;
  }
}
