/*
 * SuppliersCentral Core Frontend Styles
 * Version 1.8.4 - Stacked vertical layout for fields
 */

/* ---------------------------------- */
/* ۱. Wrapper اصلی (گام ۱، ۲ و ۳) */
/* ---------------------------------- */
.scc-flow-wrapper {
    max-width: 700px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

/* ---------------------------------- */
/* ۲. Stacked Vertical Layout for Fields */
/* ---------------------------------- */
.scc-wizard-step {
    display: block;
}

.scc-wizard-step h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F69B28;
}

.scc-wizard-step .scc-nav-buttons {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Field wrapper - stacked vertically */
.scc-field {
    box-sizing: border-box;
    margin-bottom: 25px;
    width: 100%;
}

/* Override column classes - all fields full width (stacked) */
.scc-col-12,
.scc-col-6,
.scc-col-4,
.scc-col-3,
.scc-col-2 {
    width: 100%;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .scc-flow-wrapper {
        padding: 15px;
        margin: 10px;
    }
}

/* ---------------------------------- */
/* ۳. Field Labels and Tooltips */
/* ---------------------------------- */
.scc-field > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.scc-field label span.scc-required {
    color: #d9534f;
    margin-left: 4px;
    font-weight: bold;
}

.scc-field label span.scc-tooltip {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background: #666;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    margin-left: 5px;
    cursor: help;
}

/* ---------------------------------- */
/* ۴. Input Fields Styling */
/* ---------------------------------- */
.scc-field input[type="text"],
.scc-field input[type="email"],
.scc-field input[type="password"],
.scc-field input[type="url"],
.scc-field input[type="number"],
.scc-field input[type="tel"],
.scc-field input[type="time"],
.scc-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 16px;
    background: #f9f9f9;
}

/* Time input specific styling */
.scc-field input[type="time"].scc-time-input {
    width: 100%;
    max-width: 200px;
}

/* Opening hours status select styling */
.scc-field .scc-status-select {
    display: block !important;
    width: 100% !important;
    max-width: 200px;
    padding: 12px 15px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    background: #f9f9f9 !important;
}

/* Timezone select dropdown styling */
.scc-field .scc-timezone-select {
    display: block !important;
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    background: #f9f9f9 !important;
    appearance: menulist !important;
    -webkit-appearance: menulist !important;
}

/* Select dropdown styling */
.scc-field select,
.scc-field .scc-term-select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 46px;
    padding: 12px 15px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    background: #f9f9f9 !important;
    color: #333 !important;
    appearance: menulist !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
}

/* Multi-select styling */
.scc-field .scc-multiselect {
    min-height: 150px;
    height: auto;
    padding: 8px !important;
}

/* Multi-select term dropdown - show all options clearly */
.scc-field .scc-multiselect option {
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 3px;
    cursor: pointer;
}

.scc-field .scc-multiselect option:checked {
    background: linear-gradient(0deg, #F69B28 0%, #F69B28 100%);
    color: #fff;
}

.scc-field .scc-multiselect option:hover {
    background: #f5f5f5;
}

/* Term select specific styling */
.scc-field .scc-term-select {
    cursor: pointer;
}

.scc-field .scc-term-select:not([multiple]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px !important;
}

/* File input styling */
.scc-field input[type="file"] {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f9f9f9;
    box-sizing: border-box; 
    font-size: 16px;
    color: #555;
}

.scc-field input[type="file"]::file-selector-button {
    margin-right: 15px;
    border: none;
    background: #F69B28;
    padding: 12px 15px;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: -1px;
    margin-bottom: -1px;
    margin-left: -1px; 
}

.scc-field input[type="file"]::file-selector-button:hover {
    background: #333;
}

/* Focus states */
.scc-field input:focus,
.scc-field textarea:focus,
.scc-field select:focus {
    border-color: #F69B28 !important;
    box-shadow: 0 0 0 2px rgba(246, 155, 40, 0.1);
    background: #fff !important;
    outline: none;
}

/* ---------------------------------- */
/* ۵. Files Preview (Gallery) */
/* ---------------------------------- */
.scc-files-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.scc-files-preview .scc-file-thumb {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid #ddd;
}

.scc-files-preview .scc-file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------------------------- */
/* ۶. Field Hints and Descriptions */
/* ---------------------------------- */
.scc-field-description,
.scc-field-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* ---------------------------------- */
/* ۷. Legacy p-based styles (backward compat) */
/* ---------------------------------- */
.scc-flow-wrapper p {
    margin-bottom: 25px;
}

.scc-flow-wrapper p > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.scc-flow-wrapper label span.scc-required {
    color: #d9534f;
    margin-left: 4px;
    font-weight: bold;
}

.scc-flow-wrapper p input[type="text"],
.scc-flow-wrapper p input[type="email"],
.scc-flow-wrapper p input[type="password"],
.scc-flow-wrapper p input[type="url"],
.scc-flow-wrapper p input[type="number"],
.scc-flow-wrapper p textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 16px;
    background: #f9f9f9;
}

