/* ============================================================
   SUPPLIER REGISTRATION PAGE - Modern Minimalist Design
   ============================================================ */

/* ===== Page Background ===== */
body.supplier-registration-page {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    min-height: 100vh;
}

/* ===== Hero Section ===== */
.supplier-hero {
    background: linear-gradient(135deg, #37517e 0%, #2d4366 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.supplier-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.supplier-hero .container {
    position: relative;
    z-index: 1;
}

.supplier-hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.supplier-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(71, 178, 228, 0.15);
    border: 1px solid rgba(71, 178, 228, 0.3);
    border-radius: 50px;
    color: #47b2e4;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.supplier-hero-badge i {
    font-size: 1rem;
}

.supplier-hero h1 {
    font-family: "Jost", sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.supplier-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 0;
}

.supplier-hero-highlight {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
}

.supplier-hero-highlight i {
    color: #10b981;
    font-size: 1.1rem;
}

/* ===== Breadcrumbs ===== */
body.supplier-registration-page #breadcrumbs {
    background: transparent;
    padding: 15px 0;
    margin-bottom: 0;
}

body.supplier-registration-page #breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.supplier-registration-page #breadcrumbs ol li {
    font-family: "Jost", sans-serif;
    font-size: 0.9rem;
    color: #64748b;
}

body.supplier-registration-page #breadcrumbs ol li a {
    color: #47b2e4;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.supplier-registration-page #breadcrumbs ol li a:hover {
    color: #3d9fd1;
}

body.supplier-registration-page #breadcrumbs ol li + li::before {
    content: '/';
    margin-right: 8px;
    color: #cbd5e1;
}

body.supplier-registration-page #breadcrumbs h5 {
    display: none;
}

/* ===== Main Form Container ===== */
.supplier-form-container {
    max-width: 900px;
    margin: -40px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* ===== Progress Steps ===== */
.registration-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 25px 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #64748b;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-icon {
    background: linear-gradient(135deg, #47b2e4 0%, #3d9fd1 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(71, 178, 228, 0.4);
}

.progress-step.completed .step-icon {
    background: #10b981;
    color: #fff;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: #37517e;
}

.progress-connector {
    width: 80px;
    height: 3px;
    background: #e2e8f0;
    margin: 0 15px;
    margin-bottom: 25px;
    border-radius: 2px;
    position: relative;
}

.progress-connector::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #10b981, #47b2e4);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.progress-connector.completed::after {
    width: 100%;
}

/* ===== Form Section Cards ===== */
.form-section {
    background: #fff;
    border-radius: 16px;
    padding: 35px 40px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(55, 81, 126, 0.06);
    transition: box-shadow 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.form-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e7f5ff 0%, #f0f9ff 100%);
    color: #47b2e4;
    font-size: 1.3rem;
}

.form-section-title h3 {
    font-family: "Jost", sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #37517e;
    margin: 0 0 4px 0;
}

.form-section-title p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* ===== Form Grid ===== */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}

.form-row.single-column {
    grid-template-columns: 1fr;
}

.form-row.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

/* ===== Form Fields ===== */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-family: "Jost", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #37517e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-field label .required {
    color: #ef4444;
    font-weight: 400;
}

.form-field label .optional {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 400;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    color: #37517e;
    background: #fff;
    transition: all 0.3s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #94a3b8;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #47b2e4;
    box-shadow: 0 0 0 4px rgba(71, 178, 228, 0.1);
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
    border-color: #cbd5e1;
}

.form-field input.error,
.form-field select.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-field input.success,
.form-field select.success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* Custom Select Styling */
.form-field select {
    appearance: none;
    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='%2337517e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
    cursor: pointer;
}

/* Password Field with Toggle */
.password-field-wrapper {
    position: relative;
}

.password-field-wrapper input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #47b2e4;
}

/* ===== Services Checkboxes ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.service-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-checkbox:hover {
    border-color: #47b2e4;
    background: #f0f9ff;
}

.service-checkbox:has(input:checked) {
    border-color: #47b2e4;
    background: linear-gradient(135deg, #e7f5ff 0%, #f0f9ff 100%);
    box-shadow: 0 2px 8px rgba(71, 178, 228, 0.15);
}

.service-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #47b2e4;
    cursor: pointer;
    flex-shrink: 0;
}

.service-checkbox span {
    font-size: 0.95rem;
    color: #37517e;
    font-weight: 500;
}

/* ===== File Upload Area ===== */
.file-upload-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-upload-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
}

.file-upload-area:hover {
    border-color: #47b2e4;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.file-upload-area.drag-over {
    border-color: #47b2e4;
    border-style: solid;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    transform: scale(1.01);
}

.file-upload-area.has-file {
    border-color: #10b981;
    border-style: solid;
    background: #f0fdf4;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 2rem;
    color: #47b2e4;
    transition: transform 0.3s ease;
}

.file-upload-area:hover .file-upload-icon {
    transform: translateY(-3px);
}

.file-upload-area.has-file .file-upload-icon {
    color: #10b981;
}

.file-upload-text {
    text-align: center;
}

.file-upload-text .primary {
    font-size: 0.95rem;
    font-weight: 600;
    color: #37517e;
    margin-bottom: 4px;
}

.file-upload-text .secondary {
    font-size: 0.8rem;
    color: #94a3b8;
}

