/*
Theme Name: Child Theme
Author: Flux Bucket
Author URI: fluxbucket.com
Description: This file adds additional styles to the style.css theme. Perhaps view it as a child theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roofrightnow
*/
.p-t-0 {
    padding-top: 0px;
}
.m-t-0 {
    margin-top: 0px;
}
.p-b-0 {
    padding-bottom: 0px;
}
.m-b-0 {
    margin-bottom: 0px;
}
.p-t-sm {
    padding-top: 1.5em;
}
.m-t-sm {
    margin-top: 1.5em;
}

.well-dark {
    background: #000;
    opacity: 0.5;
    border: #000;
}

.address-input {
    border-radius: 0px !important;
}

.cta-btn {
    border-radius: 0px !important;
}
.cta-btn:hover {
    background: rgba(226, 69, 69, .8) !important;
    border: rgba(226, 69, 69, .8);
}

.masthead-small {
    background: #e24545 url('../images/masthead-bg-image2.jpg') no-repeat right center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
    padding-top: 6em;
    padding-bottom: 6em;
    color: #fff;
    font: inherit;
}

@media (min-width: 768px) and (max-width: 1000px) {
   #address-form {
       margin-top: 100px !important;
   }
}

/**
 * Sub Nav for Why Roof Right Now Page
 */
.why-rrn-section {
  /*margin-top: 20px;*/
  /*padding-top: 10px;*/
}
.why-rrn-link {
  color: #fff;
  font-size: 1.2em;
}
.why-rrn-link:hover {
  background: #fff !important;
  color: #000 !important;
}
.active.why-rrn-link  {
  color: #000;
  background: #fff;
}
.red-header {
  color: #000;
  font-size: 40px;
  font-weight: bold;
  padding-top: 10px;
}
.why-rrn-header {
  font-weight: bold;
}
.fp-section:active {
  border: 0px;
  outline:0;
}
.banner {
  display: block;
  width: 100%;
  background: #e24545;
  color: #fff;
  text-align: center;
}
div:focus {
  outline:0;
}

.gform_wrapper input {
border:0px solid;
background:;
border-radius:0px;
color:
}

.gform_wrapper .textarea {
border:0px solid;
background:;
border-radius:0px;
color:
}

.gform_wrapper input[type="submit"] {
border:0px solid;
background:;
border-radius:0px;
color:
}

.gform_wrapper input[type="submit"]:hover,.gform_wrapper input[type="submit"]:focus {
border:0px solid;
background:;
border-radius:0px;
color:
}

img.wp-smiley,img.emoji {
display:inline !important;
border:none !important;
box-shadow:none !important;
height:1em !important;
width:1em !important;
margin:0.07em !important;
vertical-align:-0.1em !important;
background:none !important;
padding:0 !important
}

/*
 * Client Feedback Fixes - January 2025
 */

/* 1. Fix horizontal scrolling issue at 100% */
body {
    overflow-x: hidden;
}

.container-fluid-typo {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure images don't cause horizontal overflow */
img {
    max-width: 100%;
    height: auto;
}

/* 2. Make hero text more visible on busy background */
.masthead-small h1,
.masthead-small p {
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 3. Fix button hover colors - Change blue to lighter red */
/* Bootstrap primary button override */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #f47373 !important; /* Lighter red */
    border-color: #f47373 !important;
    color: #fff !important;
}

/* Override the existing cta-btn hover (line 43-46) with lighter red */
.cta-btn:hover,
.cta-btn:focus {
    background-color: #f47373 !important; /* Lighter red instead of rgba */
    border-color: #f47373 !important;
}

/* 4. Apply Now and other button hover fix */
.btn:hover,
.btn:focus,
.btn:active {
    background-color: #f47373 !important; /* Lighter red instead of blue */
    border-color: #f47373 !important;
}

/* Ensure default button state */
.btn-primary,
.cta-btn {
    background-color: #e24545;
    border-color: #e24545;
}

/* Fix button element styling to match link buttons */
button.cta-btn {
    height: auto !important; /* Override the fixed 2.75em height from .btn */
    line-height: 1.4; /* Good line height for readability */
    padding: 10px 20px; /* Reasonable padding */
    border-radius: 25px !important; /* Match the design */
    white-space: nowrap; /* Keep text on one line now that we have more space */
    width: 100%; /* Full width of container */
}

/* 5. Mobile responsive fixes */
@media (max-width: 767px) {
    /* Fix partner logos on mobile */
    .partner-icons {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        display: block;
        margin: 0 auto;
    }
    
    /* Fix charts and images on mobile */
    .img-pos-left,
    .img-pos-right,
    .img-pos-center {
        float: none !important;
        margin: 0 auto 20px !important;
        display: block !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Ensure containers don't overflow */
    .container,
    .container-fluid,
    .container-fluid-typo {
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    
    /* Fix any table/chart overflow */
    table {
        display: block;
        overflow-x: auto;
        max-width: 100%;
    }
    
    /* Reduce font sizes for better mobile readability */
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .red-header {
        font-size: 28px;
    }
}

/* Additional mobile fixes for very small screens */
@media (max-width: 480px) {
    /* Further reduce padding on very small screens */
    .container,
    .container-fluid,
    .container-fluid-typo {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Ensure form elements fit */
    .form-control,
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Stack form elements vertically on small screens */
    #address-form .col-md-8,
    #address-form .col-md-4 {
        width: 100%;
    }
}

/* Ensure no element can cause horizontal scroll */
* {
    max-width: 100%;
}

/* Exception for buttons - allow them to size naturally */
button {
    max-width: none;
}

/* Fix for specific elements that might overflow */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

@media (max-width: 767px) {
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
}
