/* Progress Bar Styles */
#stepJobModal .progress-bar {
    background-color: var(--colorPrimary);
    height: 7px;
    width: 0%;
    transition: width 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}



/* Slide Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes crossfadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes crossfadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Animation Classes */
.slide-in-right {
    animation: crossfadeIn 0.2s ease-out forwards;
}

.slide-out-left {
    animation: crossfadeOut 0.2s ease-in forwards;
}

.slide-in-left {
    animation: crossfadeIn 0.2s ease-out forwards;
}

.slide-out-right {
    animation: crossfadeOut 0.2s ease-in forwards;
}

/* Button States */
.btn_next.disabled,
.btn_next:disabled,
.btn_question_next.disabled,
.btn_question_next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


/* Loading Button Animation */
.common_btn.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
    padding-right: 50px;
}

.common_btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 20px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Form Input Validation States */
.get_quote_input input.is-invalid,
.get_quote_input select.is-invalid,
.get_quote_input textarea.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

.get_quote_input input.is-valid,
.get_quote_input select.is-valid,
.get_quote_input textarea.is-valid {
    border-color: #28a745 !important;
}

/* Required Field Indicator */
.required-field::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Error Messages */
.error-message {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 400;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkbox/Radio Validation */
.location_check_area.has-error .form-check-label,
.radio_check_area.has-error .form-check-label {
    color: #dc3545;
}

/* Google Places Autocomplete Dropdown - must be higher than Bootstrap modal (1055) */
.pac-container {
    z-index: 99999 !important;
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.pac-item {
    padding: 10px 12px;
    cursor: pointer;
    border-top: 1px solid #e6e6e6;
    transition: background-color 0.2s ease;
}

.pac-item:hover {
    background-color: #f5f5f5;
}

.pac-item:first-child {
    border-top: none;
}

.pac-icon {
    margin-right: 10px;
}


/* Scrollable Service List */
.form_card #step3 .col-12 {
    scrollbar-width: thin;
    scrollbar-color: var(--colorPrimary) #f1f1f1;
}

.form_card #step3 .col-12::-webkit-scrollbar {
    width: 8px;
}

.form_card #step3 .col-12::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.form_card #step3 .col-12::-webkit-scrollbar-thumb {
    background: var(--colorPrimary);
    border-radius: 4px;
}

.form_card #step3 .col-12::-webkit-scrollbar-thumb:hover {
    background: var(--colorPrimaryDark, #555);
}

/* Modal Brand Logo */
.modal_brand_logo {
    max-width: 200px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.modal_brand_logo:hover {
    transform: scale(1.05);
}


.form_actions .common_btn {
    min-width: 140px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form_actions {
        flex-direction: column;
    }

    .form_actions .common_btn {
        width: 100%;
    }

    .modal_brand_logo {
        max-width: 150px;
    }
}

/* Focus States */
.get_quote_input input:focus,
.get_quote_input select:focus,
.get_quote_input textarea:focus {
    outline: none;
    border-color: var(--colorPrimary);
    box-shadow: none;
    transition: all 0.3s ease;
}

/* Confirmation Modal Progress Heading */
#closeModal .progress-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    animation: fadeIn 0.5s ease-in;
}

/* Other Input Field Special Style */
.other-input {
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.other-input:focus {
    outline: none;
    border-color: var(--colorPrimary);
    box-shadow: 0 0 0 3px rgba(var(--colorPrimaryRGB, 0, 123, 255), 0.1);
}

/* Step Indicator (Optional - if you want to add step numbers) */
.step-indicator {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

.step-indicator .current-step {
    color: var(--colorPrimary);
    font-weight: 700;
}

/* Consent area */
.step-consent-area {
    text-align: center;
    padding: 16px 0 0;
    border-top: 1px solid #eee;
}

/* Contact step: switch from absolute to flow layout so consent + button don't overlap fields */
#step9 .form_content,
#serviceMessage .form_content {
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

#step9 .form_content .row,
#serviceMessage .form_content .row {
    flex: 1;
}

#step9 .form_content .form_actions,
#serviceMessage .form_content .form_actions {
    position: static;
    transform: none;
    width: 100%;
}

.step-consent-text {
    font-size: 12px !important;
    color: #888;
    line-height: 1.6;
    margin-bottom: 10px;
}

.step-consent-text a {
    color: var(--colorPrimary);
    text-decoration: none;
    font-weight: 500;
}

.step-consent-text a:hover {
    text-decoration: underline;
}

.step-marketing-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
}

.step-marketing-check .form-check-input {
    margin-top: 2px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.step-marketing-check .form-check-label {
    font-size: 15px;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 0;
}