#dream-home-form-container {
    width: 100%;
    padding: 16px;
    font-family: Arial, sans-serif;
}

.dream-home-form-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.80);
    border-radius: 32px;
    box-shadow: 4px 4px 20px 0 rgba(0, 0, 0, 0.25), 0 12px 20px -4px rgba(150, 144, 155, 0.22);
    overflow: hidden;
    min-height: 200px;
    padding: 16px;
}

/* Left Sidebar */
.dream-home-sidebar {
    width: 35%;
    min-width: 280px;
    padding: 100px 40px;
    margin-right: 16px;
    border-radius: 24px;
    border: 1px solid #F1F2F9;
    background: #F1F0FB;
    box-shadow: 0 1px 8px 0 rgba(25, 33, 61, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-image {
    width: 100%;
    padding: 0 15%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-image img {
    width: 100%;
    max-width: 220px;
    align-self: center;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(0%) sepia(33%) saturate(6487%) hue-rotate(348deg) brightness(75%) contrast(89%);
}

/* Steps Navigation */
.steps-navigation {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
    width: 100%;
    margin-top: 40px;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-indicator:hover .step-number {
    transform: scale(1.05);
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 6px 0 rgba(7, 0, 110, 0.03), 0 -2px 2px 0 rgba(27, 35, 85, 0.07) inset, 0 4px 6px 0 rgba(255, 255, 255, 0.40) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #a0a3bd;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.step-info {
    flex: 1;
}

.step-title {
    color: #170f49;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 4px 0;
    transition: color 0.3s ease;
}

.step-description {
    color: #6f6c8f;
    font-weight: 400;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Step Divider */
.step-divider {
    width: 3px;
    height: 40px;
    border-radius: 5px;
    background: rgba(37, 63, 75, 0.5);
    margin: 8px 0;
    margin-left: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.step-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    border-radius: 5px;
    background: #253F4B;
    transition: height 0.3s ease;
}

.step-divider.half-active::after {
    height: 20px;
    border-radius: 5px 5px 0 0;
}

.step-divider.full-active::after {
    height: 100%;
}

/* Active Step Styling */
.step-indicator.active .step-number {
    background: #253F4B;
    color: #fff;
}

.step-indicator.active .step-title {
    color: #170f49;
    font-weight: 700;
}

.step-indicator.completed .step-number {
    background: #253F4B;
    color: #fff;
}

.step-indicator.completed .step-title {
    color: #170f49;
}

.step-indicator.completed .step-description {
    color: #253F4B;
}

/* Animation for invalid navigation */
.step-indicator.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Form Body */
.dream-home-form-body {
    width: 100%;
    max-width: 660px;
    background: #fff;
    border-radius: 32px;
    padding: 48px;
    margin: 0 auto;
    box-shadow: 0 1px 8px 0 rgba(25, 33, 61, 0.06);
}

.dream-home-step {
    display: none;
    min-height: 200px;
}

.dream-home-step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 32px;
}

.step-header h2 {
    color: #170f49;
    font-weight: 600;
    font-size: 24px;
    margin: 0;
    line-height: 1.2;
}

.step-header p {
    color: #6f6c8f;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.step-content {
    margin-bottom: 30px;
}
.step-content #size-input {
    margin-top: 8px;
}
.step-content #dream-home-contact-form {
    margin-top: 8px;
}


/* State Selection Styles */
.state-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.state-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.state-option:hover {
    border-color: #007cba;
    background-color: #f8f9fa;
}

.state-option input[type="radio"] {
    margin-right: 10px;
}

.state-option input[type="radio"]:checked + .state-name {
    font-weight: bold;
    color: #007cba;
}

.state-option input[type="radio"]:checked {
    accent-color: #007cba;
}

/* Input Group Styles */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 14px;
    color: #170f49;
}

.input-group label .required {
    color: #ff0004;
}

.input-group input[type="number"],
.input-group select {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #D9DBE9;
    background: #FFF;
    box-shadow: 0 0.5px 1px 0 rgba(25, 33, 61, 0.04);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input[type="number"]:focus,
.input-group select:focus {
    outline: none;
    border-color: #F9991F;
    box-shadow: 0 0.5px 1px 0 rgba(25, 33, 61, 0.04), 0 0 0 3px rgba(249, 153, 31, 0.1);
}

/* Custom Select Styles - Override Hello Elementor */
#dream-home-form-container .custom-select {
    position: relative !important;
    width: 100% !important;
}

#dream-home-form-container .custom-select-display {
    width: 100% !important;
    padding: 16px !important;
    padding-right: 48px !important;
    border-radius: 14px !important;
    border: 1px solid #d9dbe9 !important;
    background: #FFF !important;
    box-shadow: 0 1px 1px 0 rgba(25, 33, 61, 0.04) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #A0A3BD !important;
    cursor: pointer !important;
    position: relative !important;
    line-height: 1.4 !important;
    min-height: 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    text-align: left !important;
    user-select: none !important;
}