.scc-flow-wrapper p select,
.scc-flow-wrapper select,
.scc-flow-wrapper #scc-supplier-type {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 46px;
    padding: 12px 15px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    background: #f9f9f9 !important;
    background-color: #f9f9f9 !important;
    color: #333 !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    appearance: menulist !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    position: static !important;
    transform: none !important;
    margin: 0 !important;
}

.scc-flow-wrapper p input[type="file"] {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f9f9f9;
    box-sizing: border-box; 
    font-size: 16px;
    color: #555;
}

.scc-flow-wrapper p input[type="file"]::file-selector-button {
    margin-right: 15px;
    border: none;
    background: #F69B28;
    padding: 12px 15px;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: -1px;
    margin-bottom: -1px;
    margin-left: -1px; 
}
.scc-flow-wrapper p input[type="file"]::file-selector-button:hover {
    background: #333;
}

/* Focus */
.scc-flow-wrapper p input:focus,
.scc-flow-wrapper p textarea:focus,
.scc-flow-wrapper p select:focus {
    border-color: #F69B28;
    box-shadow: 0 0 0 2px rgba(246, 155, 40, 0.1);
    background: #fff;
    outline: none;
}

/* ---------------------------------- */
/* ۸. استایل Radio Button ها */
/* ---------------------------------- */
.scc-flow-wrapper p.scc-radio-group {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 5px;
    background: #fafafa;
}

.scc-flow-wrapper p.scc-radio-group span.scc-radio-title {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.scc-flow-wrapper p.scc-radio-group label {
    display: inline-block !important;
    margin-right: 25px !important;
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.scc-flow-wrapper p.scc-radio-group label input[type="radio"] {
    margin-right: 8px;
    vertical-align: -2px;
    width: auto;
}

/* ---------------------------------- */
/* ۹. دکمه‌های Navigation و Submit */
/* ---------------------------------- */
.scc-nav-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.scc-nav-buttons button,
.scc-nav-buttons .button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.scc-nav-buttons .scc-btn-prev,
.scc-nav-buttons .button-secondary {
    background-color: #6c757d;
    color: #fff;
}

.scc-nav-buttons .scc-btn-prev:hover,
.scc-nav-buttons .button-secondary:hover {
    background-color: #5a6268;
}

.scc-nav-buttons .scc-btn-next,
.scc-nav-buttons .button-primary,
.scc-nav-buttons button[type="submit"] {
    background-color: #F69B28;
    color: #ffffff;
}

.scc-nav-buttons .scc-btn-next:hover,
.scc-nav-buttons .button-primary:hover,
.scc-nav-buttons button[type="submit"]:hover {
    background-color: #D88620;
}

.scc-flow-wrapper p button[type="submit"] {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #F69B28;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.scc-flow-wrapper p button[type="submit"]:hover {
    background-color: #D88620;
}

/* ---------------------------------- */
/* ۱۰. استایل‌های کمکی */
/* ---------------------------------- */
.scc-field-description {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #555;
    font-style: italic;
}
.scc-summary-note {
    font-size: 16px;
    padding: 15px;
    background: #f4f8fa;
    border: 1px solid #cce0eb;
    border-radius: 5px;
    margin-bottom: 25px;
}
.scc-form-footer-nav {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center;
}

/* ---------------------------------- */
/* ۷. استایل گام ۳ (باکس‌های انتخاب پلن) */
/* (این کدها صحیح بودند و باقی می‌مانند) */
/* ---------------------------------- */
.scc-packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.scc-package-item {
    position: relative;
}
.scc-package-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
/* * اینجا "label" را هدف می‌گیریم، چون HTML گام ۳
 * به درستی از <label> به عنوان باکس استفاده می‌کند
*/
.scc-package-item label {
    display: block;
    padding: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.scc-package-item label:hover {
    border-color: #0073aa;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.scc-package-item input[type="radio"]:checked + label {
    border-color: #0073aa;
    background: #f4f8fa;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.15);
}
.scc-package-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #222;
}
.scc-package-item .scc-price {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 15px;
}
.scc-package-item .scc-price del {
    font-size: 0.6em;
    color: #999;
    font-weight: normal;
    margin-left: 8px;
}
.scc-package-item ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 15px;
    color: #555;
}
.scc-package-item ul li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 8px;
}
.scc-package-item ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #5cb85c;
    font-weight: bold;
    font-size: 1.2em;
}
@media (max-width: 768px) {
    .scc-packages-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------- */
/* ۸. پیام‌های خطا و موفقیت */
/* ---------------------------------- */
.scc-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid;
}
.scc-notice-error {
    background: #fdf7f7;
    border-color: #d9534f;
    color: #b94a48;
}
.scc-notice-success {
    background: #f4fdf7;
    border-color: #5cb85c;
    color: #3c763d;
}

