/* ============================================================
   CARDONGY - SELL TO US PAGE (Compact & Elegant)
   ============================================================ */

.sell-page-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    color: #fff;
}

/* ============ HERO ============ */
.sell-hero {
    background: linear-gradient(135deg, #0a1929 0%, #0f2942 100%);
    border-radius: 14px;
    padding: 35px 30px;
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid rgba(212, 165, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.sell-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 165, 55, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

[dir="rtl"] .sell-hero::before {
    right: auto;
    left: -20%;
}

.sell-hero-content { position: relative; z-index: 2; }

.sell-hero-badge {
    display: inline-block;
    background: #d4a537;
    color: #000;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.sell-hero-title {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.25;
    color: #fff;
}

.sell-hero-title .hl {
    color: #d4a537;
    background: linear-gradient(135deg, #d4a537, #f5c563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 5px;
}

.sell-hero-subtitle {
    font-size: 14px;
    color: #b8c5d6;
    max-width: 620px;
    margin: 0 auto 22px;
    line-height: 1.6;
}

.sell-hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

.hero-feature i { color: #d4a537; font-size: 16px; }

/* ============ FORM CONTAINER ============ */
.sell-form-container {
    background: #fff;
    border-radius: 14px;
    padding: 30px 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    color: #333;
    margin-bottom: 25px;
}

.sell-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-section {
    padding-bottom: 22px;
    border-bottom: 1px dashed #e5e5e5;
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.section-number {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #d4a537, #b8862c);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(212, 165, 55, 0.35);
}

.section-header h3 {
    margin: 0 0 2px;
    font-size: 17px;
    color: #0a1929;
    font-weight: 700;
}

.section-header p {
    margin: 0;
    color: #666;
    font-size: 12px;
}

/* ============ UPLOAD AREA ============ */
.upload-area {
    border: 2px dashed #d4a537;
    border-radius: 12px;
    background: #fffaf0;
    padding: 25px 15px;
    transition: all .3s ease;
    position: relative;
}

.upload-area.drag-over {
    background: #fff3d6;
    border-color: #b8862c;
    transform: scale(1.005);
}

.upload-placeholder {
    text-align: center;
    cursor: pointer;
    padding: 12px;
    transition: transform .2s ease;
}

.upload-placeholder:hover { transform: translateY(-2px); }

.upload-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #d4a537, #b8862c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 4px 14px rgba(212, 165, 55, 0.4);
}

.upload-placeholder h4 {
    margin: 0 0 5px;
    font-size: 15px;
    color: #0a1929;
    font-weight: 700;
}

.upload-placeholder p {
    margin: 0 0 10px;
    color: #666;
    font-size: 13px;
}

.upload-hint {
    display: inline-block;
    background: rgba(212, 165, 55, 0.12);
    color: #8a6a1e;
    padding: 4px 11px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

/* ============ PREVIEW GRID ============ */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.image-preview-grid:empty { display: none; }

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #d4a537;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInScale .3s ease;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(220, 38, 38, 0.95);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all .2s ease;
    z-index: 2;
}

[dir="rtl"] .remove-image {
    right: auto;
    left: 5px;
}

.remove-image:hover {
    background: #dc2626;
    transform: scale(1.15);
}

.preview-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    padding: 12px 6px 4px;
}

.file-size {
    color: #fff;
    font-size: 10px;
    font-weight: 600;
}

/* ============ IMAGE COUNTER ============ */
.image-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding: 10px 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.image-counter i {
    color: #d4a537;
    margin-right: 6px;
}

[dir="rtl"] .image-counter i {
    margin-right: 0;
    margin-left: 6px;
}

.image-counter span {
    font-weight: 700;
    color: #0a1929;
    font-size: 13px;
}

.btn-add-more {
    background: #0a1929;
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-add-more:hover:not(:disabled) {
    background: #d4a537;
    color: #000;
    transform: translateY(-1px);
}

.btn-add-more:disabled { cursor: not-allowed; }

/* ============ FORM FIELDS ============ */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
    font-weight: 600;
    color: #0a1929;
    margin-bottom: 6px;
    font-size: 13px;
}

.required {
    color: #dc2626;
    margin-left: 3px;
}

[dir="rtl"] .required {
    margin-left: 0;
    margin-right: 3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #0a1929;
    transition: all .2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #d4a537;
    box-shadow: 0 0 0 3px rgba(212, 165, 55, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.price-input {
    display: flex;
    gap: 8px;
}

.price-input input { flex: 1; }

.price-input select {
    width: 100px;
    background: #0a1929;
    color: #fff;
    border-color: #0a1929;
    font-weight: 700;
    cursor: pointer;
}

/* ============ SUBMIT AREA ============ */
.submit-area {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 12px 14px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all .2s ease;
}

.checkbox-wrap:hover {
    background: #fffaf0;
    border-color: #d4a537;
}

.checkbox-wrap input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #d4a537;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all .2s ease;
    margin-top: 1px;
}

.checkbox-wrap input:checked ~ .checkmark {
    background: #d4a537;
}

.checkbox-wrap input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    color: #333;
    font-size: 13px;
    line-height: 1.5;
}

.checkbox-text a {
    color: #d4a537;
    text-decoration: none;
    font-weight: 600;
    margin: 0 3px;
}

.checkbox-text a:hover { text-decoration: underline; }

.submit-buttons {
    display: flex;
    justify-content: center;
}

.btn-submit {
    background: linear-gradient(135deg, #d4a537 0%, #b8862c 100%);
    color: #000;
    border: none;
    padding: 13px 45px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 10px;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 5px 15px rgba(212, 165, 55, 0.4);
    text-transform: uppercase;
    min-width: 240px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(212, 165, 55, 0.55);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit i { font-size: 15px; }

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    white-space: pre-line;
}

.form-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ============ SUCCESS SCREEN ============ */
.sell-success {
    text-align: center;
    padding: 40px 25px;
}

.success-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    box-shadow: 0 8px 22px rgba(34, 197, 94, 0.4);
    animation: bounceIn .6s ease;
}

@keyframes bounceIn {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.sell-success h2 {
    color: #0a1929;
    font-size: 24px;
    margin: 0 0 10px;
    font-weight: 800;
}

.sell-success p {
    color: #555;
    font-size: 14px;
    max-width: 450px;
    margin: 0 auto 22px;
    line-height: 1.6;
}

.btn-primary {
    background: #d4a537;
    color: #000;
    border: none;
    padding: 11px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-primary:hover {
    background: #b8862c;
    transform: translateY(-2px);
}

/* ============ HOW IT WORKS ============ */
.how-it-works {
    background: linear-gradient(135deg, #0a1929 0%, #0f2942 100%);
    border-radius: 14px;
    padding: 35px 28px;
    text-align: center;
    border: 1px solid rgba(212, 165, 55, 0.15);
}

.how-title {
    color: #d4a537;
    font-size: 22px;
    margin: 0 0 25px;
    font-weight: 800;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.step-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 165, 55, 0.2);
    border-radius: 10px;
    padding: 20px 12px;
    transition: all .3s ease;
}

.step-card:hover {
    background: rgba(212, 165, 55, 0.1);
    transform: translateY(-3px);
    border-color: #d4a537;
}

.step-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #d4a537, #b8862c);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 3px 12px rgba(212, 165, 55, 0.35);
}

.step-card h4 {
    color: #fff;
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 700;
}

.step-card p {
    color: #b8c5d6;
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

/* ============ RTL SUPPORT ============ */
[dir="rtl"] .sell-page-wrap,
body.lang-ar .sell-page-wrap {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif;
}

body.lang-ar .section-header,
[dir="rtl"] .section-header {
    text-align: right;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .sell-hero-title { font-size: 26px; }
    .sell-hero-features { gap: 20px; }
}

@media (max-width: 768px) {
    .sell-page-wrap { padding: 20px 12px 50px; }
    .sell-hero { padding: 28px 18px; }
    .sell-hero-title { font-size: 22px; }
    .sell-hero-subtitle { font-size: 13px; }
    .sell-form-container { padding: 22px 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .section-header h3 { font-size: 15px; }
    .section-number { width: 30px; height: 30px; font-size: 13px; }
    .upload-area { padding: 20px 10px; }
    .upload-icon { width: 50px; height: 50px; font-size: 22px; }
    .upload-placeholder h4 { font-size: 14px; }
    .image-preview-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
    .btn-submit { padding: 12px 30px; font-size: 13px; min-width: 100%; }
    .image-counter { flex-direction: column; gap: 10px; text-align: center; }
    .how-it-works { padding: 28px 18px; }
    .how-title { font-size: 19px; }
}

@media (max-width: 480px) {
    .sell-hero-features { flex-direction: column; gap: 12px; }
    .price-input { flex-direction: column; }
    .price-input select { width: 100%; }
    .image-preview-grid { grid-template-columns: repeat(3, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
}