#dream-home-form-container .custom-select-display:hover {
    border-color: #F9991F !important;
}

#dream-home-form-container .custom-select-display.has-value {
    color: #170F49 !important;
    font-weight: 400 !important;
}

#dream-home-form-container .custom-select-arrow {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    transition: transform 0.3s ease !important;
    z-index: 2 !important;
}

#dream-home-form-container .custom-select.open .custom-select-arrow {
    transform: translateY(-50%) rotate(180deg) !important;
}

#dream-home-form-container .custom-select-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #FFF !important;
    border: 1px solid #D9DBE9 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 12px 0 rgba(25, 33, 61, 0.08) !important;
    z-index: 1000 !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    margin-top: 4px !important;
    display: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#dream-home-form-container .custom-select.open .custom-select-dropdown {
    display: block !important;
}

#dream-home-form-container .custom-select-option {
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #170F49 !important;
    cursor: pointer !important;
    border-bottom: 1px solid #F1F2F9 !important;
    transition: background-color 0.2s ease !important;
    background: transparent !important;
    margin: 0 !important;
    line-height: normal !important;
    text-align: left !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
}

#dream-home-form-container .custom-select-option:last-child {
    border-bottom: none !important;
}

#dream-home-form-container .custom-select-option:hover {
    background-color: #F8F9FB !important;
}

#dream-home-form-container .custom-select-option.selected {
    background-color: #F1F0FB !important;
    color: #170F49 !important;
    font-weight: 500 !important;
}

.input-group select {
    cursor: pointer;
}

/* Custom Radio Button Styles */
#dream-home-form-container .timeframe-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

#dream-home-form-container .timeframe-option {
    display: flex !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    transition: none !important;
    position: relative !important;
    margin: 0 !important;
}

#dream-home-form-container .timeframe-option:hover {
    border: none !important;
    background: transparent !important;
}

#dream-home-form-container .timeframe-option input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: 1px solid #B6B6B6 !important;
    background: white !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.17) inset !important;
    margin: 0 !important;
    margin-right: 8px !important;
    cursor: pointer !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

#dream-home-form-container .timeframe-option input[type="radio"]:checked {
    border-color: #B6B6B6 !important;
    background: white !important;
}

#dream-home-form-container .timeframe-option input[type="radio"]:checked::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #231F20 !important;
}

#dream-home-form-container .timeframe-option .timeframe-name {
    color: #231F20 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

#dream-home-form-container .timeframe-option input[type="radio"]:checked + .timeframe-name {
    color: #231F20 !important;
    font-weight: 400 !important;
}

/* Contact Form Styles */
#dream-home-form-container #step-4 .form-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin-bottom: 16px !important;
    gap: 6px !important;
}

#dream-home-form-container #step-4 .form-group label {
    color: #586166 !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

#dream-home-form-container #step-4 .form-group label .required {
    color: #ff0004 !important;
}

#dream-home-form-container #step-4 .form-group input,
#dream-home-form-container #step-4 input[type="text"],
#dream-home-form-container #step-4 input[type="email"],
#dream-home-form-container #step-4 input[type="tel"] {
    width: 100% !important;
    padding: 10px 20px 10px 10px !important;
    border-radius: 14px !important;
    border: 1px solid #d9dbe9 !important;
    background: #FFF !important;
    box-shadow: 0 1px 1px 0 rgba(25, 33, 61, 0.04) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #170F49 !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    line-height: normal !important;
    height: auto !important;
    min-height: auto !important;
}

#dream-home-form-container #step-4 .form-group input::placeholder,
#dream-home-form-container #step-4 input[type="text"]::placeholder,
#dream-home-form-container #step-4 input[type="email"]::placeholder,
#dream-home-form-container #step-4 input[type="tel"]::placeholder {
    color: #A0A3BD !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

#dream-home-form-container #step-4 .form-group input:focus,
#dream-home-form-container #step-4 input[type="text"]:focus,
#dream-home-form-container #step-4 input[type="email"]:focus,
#dream-home-form-container #step-4 input[type="tel"]:focus {
    outline: none !important;
    border-color: #F9991F !important;
    box-shadow: 0 0.5px 1px 0 rgba(25, 33, 61, 0.04), 0 0 0 3px rgba(249, 153, 31, 0.1) !important;
}

