/* Get Price Form Styles */

/* Force modal to be full screen and fixed */
#get-price-form-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(12px) !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Force above all other elements */
    transform: translateZ(0) !important;
    will-change: transform !important;
    /* Ensure modal is always in viewport */
    transform-origin: center center !important;
}

.get-price-form-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(12px) !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.get-price-form-modal.show {
    display: flex !important;
}

#get-price-form-modal.show {
    display: flex !important;
}

@media (min-width: 769px) {
    #get-price-form-modal.show {
        flex-direction: column;
    }
}

/* Prevent body scroll when modal is open */
body.get-price-form-open {
    overflow: hidden !important;
}

/* Remove problematic modal-open class rules */
body.modal-open {
    overflow: hidden !important;
}

.get-price-form-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #caedd6a6 0%, #82f3ffd9 100%) !important;
    z-index: 2147483647 !important;
    cursor: pointer !important;
}

.get-price-form-container {
    position: relative !important;
    background: white !important;
    padding: 40px !important;
    border-radius: 12px !important;
    max-width: 600px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    z-index: 2147483647 !important;
    margin: auto !important;
    position: relative !important;
}

/* Container header with back button and close button */
.get-price-form-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: none;
    height: 0;
}

.get-price-form-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.get-price-form-header-right {
    display: flex !important;
    align-items: center !important;
}

.get-price-form-back {
    background: none !important;
    border: none !important;
    font-size: 20px !important;
    cursor: pointer !important;
    color: #666 !important;
    width: 30px !important;
    height: 30px !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
}

.get-price-form-back.show {
    display: flex !important;
}

.get-price-form-back:hover {
    background-color: #f0f0f0 !important;
    color: #333 !important;
}

.get-price-form-close {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    color: #666 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
}

.get-price-form-close:hover {
    background-color: #f0f0f0 !important;
    color: #333 !important;
}

.get-price-form-content {
    padding: 20px 0 !important;
}

/* Body modal-open class */
body.modal-open {
    overflow: hidden !important;
}



/* Form Styles */
.get-price-form {
    width: 100%;
}

