/* Leads Form Landing Page Styles */

.leads-landing-page {
    margin: 0;
    padding: 0;
    font-family: "Work Sans", sans-serif;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh; 
    align-items: center;
    
    background-repeat: no-repeat;
    background-image: url('../images/Layer_1.png');
    background-size: 192px 104px;
    background-position: right bottom;
}

.hero-section .container{
    padding-bottom: 250px;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: url('/images/mountain-road-bg.jpg'); */
    background-size: cover;
    background-position: center;
    z-index: -1;
}
.hero-background img{
    display: block;
    width: 100%;
    margin: 0 auto;
}

.hero-content {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
}

/* Tracker Logo */
.tracker-logo {
    margin-bottom: 30px;
}

.tracker-logo svg {
    width: 200px;
    height: auto;
}

/* Hero Text */
.hero-text {
    margin-bottom: 20px;
    font-weight: 600;
}

.service-name {    
    font-size: 19px;
    margin-bottom: 0;
    font-weight: 600;
    color: #000;
}

.service-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    position: relative;
}

.service-title::after { 
    content: "";
    width: 0;
    background-color: #ffcb05;
    position: absolute;
    left: -20px;
    bottom: 0px;
    height: 37%;
    display: block;
    padding: 0 20px;
    box-sizing: content-box;
    transition: width 1s;
    transition-delay: 5s;
    z-index: -1;
    -webkit-animation: loading-anim 2s 1 forwards;
    -khtml-animation: loading-anim 2s 1 forwards;
    -moz-animation: loading-anim 2s 1 forwards;
    -ms-animation: loading-anim 2s 1 forwards;
    -o-animation: loading-anim 2s 1 forwards;
    -webkit-animation-play-state: running;
    animation-play-state: running;
}

.service-price {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
}

/* Yellow Circle Container*/
.yellow-circle-container{

}

/* Yellow Circle */
.yellow-circle {
    background-color: #ffcb05;
    border-radius: 50%;
    width: 400px;
    width: 560px;
    height: 400px;
    height: 410px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    padding: 50px 40px;
    box-sizing: border-box;
    position: relative;
}

