.sell-hero {
    background: linear-gradient(135deg, #1F4B43 0%, #203470 100%);
    color: #ffffff;
    padding: 120px 0 80px;
}

.sell-hero .cl-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 920px;
}

.sell-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    margin: 0;
}

.sell-hero p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    max-width: 720px;
}

.sell-form-section {
    padding: 60px 0 100px;
}

.sell-form-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(32, 52, 112, 0.12);
    padding: 40px 48px;
}

.sell-form-card h2 {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 28px;
    color: #203470;
}

.sell-form-card .form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #203470;
    margin: 36px 0 12px;
}

.sell-form-card .input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #e0e4f2;
    background: #f9faff;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sell-form-card .input-group:focus-within {
    border-color: #203470;
    box-shadow: 0 0 0 4px rgba(32, 52, 112, 0.12);
}

.sell-form-card .input-group-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    background: transparent;
    color: #203470;
    font-size: 18px;
    border-radius:12px 0 0 12px;
    border:1px solid #e0e4f2a1;
}

.sell-form-card .input-group .form-control,
.sell-form-card .input-group .form-select {
    flex: 1 1 auto;
    border: none;
    background: transparent;
    padding: 16px;
    font-size: 16px;
    color: #1a1a1a;
}

.sell-form-card textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.sell-form-card .custom-file-upload {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    background:#203470;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.sell-form-card .custom-file-upload i {
    font-size: 20px;
}

.sell-form-card .custom-file-upload:hover {
    transform: translateY(-1px);
}

.sell-form-card .file-names {
    font-size: 14px;
    color: #4a4f67;
}

.sell-form-card .photo-preview {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sell-form-card .photo-preview img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(32, 52, 112, 0.15);
}

.sell-form-card button[type="submit"] {
    background: #203470;
    border: none;
    padding: 18px 56px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    letter-spacing: 0.3px;
}

.sell-form-card button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(32, 52, 112, 0.28);
}

.sell-form-card .form-errors {
    color: #b00020;
    font-size: 14px;
    margin-top: 6px;
}

.sell-form-card .alert-success {
    border-radius: 14px;
    padding: 16px 18px;
    background: rgba(31, 75, 67, 0.1);
    color: #1F4B43;
    margin-bottom: 24px;
    border: 1px solid rgba(31, 75, 67, 0.25);
    font-size: 16px;
    line-height: 1.5;
}

.sell-form-card .alert-error {
    border-radius: 14px;
    padding: 16px 18px;
    background: rgba(200, 30, 30, 0.08);
    color: #c21f1f;
    margin-bottom: 24px;
    border: 1px solid rgba(200, 30, 30, 0.2);
    font-size: 16px;
    line-height: 1.5;
}

.text-muted {
    color: #6c7288;
    font-size: 14px;
}

.sell-form-card .row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.sell-form-card .row > [class^="col-"] {
    flex: 1 1 calc(50% - 16px);
    min-width: 220px;
}

.sell-form-card .row > .col-12 {
    flex-basis: 100%;
}

.sell-form-card hr {
    border: none;
    border-top: 1px solid rgba(32, 52, 112, 0.12);
    margin: 36px 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 991px) {
    .sell-form-card {
        padding: 32px 28px;
    }
}

@media (max-width: 767px) {
    .sell-hero {
        padding: 80px 0 56px;
    }

    .sell-form-card .row {
        gap: 12px;
    }

    .sell-form-card .row > [class^="col-"] {
        flex: 1 1 100%;
    }

    .sell-form-card .input-group-text {
        width: 42px;
    }
}

/* Nice Select dropdown refresh */
.sell-form-card .input-group {
    position: relative;
    overflow: visible !important;
}

.sell-form-card .input-group .nice-select {
    position: relative;
    z-index: 10;
    flex: 1 1 auto;
    border: none !important;
    background: transparent;
    padding: 16px 48px 16px 16px;
    border-radius: 0;
    color: #1f2647;
    font-weight: 500;
    transition: color 0.2s ease;
}

.sell-form-card .input-group .nice-select:after {
    right: 20px;
    width: 10px;
    height: 10px;
    border-width: 2px;
    border-color: #203470;
}

.sell-form-card .input-group .nice-select.open,
.sell-form-card .input-group .nice-select:focus {
    color: #203470;
}

.sell-form-card .input-group .nice-select .list {
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    margin-top: 10px;
    padding: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
    border-radius: 18px;
    border: 1px solid rgba(32, 52, 112, 0.16);
    box-shadow: 0 24px 60px rgba(32, 52, 112, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    max-height: 320px;
    overflow-y: auto;
    max-width: none;
    width: calc(100% + 2px);
}

.sell-form-card .input-group .nice-select.open .list {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
    visibility: visible;
}

.sell-form-card .input-group .nice-select .option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 52px 12px 18px;
    min-height: unset;
    line-height: 1.4;
    border-radius: 12px;
    color: #1f2647;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.sell-form-card .input-group .nice-select .option:hover,
.sell-form-card .input-group .nice-select .option.focus,
.sell-form-card .input-group .nice-select .option.selected.focus {
    background-color: rgba(32, 52, 112, 0.12);
    color: #203470;
}

.sell-form-card .input-group .nice-select .option.selected {
    background-color: rgba(32, 52, 112, 0.16);
    color: #203470;
    font-weight: 600;
}

.sell-form-card .input-group .nice-select .option.selected::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 12px;
    height: 6px;
    border: 2px solid #203470;
    border-top: none;
    border-right: none;
    transform: translateY(-50%) rotate(-45deg);
    border-radius: 1px;
    display: inline-block;
}

/* Custom scrollbar for dropdown */
.sell-form-card .input-group .nice-select .list::-webkit-scrollbar {
    width: 8px;
}

.sell-form-card .input-group .nice-select .list::-webkit-scrollbar-track {
    background: rgba(32, 52, 112, 0.08);
    border-radius: 999px;
}

.sell-form-card .input-group .nice-select .list::-webkit-scrollbar-thumb {
    background: #203470;
    border-radius: 999px;
}

.sell-form-card .input-group .nice-select .list::-webkit-scrollbar-thumb:hover {
    background: #172a54;
}
