/* =========================================
   BUSINESS REGISTRATION FORM
   Brand Color: #ed1d26
   ========================================= */

.udyog-registration-form {
    background: #fff;
    max-width: 900px;
    margin: 40px auto;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    font-family: system-ui, -apple-system, sans-serif;
}

/* -----------------------------------------
   LABELS & INPUTS
----------------------------------------- */

.udyog-registration-form label {
    display: block;
    font-weight: 600;
    margin: 20px 0 6px;
}

.udyog-registration-form input,
.udyog-registration-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    font-size: 15px;
}

.udyog-registration-form textarea {
    min-height: 120px;
}

.udyog-registration-form input:focus,
.udyog-registration-form textarea:focus {
    border-color: #ed1d26;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(237,29,38,.15);
    outline: none;
}

/* -----------------------------------------
   🔥 CRITICAL FIX – HIDE ORIGINAL SELECT
----------------------------------------- */

.udyog-registration-form select#business-categories {
    display: none !important;
}


/* -----------------------------------------
   CONTACT PERSONS
----------------------------------------- */

.udyog-registration-form h4 {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-row input {
    background: #fff;
    border: 1px solid #e5e5e5;
}

/* Add Contact button */
#add-contact-btn {
    width: 100%;
    margin-top: 15px;
    padding: 14px;
    background: #ed1d26;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

#add-contact-btn:hover {
    background: #c8161f;
}

/* -----------------------------------------
   FILE UPLOAD
----------------------------------------- */

#business_logo {
    border: 2px dashed #ddd;
    padding: 14px;
    border-radius: 8px;
}

#business_logo::file-selector-button {
    background: #ed1d26;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
}

/* -----------------------------------------
   SUBMIT BUTTON
----------------------------------------- */

.udyog-registration-form button[type="submit"] {
    background: #ed1d26;
    color: #fff;
    border: none;
    padding: 14px;
    width: 100%;
    font-size: 16px;
    border-radius: 8px;
    margin-top: 30px;
}



/* ======================================================
   SELECT2 MULTI-SELECT — FINAL LOCKED LAYOUT
   Search ALWAYS visible, chips BELOW
   ====================================================== */

/* Hide original select */
.udyog-registration-form select#business-categories {
    display: none !important;
}

/* Main Select2 container */
.udyog-registration-form .select2-container {
    width: 100% !important;
}

/* Selection box */
.udyog-registration-form .select2-selection--multiple {
    border: 1px solid #ddd !important;
    border-radius: 8px;
    background: #fafafa;
    padding: 8px 10px !important;

    /* KEY PART */
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

/* 🔥 SEARCH ROW — ALWAYS VISIBLE */
.udyog-registration-form .select2-search--inline {
    order: 1 !important;
    width: 100% !important;
}

/* Search textarea behaves like input */
.udyog-registration-form
.select2-search--inline
textarea.select2-search__field {

    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;

    line-height: 34px !important;
    padding: 0 8px !important;
    margin: 0 !important;

    border: none !important;
    background: transparent !important;
    resize: none !important;
    overflow: hidden !important;
    outline: none !important;

    font-size: 14px !important;
    box-sizing: border-box !important;
}

/* 🔥 SELECTED CATEGORIES ROW */
.udyog-registration-form .select2-selection__rendered {
    order: 2 !important;

    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px;
    margin-top: 8px !important;
    padding: 0 !important;
}

/* Category pills */
.udyog-registration-form .select2-selection__choice {
    background: #ed1d26 !important;
    color: #fff !important;
    border: none !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    margin: 0 !important;
}

/* Remove (×) icon */
.udyog-registration-form .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 6px !important;
    font-weight: bold;
}

/* Focus */
.udyog-registration-form
.select2-container--focus
.select2-selection {
    border-color: #ed1d26 !important;
    box-shadow: 0 0 0 4px rgba(237,29,38,0.15) !important;
}



/* =========================================
   FORCE CATEGORY COLOR (BRAND RED)
   ========================================= */

/* Selected category pill */
.udyog-registration-form
.select2-container--default
.select2-selection__choice {
    background-color: #ed1d26 !important;
    color: #ffffff !important;
    border: none !important;
}

/* Remove (×) icon */
.udyog-registration-form
.select2-container--default
.select2-selection__choice__remove {
    color: #ffffff !important;
}


/* =========================================
   SPACE AFTER BUSINESS CATEGORIES
   ========================================= */

/* Add gap after category field */
.udyog-registration-form
.select2-container {
    margin-bottom: 40px !important;
}

/* Optional: soften divider before Contact Persons */
.udyog-registration-form h4 {
    margin-top: 10px;
}


/* =========================================
   BUSINESS LOGO UPLOAD – FINAL COLOR FIX
   ========================================= */

/* File input wrapper */
.udyog-registration-form input[type="file"] {
    width: 100%;
    padding: 14px;
    border: 2px dashed #ed1d26;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

/* Hover on full dashed box */
.udyog-registration-form input[type="file"]:hover {
    border-color: #c8161f;
    background: #fff5f5;
}

/* File button */
.udyog-registration-form input[type="file"]::file-selector-button {
    background: #ed1d26;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* Hover on button */
.udyog-registration-form input[type="file"]::file-selector-button:hover {
    background: #c8161f;
    box-shadow: 0 4px 12px rgba(237,29,38,0.3);
}

/* =====================================================
   ASTRA OVERRIDE — BUSINESS LOGO UPLOAD (FINAL)
   Brand Red: #ed1d26
   ===================================================== */

/* Force override Astra styles */
body .udyog-registration-form input[type="file"] {
    border: 2px dashed #ed1d26 !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 14px !important;
    color: #333 !important;
}

/* Hover on full dashed box */
body .udyog-registration-form input[type="file"]:hover {
    border-color: #c8161f !important;
    background: #fff5f5 !important;
}

/* File button (Choose File) */
body .udyog-registration-form
input[type="file"]::file-selector-button {
    background-color: #ed1d26 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    margin-right: 12px !important;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* Hover on file button */
body .udyog-registration-form
input[type="file"]::file-selector-button:hover {
    background-color: #c8161f !important;
    box-shadow: 0 4px 12px rgba(237, 29, 38, 0.35) !important;
}

/* Business Owner Name field (inherits global styles) */
.udyog-registration-form #business_owner_name {
    width: 100%;
}

.udyog-registration-form ::placeholder {
    color: #999;
    font-size: 14px;
}


/* =========================================
   BUSINESS PHOTOS UPLOAD
   ========================================= */

#business_photos {
    width: 100%;
    padding: 14px;
    border: 2px dashed #ed1d26;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

#business_photos:hover {
    border-color: #c8161f;
    background: #fff5f5;
}

#business_photos::file-selector-button {
    background: #ed1d26;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
}

#business_photos::file-selector-button:hover {
    background: #c8161f;
}

/* Helper text */
.field-hint {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}


