/**
 * Get a Quote modal — #myModal.homecontactuspopup
 * Scoped under .homecontactuspopup only; keeps custome.css and other sheets conflict-free.
 * Load after Bootstrap (linked from include/footer2.php).
 */

html body .homecontactuspopup .modal-content {
    position: relative;
    background: #0a2031;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

html body .homecontactuspopup .modal-content .btn-close {
    position: absolute;
    z-index: 1;
    right: 12px;
    top: 12px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
    background: #fff;
    color: #000;
    font-size: 15px;
    line-height: 21px;
    font-weight: 600;
    opacity: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

html body .homecontactuspopup .modal-content .modal-header .btn-close:before {
    color: #000;
}

.homecontactuspopup .modal-dialog {
    margin: 75px auto 10px;
}

.homecontactuspopup .modal-dialog.modal-get-quote {
    max-width: 560px;
    width: calc(100% - 2rem);
    margin: 4.5rem auto 1.25rem;
}

.homecontactuspopup .modal-body {
    padding: 2rem 1.75rem 1.75rem !important;
    background:#fff !important;
}

.homecontactuspopup .modal-content .modal-header {
    display: none;
}

.homecontactuspopup .popupleftside {
    background: rgb(0, 63, 125);
    background: linear-gradient(
        90deg,
        rgba(0, 63, 125, 1) 0%,
        rgba(10, 32, 49, 1) 100%,
        rgba(0, 212, 255, 1) 100%
    );
    height: 100%;
    padding: 35px;
}

.homecontactuspopup .contactbg {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.homecontactuspopup .contactbg .container {
    max-width: 100%;
    padding: 0 !important;
}

.homecontactuspopup .contactbg .row {
    margin-left: 0;
    margin-right: 0;
}

.homecontactuspopup .contactbg .col-md-12 {
    padding-left: 0;
    padding-right: 0;
}

.homecontactuspopup .contactbg h2 {
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #000!important;
    margin: 0 0 0.25rem 0;
    padding: 0;
}

.homecontactuspopup .contactbg h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 14px;
    margin-bottom: 6px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ff7602, #ffb347);
}

.homecontactuspopup .form-quote .wf-wrapper {
    max-width: 100%;
    margin: 0;
}

.homecontactuspopup .wf-parent {
    padding: 0;
    overflow: visible;
}

.homecontactuspopup #elementDiv4570153000001092101 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
}

.homecontactuspopup #elementDiv4570153000001092101 > *:nth-child(n + 3) {
    grid-column: 1 / -1;
}

@media (max-width: 540px) {
    .homecontactuspopup #elementDiv4570153000001092101 {
        grid-template-columns: 1fr;
    }
}

.homecontactuspopup .form-quote .wf-row {
    margin-bottom: 16px;
}

.homecontactuspopup .wf-field-input,
.homecontactuspopup .wf-field-dropdown {
    border-radius: 10px;
    border: 1px solid rgba(20, 45, 68, 0.18);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.homecontactuspopup .wf-field-input:focus,
.homecontactuspopup .wf-field-dropdown:focus {
    border-color: #ff7602;
    box-shadow: 0 0 0 3px rgba(255, 118, 2, 0.22);
}

.homecontactuspopup .wf-field-mandatory .wf-field-inner::before {
    background: unset!important;
    width: 4px;
    border-radius: 10px 0 0 10px;
}

.homecontactuspopup .form-quote .wf-btn {
    width: 50%;
    padding: 14px 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease,
        opacity 0.22s ease;
}

.homecontactuspopup .wform-btn-wrap {
    margin-top: 4px;
    justify-content: center !important;
}

/* Motion */
@keyframes homequote-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homequote-accent-line {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

.modal.fade.homecontactuspopup .modal-dialog.modal-get-quote {
    transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.42s ease-out;
    transform: translateY(22px) scale(0.97);
    opacity: 0;
}

.modal.show.homecontactuspopup .modal-dialog.modal-get-quote {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.homecontactuspopup.modal.show .contactbg h2 {
    animation: homequote-fade-up 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.homecontactuspopup.modal.show .contactbg h2::after {
    transform-origin: left center;
    animation: homequote-accent-line 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.homecontactuspopup.modal.show #elementDiv4570153000001092101 > * {
    animation: homequote-fade-up 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.homecontactuspopup.modal.show #elementDiv4570153000001092101 > *:nth-child(1) {
    animation-delay: 0.12s;
}

.homecontactuspopup.modal.show #elementDiv4570153000001092101 > *:nth-child(2) {
    animation-delay: 0.17s;
}

.homecontactuspopup.modal.show #elementDiv4570153000001092101 > *:nth-child(3) {
    animation-delay: 0.22s;
}

.homecontactuspopup.modal.show #elementDiv4570153000001092101 > *:nth-child(4) {
    animation-delay: 0.27s;
}

.homecontactuspopup.modal.show #elementDiv4570153000001092101 > *:nth-child(5) {
    animation-delay: 0.32s;
}

.homecontactuspopup.modal.show #elementDiv4570153000001092101 > *:nth-child(6) {
    animation-delay: 0.37s;
}

.homecontactuspopup.modal.show #elementDiv4570153000001092101 > *:nth-child(7) {
    animation-delay: 0.42s;
}

.homecontactuspopup.modal.show #elementDiv4570153000001092101 > *:nth-child(8) {
    animation-delay: 0.47s;
}

.homecontactuspopup.modal.show .modal-content > .btn-close {
    animation: homequote-fade-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.homecontactuspopup .wf-field-inner:hover .wf-field-input:not(:focus-visible):not(:disabled),
.homecontactuspopup .wf-field-inner:hover .wf-field-dropdown:not(:focus-visible):not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.homecontactuspopup .form-quote .wf-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(255, 113, 20, 0.48);
    filter: brightness(1.04);
}

.homecontactuspopup .form-quote .wf-btn:active:not(:disabled) {
    transform: translateY(0);
    filter: brightness(0.98);
}

@media (prefers-reduced-motion: reduce) {
    .modal.fade.homecontactuspopup .modal-dialog.modal-get-quote,
    .modal.show.homecontactuspopup .modal-dialog.modal-get-quote {
        transition: opacity 0.15s ease !important;
        transform: none !important;
    }

    .modal.fade.homecontactuspopup .modal-dialog.modal-get-quote {
        opacity: 0;
    }

    .modal.show.homecontactuspopup .modal-dialog.modal-get-quote {
        opacity: 1;
    }

    .homecontactuspopup.modal.show .contactbg h2,
    .homecontactuspopup.modal.show .contactbg h2::after,
    .homecontactuspopup.modal.show #elementDiv4570153000001092101 > *,
    .homecontactuspopup.modal.show .modal-content > .btn-close {
        animation: none !important;
    }

    .homecontactuspopup .wf-field-inner:hover .wf-field-input,
    .homecontactuspopup .wf-field-inner:hover .wf-field-dropdown,
    .homecontactuspopup .form-quote .wf-btn:hover:not(:disabled),
    .homecontactuspopup .form-quote .wf-btn:active:not(:disabled) {
        transform: none !important;
        filter: none !important;
    }
}
