/* Sell Car Submission - Public Styles */

.scs-sell-btn {
    display: inline-block;
    background: #A4763F;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    text-decoration: none;
}

.scs-sell-btn:hover {
    opacity: 0.9;
}

.scs-sell-btn:active {
    transform: scale(0.98);
}

/* Modal */
.scs-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 9, 20, 0.9);
    backdrop-filter: blur(6px);
    z-index: 99999;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.scs-modal-overlay.active {
    display: flex;
}

.scs-modal {
    background: #010914;
    border: 1px solid #A4763F;
    border-radius: 10px;
    width: 100%;
    max-width: 650px;
    position: relative;
    animation: scsSlideIn 0.35s ease-out;
    direction: rtl;
    margin: auto;
}

@keyframes scsSlideIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.scs-modal-header {
    padding: 22px 28px;
    border-bottom: 1px solid rgba(164, 118, 63, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #010914;
    border-radius: 10px 10px 0 0;
    z-index: 2;
}

.scs-modal-header h2 {
    margin: 0;
    color: #A4763F;
    font-size: 22px;
    font-weight: 700;
}

.scs-modal-close {
    background: none;
    border: none;
    color: #A4763F;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.scs-modal-close:hover {
    background: rgba(164, 118, 63, 0.15);
}

.scs-modal-body {
    padding: 28px;
}

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

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

.scs-input {
    width: 100%;
    background: #000204 !important;
    border: 1px solid rgba(164, 118, 63, 0.3) !important;
    border-radius: 8px !important;
    padding: 13px 16px !important;
    color: #fff !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    outline: none !important;
}

.scs-input:focus {
    border-color: #A4763F !important;
    box-shadow: 0 0 0 3px rgba(164, 118, 63, 0.12) !important;
}

.scs-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

textarea.scs-input {
    resize: vertical;
    min-height: 120px;
}

select.scs-input {
    cursor: pointer;
}

select.scs-input option {
    background: #000204;
    color: #fff;
}

/* Image Upload */
.scs-image-upload {
    margin-bottom: 22px;
}

.scs-image-upload label {
    display: block;
    margin-bottom: 10px;
    color: #A4763F;
    font-weight: 500;
    font-size: 14px;
}

.scs-image-main {
    border: 2px dashed rgba(164, 118, 63, 0.4);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(0, 2, 4, 0.5);
    position: relative;
    overflow: hidden;
}

.scs-image-main:hover {
    border-color: #A4763F;
    background: rgba(164, 118, 63, 0.05);
}

.scs-image-main.has-image {
    padding: 0;
    border-style: solid;
    border-color: #A4763F;
}

.scs-image-main img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.scs-image-main .scs-upload-icon {
    font-size: 48px;
    color: #A4763F;
    margin-bottom: 10px;
    opacity: 0.6;
}

.scs-image-main .scs-upload-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.scs-image-main input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.scs-remove-image {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(224, 0, 0, 0.85);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.scs-image-main.has-image .scs-remove-image {
    display: flex;
}

/* Gallery */
.scs-gallery-section {
    margin-top: 15px;
}

.scs-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.scs-gallery-item {
    aspect-ratio: 1;
    border: 2px dashed rgba(164, 118, 63, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: rgba(0, 2, 4, 0.5);
    transition: all 0.2s;
}

.scs-gallery-item:hover {
    border-color: #A4763F;
}

.scs-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.scs-gallery-item .scs-add-icon {
    font-size: 24px;
    color: #A4763F;
    opacity: 0.5;
}

.scs-gallery-item input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.scs-gallery-item .scs-remove-gallery {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(224, 0, 0, 0.85);
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.scs-gallery-item.has-image .scs-remove-gallery {
    display: flex;
}

.scs-gallery-item.has-image {
    border-style: solid;
    border-color: rgba(164, 118, 63, 0.5);
}

/* Submit Button */
.scs-submit-btn {
    width: 100%;
    background: #A4763F !important;
    color: #fff !important;
    border: none !important;
    padding: 16px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: opacity 0.2s, transform 0.1s !important;
    margin-top: 15px;
}

.scs-submit-btn:hover {
    opacity: 0.9;
}

.scs-submit-btn:active {
    transform: scale(0.98);
}

.scs-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.scs-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    display: none;
    font-size: 15px;
}

.scs-message.success {
    display: block;
    background: rgba(10, 160, 10, 0.15);
    border: 1px solid rgba(10, 160, 10, 0.3);
    color: #4caf50;
}

.scs-message.error {
    display: block;
    background: rgba(224, 0, 0, 0.15);
    border: 1px solid rgba(224, 0, 0, 0.3);
    color: #f44336;
}

/* Spinner */
.scs-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: scsSpin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes scsSpin {
    to { transform: rotate(360deg); }
}

/* Upload Progress */
.scs-upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(164, 118, 63, 0.2);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    display: none;
}

.scs-upload-progress-bar {
    height: 100%;
    background: #A4763F;
    width: 0%;
    transition: width 0.3s;
}

/* Responsive */
@media (max-width: 600px) {
    .scs-modal-overlay {
        padding: 10px;
    }
    .scs-modal-body {
        padding: 20px;
    }
    .scs-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 400px) {
    .scs-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
