/* Base Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

/* Header Styles */
.header h2,
.header h4,
.form-section h4 {
    font-weight: bold;
}

.header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.header h4 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.header {
    background: linear-gradient(90deg, #007bff, #00d4ff);
    color: white;
    padding: 0rem;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Sidebar Styles */
.sidebar {
    background: #fff;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    z-index: 9999;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .submenu-text,
.sidebar.collapsed h4 {
    display: none;
}

.sidebar.collapsed .nav-link {
    text-align: center;
    padding: 0.75rem 0.5rem;
    justify-content: center;
}

.sidebar.collapsed .submenu {
    padding-left: 0;
}

.sidebar h4 {
    font-size: 1rem;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.sidebar .nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: #e9ecef;
}

.sidebar .nav-icon {
    margin-right: 10px;
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sidebar.collapsed .nav-icon {
    margin-right: 0;
    font-size: 1.3rem;
}

/* Submenu Styles */
.submenu {
    list-style: none;
    padding-left: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.submenu.show {
    max-height: 500px;
}

.sidebar .submenu .step-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.5rem 0.5rem 0;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
}

.sidebar .submenu .step-link.completed {
    color: #28a745;
}

.sidebar .submenu .step-link:hover {
    background-color: #f8f9fa;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9ecef;
    color: #495057;
    margin-left: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Content Area */
.content {
    margin-left: 250px;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

.content.collapsed {
    margin-left: 70px;
}

/* Form Container */
.form-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h4 {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Form Elements */
label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

/* Thumbnail Previews */
.thumbnail {
    max-width: 50px;
    max-height: 50px;
    margin-top: 0.5rem;
    display: none;
}

/* Step Navigation */
.step {
    display: none;
}

.step.active {
    display: block;
}

.step-navigation {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.step-number-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.step-number-nav.active {
    background: #007bff;
    color: white;
}

.step-number-nav.completed {
    background: #28a745;
    color: white;
}

/* Toggle Button */
.toggle-sidebar {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
}

.submenu-icon {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.submenu.show ~ .nav-link .submenu-icon {
    transform: rotate(180deg);
}

/* Responsive Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-6,
.col-md-4 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Input Groups */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 0.3rem;
}

.btn-outline-primary {
    color: #007bff;
    background-color: transparent;
    background-image: none;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

/* List Group */
.list-group {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    margin-bottom: -1px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.list-group-item:first-child {
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.list-group-item:last-child {
    margin-bottom: 0;
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

/* Success Message */
.success-message {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

/* Responsive Breakpoints */
@media (min-width: 576px) {
    .header h2 {
        font-size: 1.75rem;
    }

    .header h4 {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .step-navigation {
        flex-wrap: nowrap;
    }

    .step-number-nav {
        margin: 0 10px;
    }
}

@media (min-width: 992px) {
    .header h2 {
        font-size: 2rem;
    }

    .header {
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .sidebar {
        width: 70px;
    }

    .sidebar .nav-text,
    .sidebar .submenu-text,
    .sidebar h4 {
        display: none;
    }

    .sidebar .nav-link {
        text-align: center;
        padding: 0.75rem 0.5rem;
        justify-content: center;
    }

    .sidebar .submenu {
        padding-left: 0;
    }

    .sidebar .nav-icon {
        margin-right: 0;
        font-size: 1.3rem;
    }

    .content {
        margin-left: 70px;
        padding: 1rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .header h2 {
        font-size: 1.25rem;
    }

    .header h4 {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .content {
        padding: 0.5rem;
    }

    .form-container {
        padding: 1rem;
    }

    .header {
        padding: 0.75rem;
    }

    .header h2 {
        font-size: 1.1rem;
    }

    .header h4 {
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.4rem 0.8rem;
        font-size: 1.1rem;
    }

    .step-number-nav {
        width: 35px;
        height: 35px;
        margin: 0 3px 5px;
    }
    .flatpickr-input {
        background-color: white;
        cursor: pointer;
    }

    .is-invalid {
        border-color: #dc3545;
    }

    .invalid-feedback {
        color: #dc3545;
        font-size: 0.875em;
        display: none;
        width: 100%;
        margin-top: 0.25rem;
    }

    .is-invalid ~ .invalid-feedback {
        display: block;
    }
}

.error{
    color: red;
}
.middle-header {
    background-color: #fff;
    color: #003087;
    padding: 10px 20px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

}
.middle-header .right-logo {
width: 81px;
height: 90px;
border-radius: 0%;
object-fit: cover;
}
.middle-header small {
font-size: 0.8em;
}
.middle-header .left-logo {
width: 120px;
height: 120px;
border-radius: 50%;
object-fit: cover;
}