/* =============================================
   SELLER SIGNUP — MYFITCART THEME (CORRECTED)
   Primary: #17a589  |  Dark: #0b5345
   ============================================= */

/* =============================================
   PAGE BACKGROUND
   ============================================= */

body {
    background-color: #ffffff;
    color: #1a1a1a;
}

/* =============================================
   SELLER HEADING
   ============================================= */

.seller-heading {
    font-weight: 800;
    font-size: 28px;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid #17a589;
    color: #17a589;           /* matches site teal exactly */
    letter-spacing: -0.3px;
}

/* =============================================
   FORM SECTION WRAPPER
   (the light-grey panel behind the fields)
   ============================================= */

.form-section,
.seller-form-wrapper {
    background-color: #f7f7f7;
    border-radius: 16px;
    padding: 32px 40px;
}

/* =============================================
   FORM LABELS
   ============================================= */

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1a1a1a;           /* dark, not teal — matches screenshot */
    margin-bottom: 6px;
    letter-spacing: 0px;
    display: block;
}

/* =============================================
   INPUTS & SELECTS
   ============================================= */

.form-control,
.form-select {
    border: 1.5px solid #d9d9d9;   /* neutral light-grey border, not teal */
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 0.9rem;
    color: #1a1a1a;
    background-color: #ffffff;
    box-shadow: none;
    transition: border-color 0.2s ease,
                box-shadow  0.2s ease,
                background-color 0.2s ease;
    height: auto;
    width: 100%;
}

.form-control::placeholder {
    color: #aaaaaa;
    font-weight: 400;
}

/* Hover — subtle teal hint */
.form-control:hover,
.form-select:hover {
    border-color: #17a589;
}

/* Focus — teal glow, matches nav/button brand colour */
.form-control:focus,
.form-select:focus {
    border-color: #17a589 !important;
    box-shadow: 0 0 0 3px rgba(23, 165, 137, 0.15) !important;
    background-color: #f5fdfb !important;
    outline: none !important;
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 110px;
    border-radius: 10px;
    line-height: 1.6;
}

/* =============================================
   SELECT ARROW
   ============================================= */

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2317a589' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

/* =============================================
   VALIDATION STATES
   ============================================= */

/* Suppress browser pseudo-invalid red before JS runs */
.form-control:invalid,
.form-select:invalid {
    background-image: none !important;
    box-shadow: none !important;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #e53e3e !important;
    background-image: none !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.10) !important;
    background-color: #fff8f8 !important;
}

.invalid-feedback {
    font-size: 0.8rem;
    color: #e53e3e;
    margin-top: 4px;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #17a589 !important;
    background-image: none !important;
    box-shadow: 0 0 0 3px rgba(23, 165, 137, 0.10) !important;
}

/* =============================================
   DISABLED
   ============================================= */

.form-control:disabled,
.form-select:disabled {
    background-color: #f3f3f3;
    border-color: #e0e0e0;
    color: #999999;
    cursor: not-allowed;
    opacity: 1;
}

/* =============================================
   UPLOAD CARD
   ============================================= */

.upload-card {
    border: 1.5px dashed #c0c0c0;  /* neutral dashed, not teal-tinted */
    border-radius: 12px;
    padding: 18px;
    background: #fafafa;
    transition: border-color 0.2s ease,
                background   0.2s ease,
                box-shadow   0.2s ease;
}

.upload-card:hover {
    border-color: #17a589;
    background: #f0faf7;
    box-shadow: 0 2px 10px rgba(23, 165, 137, 0.10);
}

.upload-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #1a1a1a;
    font-size: 0.875rem;
}

.upload-label span {
    color: #888888;
    font-weight: 400;
}

.upload-card input[type="file"] {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #d9d9d9;
    background: #ffffff;
    cursor: pointer;
    font-size: 0.875rem;
    color: #555;
    transition: border-color 0.2s ease;
}

.upload-card input[type="file"]:hover {
    border-color: #17a589;
}

.upload-card input[type="file"]:focus {
    border-color: #17a589;
    box-shadow: 0 0 0 3px rgba(23, 165, 137, 0.12);
    outline: none;
}

.upload-card small {
    display: block;
    margin-top: 6px;
    color: #888888;
    font-size: 12.5px;
}

.file-input {
    height: 48px;
    padding: 10px 14px;
}

