/* Widget Container */
.auto-sales-widget {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    max-width: 500px;
    margin: 20px auto;
    font-family: 'Roboto', sans-serif;
    color: #333;
    transition: height 0.3s ease, box-shadow 0.3s ease;
    height: auto !important;
    min-height: 100px !important; 
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    overflow: visible !important;
}

.auto-sales-widget:has(.expanded) {
    height: auto !important;
    min-height: 100px !important;
}

.expanded {
    animation: expand-down 0.3s ease-out forwards;
}

@keyframes expand-down {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


.auto-sales-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Title and Description */
.widget-title {
    font-size: 1.8rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.widget-description {
    text-align: center;
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Form Styles */
.auto-sales-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 1rem;
    color: #34495e;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-input {
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

/* Submit Button */
.form-submit-btn {
    background: #3498db;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-submit-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

/* Step 2 Container */
.form-container {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.form-input, .form-select, textarea {
    border: 2px solid #ddd;
    background-color: #fff;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.error {
    border: 2px solid red !important;
    background-color: #ffe6e6 !important;
}

.valid {
    border: 2px solid green !important;
    background-color: #e6ffe6 !important;
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

