body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #F6F9FE;
    color: #1F3554;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

/* Font fix for iOS devices */
@supports (-webkit-touch-callout: none) {
    body, h1, h2, .form-label, .form-section-header, .btn, input, select, textarea {
        font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    }
}

body .container{
    padding: 15px;
}
.container {
    max-width: 800px;
}
h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1F3554;
    margin-bottom: 20px;
    text-align: center;
}
h1 {
    font-size: 30px;
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: #1F3554;
    margin-bottom: 20px;
    text-align: center;
}
.form-section-header {

    text-align: right;
    color: #1F3554;
    font-size: 16px;
    font-weight: 700;
    word-wrap: break-word
}

.form-section-header::before {
    content: " ";
    border-right: 4px solid #D32129;
    width: 4px;
    height: 1em;
    margin-left: 10px;
    font-weight: 600;
    border-radius: 3px;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 12px;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
    border-color: #1F3554;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    word-wrap: break-word
}

.btn-primary {
    background-color: #1F3554;
    border-color: #1F3554;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #A91A21;
    border-color: #A91A21;
}
.btn-primary:active {
    background-color: #A91A21;
    border-color: #A91A21;
}
.btn-primary:focus {
    background-color: #A91A21;
    border-color: #A91A21;
}


/* Custom dropdown styling to match design */
.custom-dropdown {
    position: relative;
}

.custom-dropdown select {
    appearance: none;
    padding-left: 30px;
}

.custom-dropdown::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #6c757d;
    pointer-events: none;
}
.form-select {
    -webkit-appearance: none;
    /* Safari */
    -moz-appearance: none;
    /* Firefox */
    appearance: none;
    background-image: none;
    /* Remove default dropdown arrow */
}
/* Custom date input styling */
.custom-date-input {
    position: relative;
}

.custom-date-input input {
    padding-left: 40px;
}
.custom-time-input {
    position: relative;
}

.custom-time-input input {
    padding-left: 20px;
}

.custom-time-input::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url('timer.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    pointer-events: none;
}

.custom-date-input::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-image: url('calendar-2.svg');
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.btn-primary {
    background-color: #14263F;
    border-color: #14263F;
    border-radius: 8px;
    width: 100%;
}

.department-card{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.department-card h5{
    font-size: 18px;
    font-weight: 600;
    
}


.btn-add{
    width: auto;
    padding: 2px 10px 5px 10px;
}

.navbar{
    background-color: #1F3554;
    padding: 10px 15px;
    border-bottom: 1px solid #E8E8E8;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content:center;
}
.navbar .navbar-container{
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}


.navbar img{
    /* width: 20px; */
    height: 50px;
    object-fit: contain;
}

.btn-primary:disabled {
    background-color: white !important;
    color: gray !important; /* Red text color */
    border: 2px dashed #1f355442 !important; /* Red border */


}
.backbtn{
    width: auto;
    padding: 2px 10px 5px 10px;
    background-color: #A91A21 !important;
}

.backbtn img{
    width: 20px !important;
    height: 20px !important;
}


.conditional-field,
.conditional-section {
    transition: all 0.3s ease;
}

.branch-section {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #fff;
}

.branch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.remove-branch {
    color: #dc3545;
    cursor: pointer;
}

#addBranch {
    margin-bottom: 20px;
}