/* ---------------------------------- */
/* ۷. استایل‌های کمکی (برای گام ۲ و ۳) */
/* ---------------------------------- */

/* توضیحات زیر فیلدها (مثل ایمیل و پسورد) */
.scc-field-description {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #555;
    font-style: italic;
}

/* متن خلاصه (مثال: شما در حال ثبت نام برای شرکت X هستید) */
.scc-summary-note {
    font-size: 16px;
    padding: 15px;
    background: #f4f8fa;
    border: 1px solid #cce0eb;
    border-radius: 5px;
    margin-bottom: 25px;
}

/* لینک "بازگشت به مرحله قبل" */
.scc-form-footer-nav {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center;
}

.scc-form-footer-nav a {
    color: #F69B28;
    text-decoration: none;
    font-size: 15px;
}
.scc-form-footer-nav a:hover {
    text-decoration: underline;
}




/* ---------------------------------- */
/* ۸. اصلاحات تداخل با قالب (Theme) */
/* ---------------------------------- */

/* * رفع مشکل مخفی بودن فیلد Select (Type of Supplier)
 * ما از یک سلکتور قوی‌تر استفاده می‌کنیم و
 * ظاهر (appearance) آن را به حالت پیش‌فرض مرورگر برمی‌گردانیم
 * تا مطمئن شویم که پس‌زمینه و رنگ متن آن درست است.
*/
.scc-flow-wrapper .scc-form-group select#scc-supplier-type {
    appearance: menulist !important; /* وادار کردن به نمایش منوی کشویی */
    -webkit-appearance: menulist !important;
    background: #f9f9f9 !important; /* وادار کردن به نمایش پس‌زمینه */
    color: #333 !important; /* وادار کردن به نمایش متن */
    padding: 12px 15px !important; /* اطمینان از پدینگ صحیح */
}



/* ---------------------------------- */
/* ۹. اصلاحیه برای تداخل Select2 قالب */
/* ---------------------------------- */

/* * این کد کانتینر Select2 که جایگزین فیلد ما شده را هدف می‌گیرد
*/

/* ۱. تنظیم کانتینر اصلی Select2 */
.scc-form-group .select2-container {
    width: 100% !important; /* وادار کردن به عرض کامل */
    padding: 0;
    margin: 0;
}

/* ۲. استایل فیلد اصلی (که شبیه input است) */
.scc-form-group .select2-container .select2-selection--single {
    height: auto !important; /* اجازه بده پدینگ ارتفاع را تعیین کند */
    padding: 12px 15px !important; /* هماهنگ با بقیه فیلدها */
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    background: #f9f9f9 !important;
    font-size: 16px !important;
}

/* ۳. استایل متنی که انتخاب شده */
.scc-form-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333 !important;
    line-height: inherit !important; /* جلوگیری از بهم ریختگی تراز عمودی */
    padding-left: 0 !important;
}

/* ۴. استایل فلش (Arrow) کنار فیلد */
.scc-form-group .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 10px !important;
    width: 15px !important;
}



