/*
 Theme Name:     Tax Help Child Theme
 Theme URI:      http://tax-help.ancorathemes.com/
 Description:    Tax Help Child Theme
 Author:         AncoraThemes
 Author URI:     http://ancorathemes.com/
 Template:       tax-help
 Version:        1.0
 Tags:           flexible-header, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, full-width-template, microformats, post-formats, theme-options, threaded-comments, translation-ready
 Text Domain:    tax-help
*/


/* ==========================================================================
   Child Theme: General & Global Styles
   ========================================================================== */

/* Change menu font family and size */
.header-menu a {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
}

/* Fixed Header */
.top_panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

/* Hide logo in opened mobile menu header */
.menu_mobile_opened .menu_mobile_header_wrap .sc_layouts_logo {
  display: none !important;
}

/* Social Icon Colors */
.sc_socials.sc_socials_default .sc_socials_item a,
.footer_wrap .sc_socials .social_icon { /* Simplified Selector */
  color: white !important;
  fill: white !important; /* Added fill for SVG icons */
}

.post_content_inner {
  color: #000;
}

.post_content .link-text {
  display: none;
}

/* Modern Search & Mobile Menu Background */
.search_modern .search_wrap,
.menu_mobile .menu_mobile_inner {
  background-color: #0473bf !important;
}

/* Hide socials in the main body of the opened mobile menu */
.menu_mobile.opened .menu_mobile_inner .socials_mobile {
  display: none !important;
}

/* Mobile Menu Close Button - Consolidated */
.menu_mobile .menu_mobile_close {
  position: absolute !important;
  top: 15px;
  right: 15px;
  margin: 0 !important;
  z-index: 10;
}

.menu_mobile .menu_mobile_close .menu_button_close_icon::before {
  content: '\e9e1';
  font-family: "fontello";
  line-height: 1;
}

/* Widget Link Underline Color */
.widget_custom_links .custom_links_list_item_title::after { /* Simplified Selector */
  background-color: #ffffff !important;
}


/* ==========================================================================
   Template: General Page
   ========================================================================== */

.page-template-general-template {
  margin-top: 145px;
  margin-bottom: 60px;
}

.page-template-general-template .page_content_wrap {
  padding-top: 0;
  padding-bottom: 0;
}

#general-featured-image {
  height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 0;
}


/* ==========================================================================
   Plugin Overrides: SweetAlert2 & Forms
   ========================================================================== */

/* --- Form Input Colors --- */
.form-style-5 textarea {
  color: #000 !important;
}

.form-style-5 input[type="submit"] {
  color: #FFF !important;
}

/* --- SweetAlert2 Popup Container --- */
.swal2-popup {
  width: auto !important;
  max-width: 380px !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

.swal2-html-container {
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  width: 100% !important;
}

.swal2-close {
  position: absolute !important;
  top: -10px !important;
  right: -10px !important;
  width: 30px !important;
  height: 30px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  color: #333 !important;
  z-index: 1000000 !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  font-family: 'Roboto', sans-serif !important;
}

.swal2-close:hover {
  background: #fff !important;
  transform: scale(1.1) !important;
}

/* --- Custom Offer Form Styles (.cf7-offer-form) --- */
.cf7-offer-form {
  background: linear-gradient(135deg, #0473bf 0%, #035a9e 100%);
  border-radius: 20px;
  padding: 25px 20px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  font-family: 'Roboto', sans-serif;
  position: relative;
  box-sizing: border-box;
}

.form-header {
  text-align: center;
  margin-bottom: 20px;
}

.form-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Corrected Emoji Character */
.form-icon::before {
  content: "📞"; /* Was previously a broken character */
  font-size: 20px;
  color: #fff;
}

.form-title {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 8px 0;
}

.form-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin: 0;
}

.form-field {
  margin-bottom: 15px;
}

.form-field input {
  width: 100%;
  padding: 12px 18px;
  border-radius: 50px;
  border: none;
  background: #fff;
  color: #333;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

.form-field input::placeholder {
  color: #999;
}

/*.form-field input:focus {*/
/* box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);*/
/*}*/

/* --- Commented out button styles are preserved below --- */
/*
.submit-btn {
  display: block;
  margin: 20px auto 0;
  padding: 12px 30px;
  font-weight: bold;
  font-size: 14px;
  border-radius: 50px;
  background: #ffffff;
  color: #035a9e;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 140px;
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
}
*/

.submit-btn:hover {
  transform: translateY(-2px);
  background: #f8f9fa;
  color: #035a9e;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
  transform: translateY(0);
  background: #e9ecef;
}


/* ==========================================================================
   Word Break Fix for Mobile/Tablet
   ========================================================================== */

@media (max-width: 1024px) {
  * {
    /* Disable automatic hyphenation */
    -webkit-hyphens: none !important;
    -moz-hyphens: none !important;
    -ms-hyphens: none !important;
    hyphens: none !important;

    /* Allow long words to break and wrap */
    word-wrap: break-word !important; /* Legacy property */
    overflow-wrap: break-word !important; /* Standard property */
  }
}


/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* --- Laptops & Desktops (1200px - 1400px) --- */
@media screen and (min-width: 1200px) and (max-width: 1400px) {
  #menu_main {
    font-size: 14px;
  }
}

/* --- Tablets (768px - 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {
  .menu_mobile.opened .menu_mobile_inner .menu_mobile_widgets_area {
    display: none !important;
  }
}

/* --- General Page & Form on Mobile --- */
@media (max-width: 768px) {
  /* General Template */
  .page-template-general-template {
    margin-top: 100px;
    margin-bottom: 40px;
  }
  #general-featured-image {
    height: 300px;
  }
}

@media (max-width: 480px) {
  /* General Template */
  #general-featured-image {
    height: 250px;
  }

  /* SweetAlert Form */
  .swal2-popup {
    max-width: calc(100vw - 20px) !important;
  }
  .cf7-offer-form {
    padding: 20px 15px;
  }
  .form-title {
    font-size: 16px;
  }
  .form-subtitle {
    font-size: 13px;
  }
  .form-field input {
    padding: 14px 18px;
    font-size: 16px;
    min-height: 44px;
  }
  .submit-btn {
    padding: 14px 30px;
    font-size: 16px;
    min-height: 48px;
    min-width: 160px;
  }
}

@media (max-width: 320px) {
  .cf7-offer-form {
    padding: 15px 10px;
  }
  .submit-btn {
    min-width: 140px;
    padding: 12px 20px;
  }
}