/* Main Form Container */
.ibf-form-main-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ibf-form-step {
    width: 70%;
    padding: 20px;
    text-align: center;
    display: none;
}

.ibf-form-step.active {
    display: block;
}

/* Property Type Options */
.ibf-property-type-options {
    display: flex;
    gap: 50px;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Radio Button Styles */
.ibf-radio-btn input[type="radio"] {
    display: none;
}

.ibf-radio-btn {
    text-align: center;
    padding: 20px;
    border: 3px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s;
    width: 12rem;
    height: 12rem;
}

.ibf-radio-btn img {
    margin-bottom: 5px;
    height: 100px;
    width: auto;
    margin-top: -50px;
}

.ibf-radio-btn:has(input[type="radio"]:checked) {
    border-color: var(--ibf-accent-color, #156367);
}

.ibf-radio-btn:hover {
    background-color: #f1f1f1;
}

/* Form Rows */
.ibf-address-row {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.ibf-form-group {
    flex: 1;
}

.ibf-form-group label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
}

.ibf-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #3a4f66;
    border-radius: 4px;
}

/* Slider Styles */
.ibf-slider-container {
    margin: 20px 0;
}

.ibf-slider-wrapper {
    position: relative;
}

.ibf-slider-input {
    width: 100%;
    margin: 10px 0;
}

.ibf-slider-indicators {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

/* Button Container */
.ibf-btn-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 10px;
}

.ibf-next-btn, 
.ibf-back-btn, 
.ibf-submit-btn {
    padding: 10px 20px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.ibf-next-btn:hover, 
.ibf-back-btn:hover, 
.ibf-submit-btn:hover {
    opacity: 0.9;
}

/* Contact Fields */
.ibf-contact-fields {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

/* Consent Checkbox */
.ibf-consent-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.ibf-consent-group label {
    margin: 0;
}

/* Error Messages */
.ibf-error {
    color: #d63638;
    font-size: 12px;
    display: none;
    text-align: left;
    margin-top: 5px;
}

.ibf-error.show {
    display: block;
}

/* Success Message */
#ibf-success-message {
    text-align: center;
    padding: 40px;
    background-color: #f2f7f6;
    border-radius: 14px;
}

/* Loading Overlay */
#ibf-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ibf-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #034b4b;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: ibf-spin 1s linear infinite;
}

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

/* Responsive Design */
@media only screen and (max-width: 768px) {
    .ibf-form-step {
        width: 100%;
    }
    
    .ibf-property-type-options {
        gap: 20px;
    }
    
    .ibf-radio-btn {
        width: 10rem;
        height: 10rem;
    }
    
    .ibf-address-row,
    .ibf-contact-fields {
        flex-direction: column;
        gap: 15px;
    }
    
    .ibf-btn-container {
        flex-direction: column;
    }
}

@media only screen and (max-width: 480px) {
    .ibf-radio-btn {
        width: 8rem;
        height: 8rem;
    }
    
    .ibf-radio-btn img {
        height: 70px;
    }
}