/* ---------------------------------- */
/* ۹. اصلاحیه برای تداخل Select2 قالب */
/* ---------------------------------- */
.scc-form-group .select2-container {
    width: 100% !important; 
}
.scc-form-group .select2-container .select2-selection--single {
    height: auto !important;
    padding: 12px 15px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    background: #f9f9f9 !important;
    font-size: 16px !important;
    box-shadow: none !important;
}
.scc-form-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333 !important;
    line-height: inherit !important;
    padding-left: 0 !important;
    margin-top: 0 !important;
}
.scc-form-group .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 10px !important;
}



/* ---------------------------------- */
/* ۱۰. استایل گام ۳ (باکس‌های انتخاب پلن) */
/* ---------------------------------- */

/* ۱. گرید (Grid) برای نگهداری باکس‌ها */
.scc-packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* دو ستونه در دسکتاپ */
    gap: 20px;
    margin-bottom: 30px;
}

/* ۲. آیتم اصلی پکیج (کانتینر) */
.scc-package-item {
    position: relative; /* برای مخفی کردن دکمه رادیویی */
}

/* ۳. مخفی کردن دکمه رادیویی اصلی */
.scc-package-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* ۴. استایل باکس (لیبل) */
.scc-package-item label { /* مستقیم خود تگ label را هدف می‌گیریم */
    display: block;
    padding: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.scc-package-item label:hover {
    border-color: #F69B28;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ۵. استایل حالت انتخاب شده (مهم‌ترین بخش) */
.scc-package-item input[type="radio"]:checked + label {
    border-color: #F69B28; /* رنگ اصلی ووردپرس */
    background: #fff8f0; /* پس‌زمینه آبی بسیار روشن */
    box-shadow: 0 4px 15px rgba(246, 155, 40, 0.15);
}

/* ۶. استایل محتوای داخل باکس */
.scc-package-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #222;
}

.scc-package-item .scc-price {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: #F69B28;
    margin-bottom: 15px;
}

/* استایل قیمت خط خورده (برای تخفیف) */
.scc-package-item .scc-price del {
    font-size: 0.6em;
    color: #999;
    font-weight: normal;
    margin-left: 8px;
}

.scc-package-item ul {
    list-style: none; /* حذف دایره‌ها */
    padding-left: 0;
    margin: 0;
    font-size: 15px;
    color: #555;
}

.scc-package-item ul li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 8px;
}

/* اضافه کردن تیک (✓) به آیتم‌های لیست */
.scc-package-item ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #5cb85c; /* سبز */
    font-weight: bold;
    font-size: 1.2em;
}

/* ۷. ریسپانسیو کردن گرید */
@media (max-width: 768px) {
    .scc-packages-grid {
        grid-template-columns: 1fr; /* تک ستونه در موبایل */
    }
}


.scc-form-group .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999 !important; /* رنگ خاکستری قابل مشاهده */
    opacity: 1 !important; /* کاملاً قابل مشاهده (نه شفاف) */
}

/* ---------------------------------- */
/* Wizard Styles (Added v1.2) */
/* ---------------------------------- */

.scc-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    counter-reset: step;
    position: relative;
    padding-left: 0; 
}

/* Line connecting steps */
.scc-progress-bar::after {
    content: '';
    position: absolute;
    top: 15px; /* Half of circle height */
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.scc-progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #bbb;
    background: #fff; /* To hide line behind text if needed */
    padding: 0 5px;
    width: 33.33%;
    list-style: none;
}

