/* Add Listing Page Styles */

.add-listing-section {
    padding-bottom: 50px;
}

.card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(140, 9, 31, 0.15);
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #e0e0e0;
    border-radius: 10px 0 0 10px;
}

/* Section Subtitle */
.section-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Image Upload Styles */
.image-upload-container {
    margin-top: 10px;
}

.image-upload-box {
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.image-upload-box:hover {
    border-color: var(--primary-color);
}

.image-preview {
    width: 100%;
    height: 120px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.btn-upload {
    background-color: #ffebee;
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-upload:hover {
    background-color: #ffcdd2;
    color: #6b071a;
    transform: translateY(-2px);
}

/* Alert Styles */
.alert-info {
    background-color: #e3f2fd;
    border-color: #bbdefb;
    color: #0d47a1;
    border-radius: 10px;
    padding: 12px 15px;
}

/* Radio Button Styles */
.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.2em;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-weight: 500;
    padding-left: 5px;
}

/* Submit Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #6b071a);
    border: none;
    border-radius: 10px;
    padding: 13px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(140, 9, 31, 0.2);
    max-width: max-content;
    margin: 0 auto;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6b071a, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(140, 9, 31, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem !important;
    }

    .image-preview {
        height: 100px;
    }

    .btn-upload {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

/* Animation for form elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    animation: fadeInUp 0.5s ease-out forwards;
}

.form-group:nth-child(2) {
    animation-delay: 0.1s;
}

.form-group:nth-child(3) {
    animation-delay: 0.2s;
}

.form-group:nth-child(4) {
    animation-delay: 0.3s;
}
.form-group .form-control, .form-group .form-select {
    border: var(--bs-border-width) solid var(--bs-border-color);
}