.get-price-form-progress {
    margin-bottom: 30px;
    background-color: #f0f0f0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.get-price-form-progress-bar {
    height: 100%;
    background: linear-gradient(91deg, #277799 0%, #44b2e1 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Steps */
.get-price-form-steps {
    position: relative;
    overflow: hidden;
}

.get-price-form-step {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.get-price-form-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Smooth transition between steps */
.get-price-form-step.fade-out {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.get-price-form-step.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.get-price-form-question {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.3;
}

/* Input Styles */
.get-price-form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.get-price-form-input:focus {
    outline: none;
    border-color: var(--cerulean);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.get-price-form-input::placeholder {
    color: #999;
}

/* Radio Styles */
.get-price-form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.get-price-form-radio-label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.get-price-form-radio-label:hover {
    border-color: var(--cerulean);
    background-color: #f8f9ff;
}

.get-price-form-radio-label input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
    accent-color: var(--cerulean);
}

.get-price-form-radio-label input[type="radio"]:checked + .get-price-form-radio-text {
    font-weight: 600;
    color: var(--cerulean);
}

.get-price-form-radio-label input[type="radio"]:checked ~ .get-price-form-radio-text::before {
    color: var(--cerulean);
}

.get-price-form-radio-label:has(input[type="radio"]:checked) {
    border-color: var(--cerulean);
    background-color: #f8f9ff;
}


.get-price-form-radio-text {
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

/* Navigation */
.get-price-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
}

.get-price-form-prev,
.get-price-form-next,
.get-price-form-submit {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.get-price-form-prev {
    background-color: #6c757d;
    color: white;
}

.get-price-form-prev:hover {
    background-color: #5a6268;
}

.get-price-form-next,
.get-price-form-submit {
    background-color: var(--cerulean);
    color: white;
}

.get-price-form-next:hover,
.get-price-form-submit:hover {
    filter: brightness(1.1);
}

.get-price-form-next:disabled,
.get-price-form-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Button Styles */
.get-price-form-btn {
    background: linear-gradient(135deg, var(--cerulean), #039b8b);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.get-price-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #039b8b, #004085);
}

.get-price-form-link {
    color: var(--cerulean);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.get-price-form-link:hover {
    color: #039b8b;
    border-bottom-color: #039b8b;
}

/* Loading State */
.get-price-form-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.get-price-form-loading.active {
    display: block;
}

.get-price-form-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--cerulean);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    #get-price-form-modal,
    .get-price-form-modal {
        align-items: flex-start !important;
        padding: 10px !important;
    }
    
    .get-price-form-container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        max-height: calc(100vh - 20px) !important;
        border-radius: 8px !important;
        padding: 20px !important;
    }
    
    .get-price-form-content {
        padding: 20px 10px !important;
    }
    
    .get-price-form-question {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }
    
    .get-price-form-navigation {
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 20px !important;
    }
    
    .get-price-form-prev,
    .get-price-form-next,
    .get-price-form-submit {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
    }
    
    .get-price-form-header {
        padding: 10px 0 !important;
    }
    
    .get-price-form-close {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
}

/* Error States */
.get-price-form-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.get-price-form-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.get-price-form-error.show {
    display: block;
} 

/* Submit button loading state */
.get-price-form-submit.loading {
    position: relative;
    color: transparent;
}

.get-price-form-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.get-price-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success message */
.get-price-form-success {
    text-align: center;
    padding: 40px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.get-price-form-success-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.get-price-form-success-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.get-price-form-success-message {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Error message */
.get-price-form-error {
    text-align: center;
    padding: 40px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.get-price-form-error-icon {
    font-size: 60px;
    color: #dc3545;
    margin-bottom: 20px;
}

.get-price-form-error-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.get-price-form-error-message {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Action buttons */
.get-price-form-close-btn,
.get-price-form-retry-btn {
    background: var(--cerulean);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.get-price-form-close-btn:hover,
.get-price-form-retry-btn:hover {
    background: #0056b3;
}

.get-price-form-retry-btn {
    background: #6c757d;
}

.get-price-form-retry-btn:hover {
    background: #545b62;
} 

/* Hide header and progress when showing success/error messages */
.get-price-form-modal .get-price-form-success ~ .get-price-form-header,
.get-price-form-modal .get-price-form-error ~ .get-price-form-header {
    display: none !important;
}

.get-price-form-modal .get-price-form-success ~ .get-price-form-progress,
.get-price-form-modal .get-price-form-error ~ .get-price-form-progress {
    display: none !important;
}

.get-price-form-modal .get-price-form-success ~ .get-price-form-navigation,
.get-price-form-modal .get-price-form-error ~ .get-price-form-navigation {
    display: none !important;
}

/* Alternative approach - hide when success/error messages exist */
.get-price-form-modal:has(.get-price-form-success) .get-price-form-header,
.get-price-form-modal:has(.get-price-form-error) .get-price-form-header {
    display: none !important;
}

.get-price-form-modal:has(.get-price-form-success) .get-price-form-progress,
.get-price-form-modal:has(.get-price-form-error) .get-price-form-progress {
    display: none !important;
}

.get-price-form-modal:has(.get-price-form-success) .get-price-form-navigation,
.get-price-form-modal:has(.get-price-form-error) .get-price-form-navigation {
    display: none !important;
}

/* CSS targeting with modal classes */
.get-price-form-modal.showing-success .get-price-form-header,
.get-price-form-modal.showing-error .get-price-form-header {
    display: none !important;
}

.get-price-form-modal.showing-success .get-price-form-progress,
.get-price-form-modal.showing-error .get-price-form-progress {
    display: none !important;
}

.get-price-form-modal.showing-success .get-price-form-navigation,
.get-price-form-modal.showing-error .get-price-form-navigation {
    display: none !important;
} 