/**
 * Car Auction Submission Form Styles
 */

/* Main container */
.car-auction-submission-container {
    margin: 0 auto;
}

.form-section {
    background: #fff;
    box-shadow: 1px 4px 7px 0 rgba(0, 0, 0, 0.11);
    border: 1px solid #d9dee7;
    padding: 15px 15px 0 15px;
    margin: 0 0 10px 0;
    position: relative;
}

/* Category tabs container */
.category-tabs-container {
    margin-bottom: 10px;
}

.category-icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* Category tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin: 0 auto;
    padding: 10px 0px;
}

/* Individual category tab */
.category-tab {
    flex: 1;
    min-width: 120px;
    width: 100%;
    text-align: center;
    padding: 15px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-tab.active {
    border-color: #ffc842;
    background-color: #ffc84221;
    box-shadow: 0 4px 8px #ffc8420f;
}

/* Category icon */
.category-icon {
    margin-bottom: 5px;
}

.category-icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* Category name */
.category-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.category-tab.active .category-name {
    color: #333;
    font-weight: 600;
}

/* Vehicle type container */
.vehicle-type-container {
    margin: 0 auto 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Section title */
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.form-fields-container input,
.form-fields-container select,
.form-fields-container textarea {
    height: 36px;
    outline: none !important;
    width: 100%;
    background: #fff;
    color: #1b2d4b;
    transition: border .5s ease;
    border: 1px solid #d9dee7;
    border-radius: 6px;
    padding: 8px 12px;
}

.form-fields-container textarea {
    height: 100px;
}

/* Form group */
.form-group {
    margin-bottom: 20px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Row container for form fields */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    width: 100%;
}

/* Clear fix for form rows */
.form-row:after {
    content: "";
    display: table;
    clear: both;
}

/* Flexible column layouts */
/* Section-based column layouts */
.cols-2 .form-group {
    width: 50%;
}

.cols-3 .form-group {
    width: 33.333%;
}

.cols-4 .form-group {
    width: 25%;
}

/* Individual form group column classes */
.col-1-2 {
    width: 50% !important;
}

.col-1-3 {
    width: 33.333% !important;
}

.col-2-3 {
    width: 66.666% !important;
}

.col-1-4 {
    width: 25% !important;
}

.col-3-4 {
    width: 75% !important;
}

.col-1-1 {
    width: 100% !important;
}

/* Photo upload styles */
.photo-upload-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

/* Technical condition styles */
.condition-layout {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-direction: column;
}

.condition-column {
    width: 30%;
}

.condition-option {
    display: flex
;
    align-items: center;
    margin-bottom: 5px;
}

.condition-option label {
    margin: 0;
}

.condition-option input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    margin-top: 0;
}

.condition-option label {
    font-size: 14px;
}

.diagram-column {
    text-align: center;
}

.car-diagram {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}

/* Color selection styles */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.color-option {
    position: relative;
}

.color-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Features grid styles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-checkbox {
    display: flex;
    align-items: center;
}

.feature-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.feature-checkbox label {
    font-size: 14px;
    cursor: pointer;
}

h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.color-circle {
    display: block;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-option input[type="radio"]:checked + .color-circle {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px #007bff;
}

/* Spinner input styles */
.with-spinner {
    padding-right: 30px;
}

.spinner-buttons {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    height: 80%;
}

.spinner-up, .spinner-down {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
    color: #6c757d;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-up:hover, .spinner-down:hover {
    color: #007bff;
}

/* Note style */
.note {
    font-size: 12px;
    color: #6c757d;
    font-weight: normal;
}

/* Button group styles */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.option-button {
    padding: 8px 15px;
    background-color: #f8f9fa;
    border: 1px solid #d9dee7;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-button:hover {
    background-color: #e9ecef;
}

.option-button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.checkbox-option {
    display: flex;
    align-items: center;
}

.checkbox-option input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
    height: auto;
}

.photo-upload-box {
    width: 150px;
    height: 150px;
    border: 2px dashed #d9dee7;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-upload-box:hover {
    border-color: #007bff;
    background-color: #f0f7ff;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.photo-placeholder i {
    font-size: 24px;
    margin-bottom: 5px;
}

.photo-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.photo-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-box {
    position: relative;
}

.delete-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.2s ease;
}