/* Webkit file button */
input[type="file"].form-control::-webkit-file-upload-button {
    background: linear-gradient(135deg, #17a589, #148f77);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
    transition: background 0.2s ease;
}

input[type="file"].form-control::-webkit-file-upload-button:hover {
    background: linear-gradient(135deg, #148f77, #117a65);
}

/* =============================================
   CARD SECTION HEADINGS  (h6 inside .card)
   ============================================= */

.card h6 {
    color: #117a65;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0ede9;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.card h6::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #17a589, #117a65);
    border-radius: 4px;
    flex-shrink: 0;
}

/* =============================================
   SUBMIT BUTTON  — pill, solid teal
   Matches "Start Selling" & "Buy Now" on site
   ============================================= */

.apply-seller-btn {
    background: #17a589 !important;         /* flat teal, matches navbar/buttons */
    border: none !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 14px 48px !important;
    box-shadow: 0 4px 16px rgba(23, 165, 137, 0.30) !important;
    transition: background  0.2s ease,
                box-shadow  0.2s ease,
                transform   0.2s ease !important;
    letter-spacing: 0.2px;
    cursor: pointer;
}

.apply-seller-btn:hover {
    background: #148f77 !important;
    box-shadow: 0 6px 22px rgba(20, 143, 119, 0.38) !important;
    transform: translateY(-2px) !important;
    color: #fff !important;
}

.apply-seller-btn:focus,
.apply-seller-btn:focus-visible {
    background: #17a589 !important;
    box-shadow: 0 0 0 4px rgba(23, 165, 137, 0.22) !important;
    outline: none !important;
}

.apply-seller-btn:active {
    background: #117a65 !important;
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(17, 122, 101, 0.28) !important;
}

.apply-seller-btn:disabled {
    background: #17a589 !important;
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* =============================================
   LOGIN / OUTLINE BUTTON  (header "Login")
   ============================================= */

.btn-outline-seller {
    background: transparent !important;
    border: 2px solid #17a589 !important;
    border-radius: 50px !important;
    color: #17a589 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    padding: 9px 28px !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.btn-outline-seller:hover {
    background: #17a589 !important;
    color: #fff !important;
}

/* =============================================
   SEARCH SECTION HIDE  (desktop)
   ============================================= */

@media (min-width: 992px) {
    .search-section {
        display: none;
    }
}

/* =============================================
   RESPONSIVE — 768 px
   ============================================= */

@media (max-width: 768px) {
    .form-section,
    .seller-form-wrapper {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .form-control,
    .form-select {
        border-radius: 8px;
        padding: 11px 14px;
        font-size: 0.875rem;
    }

    textarea.form-control {
        border-radius: 8px;
    }

    .upload-card {
        border-radius: 10px;
        padding: 14px;
    }

    .apply-seller-btn {
        width: 100% !important;
        padding: 13px 24px !important;
        border-radius: 14px !important;
    }

    .seller-heading {
        font-size: 24px;
    }
}

/* =============================================
   RESPONSIVE — 576 px
   ============================================= */

@media (max-width: 576px) {
    .form-label {
        font-size: 0.82rem;
    }

    .form-control,
    .form-select {
        border-radius: 8px;
        padding: 10px 13px;
        font-size: 0.85rem;
    }

    textarea.form-control {
        border-radius: 8px;
    }

    .upload-card {
        border-radius: 10px;
        padding: 12px;
    }

    .upload-card input[type="file"] {
        border-radius: 6px;
    }

    .file-input {
        height: 44px;
        font-size: 0.82rem;
    }

    .seller-heading {
        font-size: 20px;
    }

    .apply-seller-btn {
        font-size: 0.9rem !important;
        padding: 12px 20px !important;
        border-radius: 12px !important;
    }
}

       /* ── Brand Logo Upload Box ── */
        .logo-upload-wrapper {
            border: 2px dashed #0da487;
            border-radius: 10px;
            padding: 18px 16px 14px;
            background: #f8fffd;
            text-align: center;
            cursor: pointer;
            transition: border-color 0.2s;
        }
        .logo-upload-wrapper:hover { border-color: #0a8a6e; }
        .logo-upload-wrapper i { font-size: 28px; color: #0da487; }
        .logo-upload-wrapper .upload-hint {
            font-size: 12px;
            color: #6c757d;
            margin-top: 4px;
            line-height: 1.5;
        }
        .logo-upload-wrapper input[type="file"] { display: none; }
        #logoPreviewBox {
            display: none;
            margin-top: 10px;
        }
        #logoPreviewBox img {
            width: 90px;
            height: 90px;
            object-fit: contain;
            border-radius: 8px;
            border: 1px solid #dee2e6;
            background: #fff;
            padding: 4px;
        }
        #logoPreviewBox .remove-logo {
            display: block;
            font-size: 12px;
            color: #dc3545;
            cursor: pointer;
            margin-top: 4px;
        }
        /* ── Optional badge ── */
        .badge-optional {
            font-size: 11px;
            font-weight: 500;
            color: #6c757d;
            background: #f0f0f0;
            border-radius: 4px;
            padding: 1px 6px;
            margin-left: 6px;
            vertical-align: middle;
        }
        /* ── Section label inside card ── */
        .card-section-title {
            font-size: 13px;
            font-weight: 700;
            color: #0da487;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 14px;
            padding-bottom: 6px;
            border-bottom: 1px solid #e6f5f1;
        }