.yellow-circle h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.yellow-circle p {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

/* Lead Form Container */
.lead-form-container {
    background: white;
    border-radius: 56px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 630px;
    width: 100%;
    text-align: center;
    
    position: absolute;
    /* bottom: -25%; */
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
}

.form-icon {
    display: flex;
    justify-content: center;
}

.phone-icon {
    width: 40px;
    height: 40px;
    background-color: #ffcb05;
    border-radius: 50%; 
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    position: relative;

    svg{
        width: 40px;
        height: 40px;
    }
    img{            
        width: 24px;
        height: 24px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

.form-title {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 30px 0 30px 0;
    position: relative;
}

.form-title::after {
    content: "";
    width: 0;
    background-color: #ffcb05;
    position: absolute;
    left: 0;
    bottom: 0px;
    height: 50%;
    display: block; 
    box-sizing: content-box;
    transition: width 1s;
    transition-delay: 5s;
    z-index: -1;
    -webkit-animation: loading-anim 2s 1 forwards;
    -khtml-animation: loading-anim 2s 1 forwards;
    -moz-animation: loading-anim 2s 1 forwards;
    -ms-animation: loading-anim 2s 1 forwards;
    -o-animation: loading-anim 2s 1 forwards;
    -webkit-animation-play-state: running;
    animation-play-state: running;
}

/* Form Styles */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-field {
    flex: 1;
}

.page-body.lead-form-wrapper .text-field .input,
.page-body.lead-form-wrapper .select-field .input{
    border-bottom: none;
}

.form-field input,
html body .page-body.lead-form-wrapper .text-field .input,
html body .page-body.lead-form-wrapper .select-field .input {
    width: 100%;
    padding: 15px;
    background: #F8F8F8;
    border-radius: 8px;
    font-size: 16px;
    font-family: "Work Sans", sans-serif;
    border-color: transparent;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    color:  #5a5a5a;
}
.form-field input::placeholder {
    color: #1B1139;
    font-family: "Work Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
}
form .field-label{
    color:  #5a5a5a;
    font-weight: 600;
}
.form-field input:focus {
    outline: none;
    border-color: #ffcb05;
    box-shadow: 0 0 0 2px rgba(255, 203, 5, 0.2);
}

.form-field input::placeholder, .form-field input:placeholder {
    color: #1B1139 !important; 
} 

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #ffcb05;
}

.form-checkbox label {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.terms-link,
.privacy-link {
    color: #ffcb05; 
}

.terms-link:hover,
.privacy-link:hover {
    text-decoration: underline;
}
.col-box{
    gap: 0 15px;
}
.submit-btn, input[type=submit].lead-email {
    background-color: #ffcb05;
    color: #333;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    max-width: unset;
    width: 100%;
}

.submit-btn:hover {
    background-color: #f8be0e;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: #fff;
}

.features-section .container{
    padding: 0;
    overflow: hidden;
}

.features-carousel {
    display: flex;
    gap: 30px;
    transition: none;
    will-change: transform;
}

.features-carousel.transitioning {
    transition: transform 0.5s ease-in-out;
}

.feature-slide {
    flex: 0 0 300px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    opacity: 1;
}

.feature-slide.clone {
    pointer-events: none;
}

.yellow-slide {
    background-image: url(../images/Rectangle.png);
    background-position: center center;
    background-repeat:  no-repeat;
    background-size: cover;
    background-color: #ffcb05;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
    width: 400px;
    border: none;
    border-radius: unset !important;
    z-index: 3;
}

.yellow-slide h3 {
    /* font-size: 32px; */
    font-size: 44px; 
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}
.yellow-slide p.h3 {
    font-weight: 600;
    font-size: 1.1rem;
}

.yellow-slide h3 span:after{
    background-color: #F2CB13 !important;
}

.yellow-slide p {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
}

.feature-description {
    font-size: 14px !important;
    margin-bottom: 30px !important;
}

.feature-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
}
.feature-buttons .btn{
    max-width: 100%;
}

.btn {
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;

    font-family: "Work Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.btn-outline {
    background: transparent;
    border: 2px solid #333;
    color: #333;
}

.btn-outline:hover {
    background: #333;
    color: white;
}

.btn-primary {
    background: #333;
    color: white;
    border: 2px solid #333;
}

.btn-primary:hover {
    background: #555;
    border-color: #555;
}

.image-slide {
    position: relative;
    min-height: 400px;
}

.feature-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px 20px 30px;
}

.feature-icon {
    width: 50px;
    height: 50px; 
    border-radius: 50%;
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-overlay h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-overlay p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    min-height: 58px;
}

/* Carousel Navigation */
.carousel-nav {
    /* display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; */
    margin-top: 40px;
    position: relative;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;

    position: absolute;
    top: 0;
}
.next-btn svg,
.prev-btn svg{
    margin: 5px auto 0;
    width: 22px;
}

.next-btn{
    right: 20px;
}
.prev-btn{
    right: 90px;
}

.nav-btn:hover {
    background-color: #555;
}

.carousel-dots {
    display: flex;
    gap: 10px;
    padding: 19px 30px 19px 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #ffcb05;
}

/* We Got You Section */
.we-got-you-section {
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.section-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yellow-circle-large { 
    width: 300px; 
    display: flex;
    align-items: start;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin: -170px 0 0 -40px;
}

.yellow-circle-large h2 {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    text-align: left;
    line-height: 1;
    margin: 0;
}

.yellow-circle-large h2 span, .feature-content h3 span {
    display: inline-block;
    position: relative;
}
.yellow-circle-large h2 span:after, .feature-content h3 span:after{
  content: "";
  width: 0;
  background: var(--Banana, #FFF8C5);
  position: absolute;
  left: -4px;
  bottom: 4px;
  height: 30%;
  display: block;
  padding: 0 0 0 13px;
  box-sizing: content-box;
  transition: width 1s;
  transition-delay: 5s;
  z-index: -1;
  -webkit-animation: loading-anim 2s 1 forwards;
  -khtml-animation: loading-anim 2s 1 forwards;
  -moz-animation: loading-anim 2s 1 forwards;
  -ms-animation: loading-anim 2s 1 forwards;
  -o-animation: loading-anim 2s 1 forwards;
  -webkit-animation-play-state: running;
  animation-play-state: running;
}

.vehicle-silhouette {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.vehicle-silhouette img {
    height: 80px;
    width: auto;
}

/* Footer */
.landing-footer {
    background-color: #ffcb05;
    padding: 40px 0;
    text-align: center;
}

.footer-logo svg {
    width: 150px;
    height: auto;
}

.page-body.lead-form-wrapper{
    position: relative;
    z-index: 10;
}

/* Responsive Design */
@media (min-width: 768px) {
    .container-wrapper .container:first-of-type{
        width: 30%;
    }
    .container-wrapper .container:last-of-type{
        width: 70%;
    }
    .container-wrapper{
        display: flex;
        flex-direction: row;
        max-width: 1500px;
        margin: 0 auto;
    }
}
@media (min-width: 1500px) {
    .yellow-slide{
         width: 500px;
         height: 500px;
         padding: 50px;
    }
    .container-wrapper{
        max-width: 1700px;
    }
}
@media (max-width: 1500px) {
    .container-wrapper .container:first-of-type {
        /* width: 45%; */
        width: 450px;
        background-color: #ffffff;
        position: relative;
        z-index: 10;
    }
    .container-wrapper .container:last-of-type{
        width: 60%;
    }
}
@media (max-width: 1100px) {

    .carousel-dots {
        padding-left: 30px;
    }
    .yellow-slide{
        width: 100%;
    }
    
    .feature-buttons {
        flex-direction: column;
    }
    
    .features-carousel {
        gap: 20px;
        padding: 20px;
    }
    
    .feature-slide {
        flex: 0 0 280px;
    }
    
}
@media screen and (max-width: 960px){
    .lead-form-container {
        bottom: -65%;
    }
}
@media (max-width: 768px) {
    .container-wrapper .container:first-of-type {
     width: 100%;   
    }
    .container-wrapper .container:last-of-type{
     width: 100%;   
    }

    .hero-content {
        padding: 20px;
    }
    
    .service-title {
        font-size: 36px;
    }
    .yellow-circle-container{
        position: relative;
        width: 100%;
        margin-bottom: 340px;
    }
    .yellow-circle {
        width: 100%;
        height: 100%;
    }
    .features-section{
        padding: 0 0 80px;
    }
    .hero-section .hero-content,
    .hero-section .container{
        padding: 0;
    }
    
    .hero-section .hero-content{
        padding-top: 20px;
    }
    .hero-background{
        position: absolute;
        /* top: 0; */
        top: -180px;
    
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;

        img{
            display: none;
        }
    }
    
    .yellow-circle h3 {
        font-size: 32px;
        width: 60%;
    }
    
    .lead-form-container {
        padding: 30px 20px; 
        width: 90%;
        bottom: 16rem;
        
        /* bottom: unset; */
        /* bottom: 210px; */
        border-radius: 22px;
    } 
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }  
    .lead-form-wrapper{
        padding: 0;
    }
}
@media (max-width: 730px) {

    .lead-form-container { 
        bottom: 9rem; 
    } 
}
@media (max-width: 680px) {

    .lead-form-container { 
        bottom: 3rem; 
    } 
}
@media (max-width: 560px) {
    .yellow-circle-container{
        margin-bottom: 400px;
    }
}
@media (max-width: 530px) {

    .lead-form-container { 
        bottom: 1rem; 
    } 
}
@media (max-width: 490px) {
    .tracker-logo svg {
        width: 150px;
    }
    
    .features-section{
        padding: 0 0 50px;
    }
    .service-title {
        font-size: 28px;
    }
 
    .yellow-circle-container { 
        margin-bottom: 500px;
    }
     
    .yellow-circle h3 {
        font-size: 27px;
    }
    
    .lead-form-container {
        bottom: 18px;
     }
    
    .form-title {
        font-size: 20px;
    } 
}
@media (max-width: 420px) {
    
    .lead-form-container {
        bottom: 0;
     }
    .yellow-circle h3{
        font-size: 24px;
    }
}
/* Additional Animations and Enhancements */

/* Loading animation for submit button */
.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form field focus animations */
.form-field {
    position: relative;
}

.form-field.focused input {
    border-color: #ffcb05;
    box-shadow: 0 0 0 2px rgba(255, 203, 5, 0.2);
}

/* Hover effects for feature slides */
.feature-slide {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.feature-slide:not(.clone):hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Pulse animation for phone icon */
.phone-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 203, 5, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 203, 5, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 203, 5, 0);
    }
}

/* Smooth transitions for all interactive elements */
a,
button,
.form-field input,
.nav-btn,
.dot {
    transition: all 0.3s ease;
}

/* Error message styling */
.error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Success message animation */
.form-success {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lazy loading placeholder */
img.lazy {
    background: #f0f0f0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50 20a30 30 0 1 0 0 60 30 30 0 1 0 0-60zm0 10a20 20 0 1 1 0 40 20 20 0 1 1 0-40z' fill='%23ddd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50px 50px;
}

/* Print styles */
@media print {
    .hero-section,
    .features-section,
    .we-got-you-section {
        page-break-inside: avoid;
    }
    
    .nav-btn,
    .carousel-nav {
        display: none;
    }
    
    .lead-form-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .yellow-circle,
    .submit-btn,
    .phone-icon {
        background-color: #000;
        color: #fff;
    }
    
    .form-field input {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .phone-icon {
        animation: none;
    }
}

/* Focus indicators for accessibility */
.form-field input:focus,
.submit-btn:focus,
.nav-btn:focus,
.dot:focus {
    outline: 2px solid #ffcb05;
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #ffcb05;
    color: #333;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Additional mobile optimizations */
@media (max-width: 320px) {
    .yellow-circle {
        width: 220px;
        height: 220px;
        padding: 20px 15px;
    }
    
    .yellow-circle h3 {
        font-size: 18px;
    }
    
    .yellow-circle p {
        font-size: 14px;
    }
    
    .lead-form-container {
        padding: 20px 10px;
    }
    
    .form-title {
        font-size: 18px;
    }
    
    .form-field input {
        padding: 12px;
        font-size: 14px;
    }
}