.file-upload-text .filename {
    font-size: 0.9rem;
    font-weight: 600;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.file-upload-text .filename i {
    font-size: 1rem;
}

/* Required Badge */
.upload-required {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    background: #fef2f2;
    color: #ef4444;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Additional Files Section ===== */
.additional-files-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.additional-file-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    animation: slideIn 0.3s ease;
    align-items: start;
}

.additional-file-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.additional-file-content .form-field input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    color: #37517e;
    background: #fff;
    transition: all 0.3s ease;
}

.additional-file-content .form-field input:focus {
    outline: none;
    border-color: #47b2e4;
    box-shadow: 0 0 0 4px rgba(71, 178, 228, 0.1);
}

.additional-file-content .form-field input::placeholder {
    color: #94a3b8;
}

.additional-file-content .form-field label {
    font-family: "Jost", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #37517e;
    display: block;
    margin-bottom: 8px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.additional-file-item .file-upload-area {
    min-height: 80px;
    padding: 20px;
}

.remove-file-btn {
    align-self: center;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-file-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #ef4444;
}

.add-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: #fff;
    border: 2px dashed #47b2e4;
    border-radius: 10px;
    color: #47b2e4;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-file-btn:hover {
    background: #f0f9ff;
    border-style: solid;
}

.add-file-btn i {
    font-size: 1.1rem;
}

/* ===== Submit Button ===== */
.submit-section {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(55, 81, 126, 0.06);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 60px;
    background: linear-gradient(135deg, #37517e 0%, #3d5a8a 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: "Jost", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(55, 81, 126, 0.25);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(71, 178, 228, 0.5), transparent);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2d4366 0%, #37517e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(55, 81, 126, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(55, 81, 126, 0.2);
}

.submit-btn i {
    font-size: 1.1rem;
}

.submit-note {
    margin-top: 20px;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
}

.submit-note a {
    color: #47b2e4;
    text-decoration: none;
    font-weight: 500;
}

.submit-note a:hover {
    text-decoration: underline;
}

/* ===== Global Loader Override ===== */
body.supplier-registration-page .loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

body.supplier-registration-page .loader-overlay .loader {
    text-align: center;
}

body.supplier-registration-page .loader-overlay .loader p {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #37517e;
    font-weight: 500;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .supplier-hero h1 {
        font-size: 2.2rem;
    }
    
    .registration-progress {
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px;
    }
    
    .progress-connector {
        width: 50px;
        margin: 0 10px;
    }
    
    .form-section {
        padding: 25px 30px;
    }
    
    .form-row.three-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .supplier-hero {
        padding: 100px 0 60px;
    }
    
    .supplier-hero h1 {
        font-size: 1.8rem;
    }
    
    .supplier-hero p {
        font-size: 1rem;
    }
    
    .supplier-form-container {
        margin-top: -30px;
    }
    
    .registration-progress {
        flex-direction: column;
        gap: 15px;
    }
    
    .progress-connector {
        width: 3px;
        height: 30px;
        margin: 0;
    }
    
    .progress-step {
        flex-direction: row;
        gap: 15px;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .form-section {
        padding: 20px;
        border-radius: 12px;
    }
    
    .form-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .form-row,
    .form-row.three-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .file-upload-row {
        grid-template-columns: 1fr;
    }
    
    .additional-file-item {
        grid-template-columns: 1fr;
    }
    
    .remove-file-btn {
        justify-self: end;
    }
    
    .submit-section {
        padding: 25px 20px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 16px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .supplier-hero h1 {
        font-size: 1.5rem;
    }
    
    .supplier-hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    .supplier-hero-highlight {
        font-size: 0.85rem;
        padding: 10px 16px;
        flex-direction: column;
        text-align: center;
    }
    
    .form-section-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .form-section-title h3 {
        font-size: 1.15rem;
    }
    
    .form-field input,
    .form-field select,
    .form-field textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .service-checkbox {
        padding: 12px 14px;
    }
    
    .file-upload-area {
        padding: 25px 20px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .supplier-hero {
        background: #37517e !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .form-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .submit-section {
        display: none;
    }
}

/* ===== Custom Country Dropdown with Flags ===== */
.country-select-wrapper {
    position: relative;
    width: 100%;
}

.country-select-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Jost", sans-serif;
    font-size: 1rem;
    color: #1e293b;
}

.country-select-trigger:hover {
    border-color: #47b2e4;
}

.country-select-trigger.open {
    border-color: #47b2e4;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.country-select-trigger .fi {
    font-size: 1.25em;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.country-select-trigger .country-name {
    flex: 1;
    text-align: left;
}

.country-select-trigger .dropdown-arrow {
    color: #64748b;
    transition: transform 0.2s ease;
}

.country-select-trigger.open .dropdown-arrow {
    transform: rotate(180deg);
}

.country-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 2px solid #47b2e4;
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.country-select-dropdown.open {
    display: block;
}

.country-select-search {
    position: sticky;
    top: 0;
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    z-index: 1;
}

.country-select-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: "Jost", sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.country-select-search input:focus {
    border-color: #47b2e4;
}

.country-select-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: "Jost", sans-serif;
    font-size: 0.95rem;
    color: #1e293b;
}

.country-select-option:hover {
    background: #f1f5f9;
}

.country-select-option.selected {
    background: #e0f2fe;
}

.country-select-option .fi {
    font-size: 1.25em;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.country-select-option .country-name {
    flex: 1;
}

.country-select-option .country-code {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Hide original select when custom dropdown is active */
.country-select-wrapper select.hidden-select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .country-select-dropdown {
        max-height: 250px;
    }
    
    .country-select-trigger {
        padding: 12px 14px;
    }
    
    .country-select-option {
        padding: 10px 14px;
    }
}