.delete-photo:hover {
    background-color: rgba(255, 0, 0, 0.9);
    transform: scale(1.1);
}

.add-photo-box .photo-placeholder i {
    font-size: 30px;
}

.required {
    color: #ff0000;
}

.field-note {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* Registration certificate preview */
#registration-certificate-preview {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #d9dee7;
    border-radius: 5px;
    background-color: #f8f9fa;
}

#registration-certificate-preview img {
    max-width: 100%;
    max-height: 200px;
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .cols-4 .form-group,
    .col-1-4 {
        width: 50% !important;
    }
    
    .cols-3 .form-group,
    .col-1-3 {
        width: 50% !important;
    }
    
    .col-2-3,
    .col-3-4 {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .cols-2 .form-group,
    .cols-3 .form-group,
    .cols-4 .form-group,
    .col-1-2,
    .col-1-3,
    .col-2-3,
    .col-1-4,
    .col-3-4 {
        width: 100% !important;
    }
}


.form-fields-container h3 {
    font-size: 18px;
    padding-bottom: 10px;
    margin: 0 !important;
}

/* Form controls */
.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    outline: none;
}

/* Submit button */
.car-auction-submit-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.car-auction-submit-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* Confirmation Screen Styles */
.auction-confirmation-screen {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    text-align: center;
    margin: 30px auto;
    max-width: 800px;
    animation: fadeInUp 0.5s ease-out;
}

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

.confirmation-icon {
    margin-bottom: 20px;
}

.confirmation-icon i {
    font-size: 80px;
    color: #4CAF50;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.confirmation-heading {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.confirmation-message {
    color: #555;
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.confirmation-info {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    font-style: italic;
}

.whats-next-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0 30px;
    text-align: left;
}

.whats-next-section h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.whats-next-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.whats-next-section li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.whats-next-section li:last-child {
    border-bottom: none;
}

.whats-next-section li i {
    color: #4CAF50;
    margin-right: 10px;
    font-size: 16px;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.confirmation-buttons .btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.confirmation-buttons .btn i {
    margin-right: 8px;
}

.confirmation-buttons .btn-primary {
    background-color: #4CAF50;
    color: white;
    border: none;
}

.confirmation-buttons .btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.confirmation-buttons .btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.confirmation-buttons .btn-secondary:hover {
    background-color: #e9e9e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Responsive styles for confirmation screen */
@media (max-width: 768px) {
    .auction-confirmation-screen {
        padding: 30px 20px;
    }
    
    .confirmation-heading {
        font-size: 24px;
    }
    
    .confirmation-message {
        font-size: 16px;
    }
    
    .confirmation-buttons {
        flex-direction: column;
    }
    
    .confirmation-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

.car-auction-submit-btn:active {
    transform: translateY(0);
}

/* Spinner */
.submit-spinner {
    margin-left: 8px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .category-tabs {
        justify-content: center;
    }
    
    .category-tab {
        min-width: 100px;
        max-width: 150px;
    }
}

@media (max-width: 576px) {
    .category-tab {
        min-width: 80px;
        padding: 10px 5px;
    }
    
    .category-icon img {
        width: 25px;
        height: 25px;
    }
    
    .category-name {
        font-size: 12px;
    }
}


.feature-checkbox label {
    width: 100%;
}

.feature-checkbox input {
    width: 15px;
    margin: 0;
}

.feature-checkbox label {
    margin: 0;
}

.form-fields-container h4 {
    font-size: 14px;
}

.feature-checkbox label {
font-size: 12px;
}

/* Description section styles */
.description-note {
    color: #777;
    font-size: 12px;
    margin-top: -5px;
    margin-bottom: 8px;
    font-style: italic;
}

.form-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.form-section textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Contact details and auction end styles */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

.checkbox-group label {
    font-size: 14px;
    line-height: 1.4;
}

.note {
    color: #777;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

/* Form buttons */
.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding: 20px 0;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: all 0.2s;
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #212529;
    border: 1px solid #ddd;
}

.btn-primary {
    background-color: #0d6efd;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
}

.checkbox-group label {
    margin: 0;
}