/* FAQ Section – Styled like Privacy Policy */

.faq-premium-section {
  position: relative;
  padding: 60px 20px;
  background-color: transparent;
  overflow: hidden;
  z-index: 1;
}

@media only screen and (max-width: 767px) {
  .faq-premium-section {
  padding: 80px 15px;
  }
}

.faq-premium-section .pattern-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

.faq-premium-section .auto-container {
  position: relative;
  z-index: 1;
}

.faq-premium-section .section-header {
  text-align: center;
  margin-bottom: 70px;
}

.faq-premium-section .subtitle {
  color: #e32636;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

.faq-premium-section .title {
  font-size: 42px;
  font-weight: 800;
  color: #111;
}

.faq-premium-section .faq-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq-premium-section .faq-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(135deg, #fff, #f9f9f9);
  border-left: 5px solid #e32636;
  padding: 30px 35px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-premium-section .faq-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(227, 38, 54, 0.12);
}

.faq-premium-section .faq-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.faq-premium-section .faq-header h3 {
  font-size: 26px;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.faq-premium-section .faq-number {
  font-size: 22px;
  font-weight: 700;
  background: #e32636;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  text-align: center;
  line-height: 46px;
  flex-shrink: 0;
}

.faq-premium-section .faq-content p {
  font-size: 18px;
  color: #555;
  line-height: 1.75;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 767px) {
  .faq-premium-section .faq-item {
    padding: 20px 18px;
  }

  .faq-premium-section .faq-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
    line-height: 40px;
  }

  .faq-premium-section .faq-header h3 {
    font-size: 20px;
  }

  .faq-premium-section .faq-content p {
    font-size: 16px;
  }
}

.faq-item .faq-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.faq-item.active .faq-content {
  max-height: 500px; /* adjust if needed */
  opacity: 1;
}

.contact-section-super {
  padding: 100px 20px;
  background: linear-gradient(to bottom, #ffffff, #f3f4f8);
  font-family: 'Inter', sans-serif;
}

.contact-section-super .container {
  max-width: 850px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header span {
  color: #e32636;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.3px;
}

.contact-header h2 {
  font-size: 40px;
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 14px;
  color: #111;
}

.contact-header p {
  font-size: 17px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.form-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.input-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.input-group input,
.input-group textarea {
  padding: 16px 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  color: #333;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group textarea {
  resize: vertical;
  min-height: 120px;
}

.input-group label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 14px;
  color: #aaa;
  background: white;
  padding: 0 6px;
  pointer-events: none;
  transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #e32636;
  box-shadow: 0 0 0 4px rgba(227, 38, 54, 0.08);
  outline: none;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 12px;
  font-size: 12px;
  color: #e32636;
}

.input-group.full {
  grid-column: 1 / 4;
}

.form-action {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.form-action .theme-btn-one {
  display: inline-block;
  text-align: center;
}

.theme-btn-one {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #fff !important;
  text-align: center;
  padding: 18px 40px;
  text-transform: capitalize;
  z-index: 1;
  box-shadow: 0px 30px 30px rgba(0, 0, 0, 0.1);
  border-radius: 30px;
  transition: all 500ms ease;
}

.theme-btn-one:before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: -1;
  transform: scale(0);
  background: #241E2F;
  transition: all 500ms ease;
}

.theme-btn-one:hover {
  color: #fff !important;
  background: #241E2F;
}

.theme-btn-one:hover:before {
  transform: scale(1);
}

@media (max-width: 767px) {
  /* Existing FAQ styles for mobile */
  .faq-premium-section .faq-item {
    padding: 20px 18px;
  }

  .faq-premium-section .faq-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
    line-height: 40px;
  }

  .faq-premium-section .faq-header h3 {
    font-size: 20px;
  }

  .faq-premium-section .faq-content p {
    font-size: 16px;
  }

  /* --- Contact Section Mobile Refinements --- */
  .contact-section-super {
    padding: 60px 15px; /* Adjust vertical padding and horizontal padding */
  }

  .contact-header h2 {
    font-size: 32px; /* Smaller heading for mobile */
  }

  .contact-header p {
    font-size: 15px; /* Slightly smaller paragraph text */
    padding: 0 10px; /* Add slight horizontal padding to prevent text from hitting edges */
  }

  .form-card {
    padding: 25px; /* Reduce form card padding on mobile */
    border-radius: 16px; /* Slightly smaller border-radius */
  }

  /* Ensure input-group 'full' takes full width on smaller screens */
  .input-group.full {
    grid-column: 1 / -1; /* Ensures it spans across all available columns, explicitly */
  }

  /* Adjust input/textarea padding and label size if needed */
  .input-group input,
  .input-group textarea {
    padding: 14px 12px; /* Slightly less padding */
  }

  .input-group label {
    font-size: 13px; /* Slightly smaller label font size */
    top: 12px; /* Adjust label top position */
    left: 14px; /* Adjust label left position */
  }

  .input-group input:focus + label,
  .input-group input:not(:placeholder-shown) + label,
  .input-group textarea:focus + label,
  .input-group textarea:not(:placeholder-shown) + label {
    top: -8px; /* Further adjust label top position when active */
    left: 10px; /* Further adjust label left position when active */
    font-size: 11px; /* Even smaller font size for active label */
  }

  .form-action {
    margin-top: 20px; /* Reduce top margin for the button */
  }

  .form-action .theme-btn-one {
    padding: 15px 30px; /* Smaller button padding */
    font-size: 15px; /* Smaller button font size */
  }
  
  /* Force single column in mobile */
  .contact-section-super .form-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* Ensure inputs take full width */
  .contact-section-super .input-group {
    width: 100% !important;
    max-width: 100% !important;
  }

  .contact-section-super .input-group input,
  .contact-section-super .input-group textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Make floating labels adjust for mobile */
  .contact-section-super .input-group label {
    white-space: nowrap; /* prevent label breaking into two lines */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 20px);
  }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.input-group.full {
  grid-column: 1 / -1; /* Spans across both columns */
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group input,
.input-group textarea {
  width: 100%;
}

.faq-premium-section .section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px; /* controls spacing between subtitle and title */
  text-align: center;
}

/* reset margins to avoid double spacing */
.faq-premium-section .section-header .subtitle,
.faq-premium-section .section-header .title {
  margin: 0;
}

/* Show answer when mouse hovers over question */
.faq-item:hover .faq-content {
  max-height: 500px;
  opacity: 1;
}
/* ===== Captcha Section ===== */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;            /* space between items */
  margin: 24px 0;       /* space above and below row */
}

.captcha-row img {
  border: 1px solid #ddd;
  border-radius: 8px;
  height: 42px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.refresh-captcha {
  background: #e32636;
  border: none;
  color: #fff;
  font-size: 18px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Captcha input box inside the row */
.captcha-row .input-group {
  flex: 1; /* makes the input expand to fill remaining space */
  margin: 0;
}

/* Error message under captcha */
#captchaError {
  display: none;
  color: #e32636;
  font-size: 14px;
  margin-top: 6px;
  font-weight: 500;
}

/* Mobile adjustment: stack captcha row */
@media (max-width: 767px) {
  .captcha-row {
    flex-direction: column;
    align-items: stretch;
  }
  .captcha-row img,
  .captcha-row .refresh-captcha,
  .captcha-row .input-group {
    width: 100%;
  }
}

/* Captcha Input Error Message */
.input-group .error-text {
  display: none;
  position: absolute;
  left: 0;
  bottom: -25px;   /* push slightly lower so no overlap */
  color: #e32636;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}


/* popup Message Start*/
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

/* Show popup */
.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Popup Box */
.popup-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  animation: popupFadeIn 0.4s ease;
}

.popup-content h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #27ae60;
}

.popup-content p {
  font-size: 1rem;
  color: #555;
}

.popup-close {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}

.popup-close:hover {
  color: #000;
}

/* Animation */
@keyframes popupFadeIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* popup Message End*/

/* Banner Image Start */
.page-title .bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-image: url(banner/faq.jpg);
}

/* CSS for Mobile View (active on screens up to 767px wide) */
@media (max-width: 767px) {
  .page-title .bg-layer {
    background-image: url(banner/faq-m.jpg);
    background-position: center;
    background-size: cover;
  }
}
/* Banner Image End*/