/* Container Logic for Form */
.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    max-width: 800px;
    margin: auto;
}

.contact-form-row {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.error-message {
    color: red;
    font-size: 0.8rem;
    display: block;
    margin-top: 4px;
}

.input-error {
    border: 2px solid red;
}

.input-success {
    border: 2px solid green;
}
/* Field Grouping */
.contact-field-group {
    flex: 1;
    position: relative;
    margin-bottom: 25px; 
}

/* Updated Label: Now floats to the middle initially */
.contact-field-label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 500;
    color: #666;
    background: #fff; 
    padding: 0 5px;
    pointer-events: none;
    transition: 0.2s ease all;
    z-index: 1;
}

/* The Border Box Style with Rounded Corners & Custom Dropdown Arrow */
.contact-text-input, 
.contact-select-dropdown, 
.contact-textarea-field {
    width: 100%;
    padding: 16px; 
    border: 1px solid #ccc; 
    border-radius: 12px; 
    background: transparent;
    outline: none;
    font-size: 16px;
    box-sizing: border-box;
    display: block;
}

/* Specific styling for the Service Dropdown Arrow */
.contact-select-dropdown {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M7%2010l5%205%205-5z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}

/* Textarea specific top alignment for label */
.contact-field-group textarea ~ .contact-field-label {
    top: 25px;
}

/* THE MAGIC: Moves label to top border on Focus or when typed in */
.contact-text-input:focus ~ .contact-field-label,
.contact-text-input:not(:placeholder-shown) ~ .contact-field-label,
.contact-textarea-field:focus ~ .contact-field-label,
.contact-textarea-field:not(:placeholder-shown) ~ .contact-field-label,
.contact-select-dropdown:focus ~ .contact-field-label,
.contact-select-dropdown:valid ~ .contact-field-label {
    top: 0;
    font-size: 16px;
    color: #000;
    transform: translateY(-50%) scale(0.9);
}

/* Input Focus Border */
.contact-text-input:focus, 
.contact-textarea-field:focus, 
.contact-select-dropdown:focus {
    border: 1.5px solid #000;
}

/* Submit Button Style */
.contact-submit-button {
    width: 100%;
    padding: 16px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-submit-button:hover {
    background: #000;
    color: #fff;
}

/* reCAPTCHA & Legal text */
.contact-captcha-wrapper { margin-bottom: 20px; }
.contact-legal-disclaimer { font-size: 13px; color: #000; margin-top: 15px; }
.contact-legal-link { color: #000; text-decoration: underline; }

@media (max-width: 600px) {
    .contact-form-row { flex-direction: column; gap: 0; }
}

/*FAQ */
body, html {
  margin: 0;
  padding: 0;
}

/* TOP BANNER */
.contact-banner {
  height: 500px; 
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 100%), url('back.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  width: 100%;
  box-sizing: border-box;
}
.banner-content {
  padding: 60px; 
  color: #ffffff;
  font-family: 'Georgia', serif;
  text-align: left;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}
.eyebrow-text {
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 10px;
  text-transform: uppercase;
  opacity: 0.9;
}
.main-title {
  color: #ffffff;
  margin: 0 0 10px 0;
  font-size: 5.5rem; 
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -2px; 
  line-height: 0.85;     
}
.banner-subtext {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.5px;
  max-width: 400px; 
}
/* Mobile Adjustments */
@media (max-width: 768px) {
  .contact-banner { height: 400px; }
  .banner-content { padding: 30px; }
  .main-title { font-size: 3.5rem; }
}

.faq-support-cta {
    padding: 20px;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    border-bottom: 1px solid #000; /* Maintains the list line aesthetic */
}

.faq-support-cta a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid #000;
    transition: opacity 0.3s ease;
}

.faq-support-cta a:hover {
    opacity: 0.6;
}


/* FAQ QUESTIONS */
/* Answer Logic */
.faq-container {
  max-width: 800px;
  margin: 40px auto;
  font-family: 'Georgia', serif; 
  color: #333;
}
.faq-header {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 50px;
  border-bottom: 1px solid #eee;
}

.tab-btn {
  background: none;
  border: none;
  padding-bottom: 10px;
  font-size: 16px;
  letter-spacing: 2px;
  cursor: pointer;
  color: #999;
}

.tab-btn.active {
  color: #000;
  border-bottom: 2px solid #000;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Adjust based on content length */
  padding-bottom: 20px;
}

.faq-item.active .icon {
  transform: rotate(45deg); /* Turns the + into an x */
}

.faq-answer p { 
   padding-bottom: 20px; margin: 0; 
}
.faq-question:hover { 
   color: #666; 
}
.faq-question {
   width: 100%;
   background: none;
   border: none;
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 20px 0;
   cursor: pointer;
   text-align: left;
   font-family: 'Georgia', serif;
   font-size: 1rem;
   text-transform: uppercase;
   letter-spacing: 1px;
    transition: color 0.3s ease;
  }
 .faq-container {
   max-width: 900px;
   margin: 60px auto;
   padding: 0 40px;
   font-family: 'Georgia', serif;
 }

 .faq-title {
   font-size: 2.5rem; /* Matches .category-title */
   font-weight: normal;
   margin-bottom: 30px;
   color: #000;
 }

  .faq-item {
    border-bottom: 1px solid #000;
  }
  .faq-list {
    border-top: 1px solid #000;
  }


/* =============================================
   CONTACT / FAQ FORM — Mobile Fixes
   ============================================= */

@media (max-width: 768px) {
  /* Banner — tighter height so less dead space above content */
  .contact-banner {
    height: 220px !important;
  }
  .banner-content {
    padding: 20px 20px !important;
  }
  .main-title {
    font-size: 2.4rem !important;
    letter-spacing: -1px;
    margin-bottom: 6px;
  }
  .eyebrow-text {
    font-size: 11px;
    margin-bottom: 6px;
  }
  .banner-subtext {
    font-size: 13px;
  }

  /* Form wrapper */
  .contact-form-wrapper {
    padding: 25px 15px;
    margin: 0 10px;
  }
  .contact-form-row {
    flex-direction: column;
  }

  /* reCAPTCHA widget — center it */
  .g-recaptcha {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  /* FAQ tabs — horizontal scroll */
  .faq-header {
    gap: 10px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    padding-bottom: 5px;
  }
  .tab-btn {
    font-size: 11px !important;
    letter-spacing: 1px !important;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .faq-support-cta {
    font-size: 0.85rem !important;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .contact-banner {
    height: 190px !important;
  }
  .banner-content {
    padding: 16px 16px !important;
  }
  .main-title {
    font-size: 1.9rem !important;
  }
  .contact-text-input,
  .contact-select-dropdown,
  .contact-textarea-field {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}

@media (max-width: 390px) {
  .contact-banner {
    height: 170px !important;
  }
  .banner-content {
    padding: 14px 16px !important;
  }
  .main-title {
    font-size: clamp(1.5rem, 7vw, 1.8rem) !important;
    letter-spacing: -0.5px;
  }
  .banner-subtext {
    font-size: 12px;
  }
}