/* Circle */
.scc-progress-step::before {
    content: counter(step);
    counter-increment: step;
    display: block;
    width: 32px;
    height: 32px;
    line-height: 28px; /* line-height = height - border*2 */
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    margin: 0 auto 8px auto;
    background: #fff;
    color: #bbb;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Active State */
.scc-progress-step.active {
    color: #333;
}
.scc-progress-step.active::before {
    border-color: #F69B28; /* Orange */
    background: #F69B28;
    color: #fff;
}

/* Completed State */
.scc-progress-step.completed {
    color: #333;
}
.scc-progress-step.completed::before {
    border-color: #46b450; /* WordPress Green */
    background: #46b450;
    color: #fff;
    content: '\2713'; /* Checkmark */
    font-size: 14px;
}

/* Wizard Steps Layout */
.scc-wizard-step {
    /* Initially managed by JS, but standard block here */
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.scc-wizard-step h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #2c3e50;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Navigation Buttons */
.scc-nav-buttons {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Fix for buttons */
.scc-nav-buttons button {
    min-width: 100px;
    justify-content: center;
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #F69B28;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.scc-nav-buttons button:hover {
    background-color: #D88620;
}
.scc-nav-buttons button.scc-btn-prev,
.scc-nav-buttons button.button-secondary {
    background-color: #666;
    color: #fff;
}
.scc-nav-buttons button.scc-btn-prev:hover,
.scc-nav-buttons button.button-secondary:hover {
    background-color: #444;
}
.scc-nav-buttons button.scc-btn-next {
    margin-left: auto; /* Push Next to right if Back is missing */
}
.scc-nav-buttons button.scc-btn-prev + button.scc-btn-next,
.scc-nav-buttons button.scc-btn-prev + button[type="submit"] {
    margin-left: 0; /* Reset if Back exists */
}
}

/* ---------------------------------- */
/* File Upload Preview Styles (v1.7) */
/* ---------------------------------- */
.scc-file-preview {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 5px;
}

.scc-file-preview-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
}

.scc-file-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.scc-file-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border: 2px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scc-file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scc-file-thumb.scc-file-icon {
    flex-direction: column;
    padding: 5px;
    text-align: center;
}

.scc-file-thumb.scc-file-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #999;
}

.scc-file-thumb .scc-file-name {
    font-size: 10px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    margin-top: 5px;
}

.scc-file-preview .scc-field-description {
    display: block;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* ---------------------------------- */
/* Checkbox Field Styles (Simple Left-Aligned) */
/* ---------------------------------- */
.scc-field.scc-field-checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 15px;
    text-align: left;
}

.scc-field.scc-field-checkbox > label {
    display: none; /* Hide the separate label since checkbox has inline label */
}

.scc-field.scc-field-checkbox input[type="checkbox"] {
    width: auto !important;
    min-width: auto;
    height: auto;
    margin: 0;
    margin-right: 10px;
    padding: 0;
    vertical-align: middle;
    cursor: pointer;
    flex-shrink: 0;
}

.scc-field.scc-field-checkbox span {
    font-weight: normal;
    font-size: 14px;
    color: #333;
    vertical-align: middle;
    cursor: pointer;
    line-height: 1.4;
}

/* ---------------------------------- */
/* [v2.0] Unified Wizard Main Progress Bar */
/* ---------------------------------- */
.scc-main-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.scc-main-progress-bar .scc-main-step {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    margin: 0 5px;
    background: #e9ecef;
    border-radius: 6px;
    font-weight: 600;
    color: #6c757d;
    position: relative;
    transition: all 0.3s ease;
}

.scc-main-progress-bar .scc-main-step:first-child {
    margin-left: 0;
}

.scc-main-progress-bar .scc-main-step:last-child {
    margin-right: 0;
}

.scc-main-progress-bar .scc-main-step.active {
    background: #F69B28;
    color: #fff;
    box-shadow: 0 4px 12px rgba(246, 155, 40, 0.3);
}

.scc-main-progress-bar .scc-main-step.completed {
    background: #28a745;
    color: #fff;
}

.scc-main-progress-bar .scc-main-step.completed::after {
    content: '✓';
    margin-left: 8px;
}

/* Step Container styling */
.scc-step-container {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Summary note */
.scc-summary-note {
    background: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 25px;
    color: #004085;
}

.scc-summary-note strong {
    color: #002752;
}

/* Substep navigation */
.scc-wizard-substep {
    display: block;
}

/* AJAX message styling */
.scc-ajax-message {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Back to Step 1 button styling */
.scc-btn-goto-step1 {
    background: #6c757d !important;
    border-color: #6c757d !important;
}

.scc-btn-goto-step1:hover {
    background: #5a6268 !important;
    border-color: #5a6268 !important;
}

/* Mobile responsive for main progress */
@media (max-width: 576px) {
    .scc-main-progress-bar {
        flex-direction: column;
        padding: 15px;
    }
    
    .scc-main-progress-bar .scc-main-step {
        margin: 5px 0;
    }
}