#dream-home-form-container #step-4 .form-group input.error,
#dream-home-form-container #step-4 input[type="text"].error,
#dream-home-form-container #step-4 input[type="email"].error,
#dream-home-form-container #step-4 input[type="tel"].error {
    border-color: #ff0004 !important;
    box-shadow: 0 0.5px 1px 0 rgba(25, 33, 61, 0.04), 0 0 0 3px rgba(255, 0, 4, 0.1) !important;
}

/* Results Container Styles */
#dream-home-results-container {
    width: 100%;
    padding: 16px;
    font-family: Arial, sans-serif;
}

.dream-home-results-wrapper {
    width: 100%;
    padding: 100px 40px;
    border-radius: 32px;
    border: 1px solid #D9DBE9;
    background: #FFF;
    box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.25), 0 12px 20px -4px rgba(150, 144, 155, 0.22);
    text-align: center;
}

.dream-home-results-wrapper .results-titles {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.dream-home-results-wrapper #result-title-1,
.dream-home-results-wrapper #result-title-2 {
    color: #170F49;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
}

@media (max-width: 768px) {
    .dream-home-results-wrapper {
        padding: 60px 24px;
    }
}

/* Navigation Styles */
.step-navigation {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
}

.btn {
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    color: #fff;
    min-width: 120px;
    flex: 1;
    max-width: 200px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #F9991F;
    box-shadow: 0 2px 5px 0 rgba(74, 58, 255, 0.25), 0 -2px 2px 0 rgba(0, 66, 137, 0.15) inset, 0 1px 1px 0 rgba(255, 255, 255, 0.10) inset, 0 3px 4px 0 rgba(223, 238, 255, 0.10) inset;
}

.btn-primary:hover:not(:disabled) {
    background: #e6880d;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #253f4b;
    box-shadow: 0 2px 5px 0 rgba(74, 58, 255, 0.25), 0 -2px 2px 0 rgba(0, 66, 137, 0.15) inset, 0 1px 1px 0 rgba(255, 255, 255, 0.10) inset, 0 3px 4px 0 rgba(223, 238, 255, 0.10) inset;
}

.btn-secondary:hover {
    background: #1a2d36;
    transform: translateY(-1px);
}

.dream-home-results-wrapper .call-button-container {
    text-align: center;
    margin-top: 0;
}

.dream-home-results-wrapper .call-button {
    background-color: #F9991F;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.dream-home-results-wrapper .call-button:hover {
    background-color: #F9991F;
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.error-message-container {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin: 20px;
    border: 1px solid #f5c6cb;
}

.error-message {
    color: #dc3545;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

/* Mobile Steps Navigation - Hidden on desktop */
.mobile-steps {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dream-home-form-wrapper {
        flex-direction: column !important;
        background: #fff !important;
        padding: 60px 20px !important;
        overflow: visible;
    }
    
    .dream-home-sidebar {
        display: none !important;
    }
    
    .mobile-steps {
        display: flex !important;
    }
    
    .dream-home-form-body {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none;
    }
    
    .step-header h2 {
        font-size: 24px !important;
    }
    
    .mobile-steps {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 40px !important;
    }
    
    .mobile-steps .step-indicator {
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: auto !important;
        width: max-content !important;
    }
    
    
    .mobile-steps .step-info {
        display: none !important;
    }
    
    .mobile-steps .step-divider {
        width: 20px !important;
        height: 2px !important;
        margin: 0 !important;
        margin-left: 0 !important;
    }
    
    .mobile-steps .step-divider::after {
        width: 0 !important;
        height: 2px !important;
        transition: width 0.3s ease !important;
    }
    
    .mobile-steps .step-divider.half-active::after {
        width: 10px !important;
        height: 2px !important;
        border-radius: 0 !important;
    }
    
    .mobile-steps .step-divider.full-active::after {
        width: 100% !important;
        height: 2px !important;
    }
}

@media (max-width: 768px) {
    #dream-home-form-container {
        padding: 8px !important;
    }
    
    .dream-home-form-wrapper {
        padding: 60px 16px !important;
        border-radius: 24px !important;
    }
    
    .step-navigation {
        flex-direction: row !important;
        gap: 32px !important;
        justify-content: center !important;
    }
    
    .btn {
        flex: 1 !important;
        padding: 14px 32px !important;
        max-width: 200px !important;
    }
    
    .mobile-steps {
        gap: 4px !important;
        margin-bottom: 30px !important;
        margin-top: 0 !important;
    }
    
    
    .mobile-steps .step-divider {
        width: 40px !important;
    }
}