/* Vehicle Reception Form Styles */

.vehicle-reception-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
}

/* Reception Card */
.reception-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reception-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.reception-card-header {
    background: linear-gradient(135deg, #ab2328 0%, #8b1a1e 100%);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reception-card-header i {
    font-size: 20px;
    opacity: 0.9;
}

.reception-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.reception-card-body {
    padding: 24px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ab2328;
    box-shadow: 0 0 0 4px rgba(171, 35, 40, 0.1);
}

/* Fuel Gauge */
.fuel-gauge-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fuel-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(
        to right,
        #ef5350 0%,
        #ffd93d 50%,
        #4caf50 100%
    );
    outline: none;
}

.fuel-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #333;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.fuel-display {
    display: flex;
    justify-content: center;
}

.fuel-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.fuel-icons i {
    color: #ab2328;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch.small {
    width: 44px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.small .toggle-slider:before {
    height: 16px;
    width: 16px;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #4caf50;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch.small input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Toggle Item */
.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
}

.toggle-item span {
    font-weight: 500;
    color: #333;
}

/* Accessory Section */
.accessory-category {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #ab2328;
    font-size: 16px;
}

.accessory-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accessory-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.accessory-item:hover {
    background: #e9ecef;
}

.accessory-item span {
    font-size: 14px;
    color: #333;
}

/* Functionality List */
.functionality-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.functionality-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.functionality-item:hover {
    background: #e9ecef;
}

.functionality-item span {
    font-weight: 500;
    color: #333;
}

/* Body Inspection */
.body-inspection-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.damage-type-selector {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.selector-label {
    margin-bottom: 16px;
    font-weight: 500;
    color: #666;
}

.damage-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.damage-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.damage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.damage-btn.active {
    border-color: #333;
    background: #f0f0f0;
}

.damage-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

/* Car Diagram */
.car-diagram-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.car-diagram {
    position: relative;
    width: 100%;
    max-width: 475.97px; /* Fixed width equal to image width when space allows */
    height: auto; /* Maintain height via aspect-ratio */
    aspect-ratio: 476 / 567; /* Approximate the requested image ratio */
    background: #fff;
    border-radius: 8px;
    padding: 0; /* No padding so marker positions align with image */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
    cursor: crosshair;
}

/* For image based diagram */
.car-diagram img, .car-img {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none; /* Allow clicks to pass through to the container */
    object-fit: contain; /* Maintain aspect ratio */
}

.car-svg {
    pointer-events: none; /* Keep for backwards compatibility with admin SVG */
}

.car-body {
    transition: fill 0.2s ease;
}

.car-part {
    transition: fill 0.2s ease;
}

.diagram-label {
    fill: #666;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Damage Markers */
.damage-markers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.damage-point {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.damage-point:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Submit Section */
.submit-section {
    text-align: center;
    padding: 30px 0;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #ab2328 0%, #8b1a1e 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(171, 35, 40, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(171, 35, 40, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .vehicle-reception-section {
        padding: 30px 0;
    }

    .reception-card-header {
        padding: 14px 18px;
    }

    .reception-card-body {
        padding: 18px;
    }

    .damage-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .damage-btn {
        justify-content: center;
    }

    .car-diagram {
        padding: 10px;
    }

    .accessory-category {
        font-size: 14px;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}
