/* Reset and Base Styles */
.cwf-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
.form-progress {
    margin-bottom: 40px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7A8F87, #5A6B65);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Steps */
.step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step Headers */
.step h3 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #7A8F87;
}

.step p {
    text-align: center;
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Input Groups */
.input-group {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.input-field {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-field label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.input-field input {
    width: 150px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.input-field input:focus {
    outline: none;
    border-color: #7A8F87;
    box-shadow: 0 0 0 3px rgba(122, 143, 135, 0.2);
}

/* Option Buttons Grid - CENTERED */
.options-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

/* Option Buttons - MORE ROUNDED */
.option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 180px;
    justify-content: center;
    min-width: 160px;
}

.option-btn:hover {
    border-color: #7A8F87;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(122, 143, 135, 0.2);
}

.option-btn.selected {
    border-color: #5A6B65;
    background: linear-gradient(135deg, #7A8F87, #6A7F77);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(90, 107, 101, 0.3);
}

.option-btn img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 15px;
}

.option-btn span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.4;
}

.option-btn.selected span {
    color: #ffffff;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

/* Buttons - MORE ROUNDED */
button {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

#next-step1, #submit_window, #submit_door, #submit_otp {
    background: linear-gradient(135deg, #7A8F87, #5A6B65);
    color: white;
    border-radius: 25px;
}

#next-step1:hover, #submit_window:hover, #submit_door:hover, #submit_otp:hover {
    background: linear-gradient(135deg, #6A7F77, #4A5B55);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 107, 101, 0.3);
}

.btn-prev {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
}

.btn-prev:hover {
    background: #e9ecef;
    border-color: #7A8F87;
}

/* Phone and OTP Inputs - MORE ROUNDED */
#phone_number, #otp_code {
    width: 300px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    text-align: center;
    margin: 10px 0;
    transition: all 0.3s ease;
}

#phone_number:focus, #otp_code:focus {
    outline: none;
    border-color: #7A8F87;
    box-shadow: 0 0 0 3px rgba(122, 143, 135, 0.2);
}

/* Form Message - MORE ROUNDED */
.form-message {
    padding: 15px 20px;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading Spinner */
.cwf-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    border-radius: 0;
}

.cwf-loading .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #7A8F87;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

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

.cwf-loading p {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cwf-form-container {
        padding: 20px;
        margin: 10px;
        border-radius: 20px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 20px;
    }
    
    .input-field input {
        width: 100%;
        max-width: 200px;
        border-radius: 15px;
    }
    
    .options-grid {
        justify-content: center;
        gap: 15px;
    }
    
    .option-btn {
        min-height: 160px;
        padding: 15px 10px;
        border-radius: 20px;
        min-width: 140px;
    }
    
    .option-btn img {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }
    
    #phone_number, #otp_code {
        width: 100%;
        max-width: 280px;
        border-radius: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    button {
        width: 100%;
        max-width: 200px;
        border-radius: 20px;
    }
    
    .form-message {
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .step h3 {
        font-size: 20px;
    }
    
    .step p {
        font-size: 16px;
    }
    
    .options-grid {
        justify-content: center;
    }
    
    .option-btn {
        min-width: 120px;
        border-radius: 18px;
    }
    
    button {
        border-radius: 18px;
    }
}