.nav-link,
body {
    font-family: almarai-regular
}

.main-header,
.search-section {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1)
}

#civilNumber,
.calendar-day,
.calendar-weekdays,
.captcha-input,
.example-box,
.hint-image,
.hint-image-section,
.main-footer,
.manual-day,
.manual-year,
.nav-link,
.search-header {
    text-align: center
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    line-height: 1.6;
    color: #333;
    background: #f8f9fa
}

@font-face {
    font-family: almarai-bold;
    src: url('/css/almarai/almarai-bold.ttf') format('truetype')
}

@font-face {
    font-family: almarai-extrabold;
    src: url('/css/almarai/almarai-extrabold.ttf') format('truetype')
}

@font-face {
    font-family: almarai-light;
    src: url('/css/almarai/almarai-light.ttf') format('truetype')
}

@font-face {
    font-family: almarai-regular;
    src: url('/css/almarai/almarai-regular.ttf') format('truetype')
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

.main-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000
}

.header-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    width: 100%
}

.col {
    margin-right: 70px
}

.logo-left,
.logo-right {
    flex: 1;
    display: flex;
    align-items: center
}

.logo-left,
.nav-left {
    justify-content: flex-start
}

.logo-right,
.nav-right {
    justify-content: flex-end
}

.header-logo2 {
    height: 92px;
    width: 207px;
    max-width: 216px
}

.header-logo1 {
    height: 106px;
    width: 229px;
    max-width: 229px
}

.logo-right .header-logo2 {
    margin-left: 31px
}

.nav-links {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%
}

.nav-left,
.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px
}

.nav-link {
    text-decoration: none;
    color: #4391bc;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    transition: .3s;
    position: relative;
    white-space: nowrap
}

#captcha-text,
#civilNumber,
.captcha-input,
.form-input,
input {
    font-family: 'Courier New', monospace
}

.hint-trigger:hover,
.nav-link:hover {
    background: #4391bc;
    color: #fff
}

.nav-left .nav-link {
    margin-right: 20px
}

.nav-right .nav-link {
    margin-left: 20px
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: 0 0;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%)
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #4391bc;
    margin: 3px 0;
    transition: .3s
}

.main-content {
    min-height: calc(90vh - 304px)
}

.search-section {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 60px
}

.search-header {
    border-bottom: 2px solid #4391bc;
    margin-bottom: 10px
}

.search-title {
    color: #4391bc;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 10px
}

.search-subtitle {
    color: #666;
    font-weight: 400;
    margin-top: 0;
    font-size: 18px
}

.search-form-container {
    max-width: 600px;
    margin: 0 auto
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.form-label {
    align-items: center;
    gap: 10px
}

.form-label i {
    color: #4391bc;
    font-size: 1.1rem
}

.form-input {
    color: #1e293b
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(67, 145, 188, .1)
}

.form-input.error {
    border-color: #dc2626
}

.captcha-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0
}

.captcha-header {
    margin-bottom: 15px
}

.captcha-container {
    display: flex;
    gap: 15px;
    align-items: center
}

.captcha-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 15px;
    min-width: 140px;
    justify-content: space-between
}

#captcha-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4391bc;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #4391bc, #4e5987);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    user-select: none
}

#civilNumber,
.captcha-input,
.submit-btn,
input {
    font-weight: 600
}

.captcha-refresh {
    background: 0 0;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: .3s;
    font-size: 1rem
}

.main-footer,
.submit-btn {
    background: #4391bc;
    color: #fff
}

.captcha-refresh:hover {
    color: #4391bc;
    transform: rotate(90deg)
}

.captcha-input {
    flex: 1;
    letter-spacing: 2px
}

.submit-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: .3s;
    margin-top: 10px
}

.submit-btn:hover:not(:disabled) {
    background: #3a7fa3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 145, 188, .3)
}

.submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none
}

.main-footer {
    padding: 14px 28px;
    margin-top: 60px
}

.search-section {
    padding: 15px
}

.hint-text-mobile {
    display: inline
}

.hint-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000
}

.date-picker-overlay,
.hint-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5)
}

.hint-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    animation: .3s slideUp
}

@keyframes slideUp {
    from {
        transform: translateY(100%)
    }

    to {
        transform: translateY(0)
    }
}

.date-picker-header,
.hint-modal-header {
    position: relative;
    padding: 18px 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
    border-radius: 20px 20px 0 0;
    text-align: center
}

.hint-modal-header h3 {
    font-weight: 700;
    color: #4391bc;
    margin: 0;
    font-size: 18px
}

.hint-modal-close {
    position: absolute;
    left: 10px;
    top: 10px;
    background: 0 0;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px
}

.hint-modal-body {
    padding: 9px
}

.hint-image-section {
    margin-bottom: 20px;
    padding: 0;
    background: #f8f9fa;
    border-radius: 10px
}

.hint-image-placeholder {
    color: #666
}

.hint-image-placeholder i {
    font-size: 48px;
    color: #4391bc;
    margin-bottom: 10px;
    display: block
}

.hint-image {
    margin-right: 87px;
    width: 270px;
    max-width: 100%;
    height: 166px;
    border-radius: 8px;
    border: 1px solid #ddd
}

.hint-info {
    color: #333
}

.hint-example h4,
.hint-location h4 {
    color: #4391bc;
    margin-bottom: 10px;
    font-size: 16px
}

.hint-location ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.hint-location li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.hint-location li:last-child {
    border-bottom: none
}

.date-picker-trigger:hover,
.hint-location strong {
    color: #004851
}

.hint-example {
    border: 1.5px solid #4391bc;
    margin: 5px 0;
    padding: 7px;
    border-radius: 8px
}

.example-box {
    padding: 10px
}

.example-box code {
    background: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
    color: #4391bc;
    display: inline-block;
    margin-bottom: 5px
}

.example-desc {
    display: block;
    color: #666;
    font-size: 14px
}

.hint-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    background: #fff
}

.hint-understood-btn {
    width: 100%;
    padding: 12px;
    background: #4391bc;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .3s
}

.calendar-day,
.calendar-nav {
    transition: .3s;
    cursor: pointer
}

@media (min-width:768px) {
    .form-row {
        flex-direction: row
    }

    .hint-image {
        margin-right: 35px
    }

    .form-row .form-group {
        flex: 1
    }

    .hint-modal-content {
        top: 50%;
        left: 50%;
        bottom: auto;
        right: auto;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 500px;
        max-height: 80vh;
        border-radius: 15px;
        animation: .3s fadeIn
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translate(-50%, -40%)
        }

        to {
            opacity: 1;
            transform: translate(-50%, -50%)
        }
    }

    .hint-text-mobile {
        display: inline
    }

    .hint-trigger {
        font-size: 14px;
        padding: 6px 15px
    }
}

.civil-number-group,
.date-input-container,
input[type=date] {
    position: relative
}

.date-picker-trigger {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: 0 0;
    border: none;
    color: #4391bc;
    cursor: pointer;
    padding: 8px;
    font-size: 16px
}

.date-picker-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001
}

.date-picker-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 15px;
    width: 95%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto
}

.date-picker-header h3 {
    margin: 0;
    font-size: 18px;
    color: #4391bc;
    font-weight: 700
}

.date-picker-close {
    position: absolute;
    left: 10px;
    top: 10px;
    background: 0 0;
    border: none;
    cursor: pointer;
    font-size: 18px
}

.date-picker-body {
    padding: 20px
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px
}

.calendar-nav {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 12px;
    color: #4391bc;
    flex-shrink: 0
}

.calendar-day:hover,
.calendar-nav:hover {
    background: #e8f4f3;
    border-color: #4391bc
}

.month-year-selectors {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center
}

.calendar-days,
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px
}

.month-selector,
.year-selector {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: #004851;
    font-weight: 700;
    cursor: pointer;
    min-width: 0
}

.month-selector {
    flex: 2
}

.year-selector {
    flex: 1
}

.form-input:focus,
.month-selector:focus,
.year-selector:focus {
    border-color: #4391bc;
    outline: 0
}

.calendar-weekdays {
    margin-bottom: 10px;
    font-weight: 700;
    color: #4391bc;
    font-size: 12px
}

.calendar-days {
    margin-bottom: 20px
}

.form-row,
.manual-input-fields {
    margin-bottom: 15px;
    display: flex
}

.calendar-day {
    padding: 12px 5px;
    border: 1px solid #f0f0f0;
    border-radius: 5px;
    background: #fff;
    font-size: 14px
}

.calendar-day.selected {
    background: #4391bc;
    color: #fff;
    border-color: #4391bc
}

.calendar-day.other-month {
    color: #ccc;
    background: #f8f9fa
}

.manual-input-fields {
    gap: 8px
}

.manual-day,
.manual-year {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px
}

.manual-month {
    flex: 2;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff
}

.manual-confirm-btn {
    width: 100%;
    padding: 12px;
    background: #4391bc;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: background .3s
}

.manual-confirm-btn:hover {
    background: #004851
}

.hint-trigger:hover:not(:disabled),
.hint-understood-btn:hover:not(:disabled),
.manual-confirm-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: rgba(67, 145, 188, .3) 0 6px 20px;
    background: #3a7fa3
}

@media (max-width:480px) {

    .date-picker-body,
    .date-picker-header,
    .hint-modal-footer,
    .hint-modal-header {
        padding: 15px
    }

    .col {
        margin: 0
    }

    .hint-modal-body {
        padding: 10px
    }

    .hint-text-mobile {
        display: inline
    }

    .hint-trigger {
        padding: 5px 10px;
        font-size: 11px
    }

    .date-picker-content {
        width: 90%;
        max-width: 350px
    }

    .hint-image {
        max-height: 147px;
        width: 246px
    }

    .calendar-day {
        padding: 10px 3px;
        font-size: 12px
    }

    .calendar-controls {
        flex-wrap: wrap
    }

    .calendar-weekdays {
        font-size: 11px
    }

    .month-selector,
    .year-selector {
        padding: 6px 8px;
        font-size: 14px
    }

    .manual-input-fields {
        flex-direction: column
    }
}

.form-row {
    flex-direction: column;
    gap: 15px
}

.form-group {
    margin-bottom: 20px
}

.label-with-hint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px
}

.hint-trigger {
    border: 1px solid #4391bc;
    border-radius: 20px;
    padding: 6px 12px;
    color: #4391bc;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: .3s
}

.field-error {
    min-height: 20px;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color .3s;
    background: #fff
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px
}

.copyright {
    font-size: 1.1rem;
    font-weight: 500
}

#civilNumber {
    letter-spacing: 1px
}

input::placeholder {
    font-family: 'Courier New', monospace;
    letter-spacing: normal;
    font-weight: 400
}

#captcha-input::placeholder {
    font-family: 'Courier New', monospace;
    letter-spacing: normal;
    font-weight: 400
}

input {
    text-align: right !important
}

input[type=date]::-webkit-calendar-picker-indicator {
    background: 0 0;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto
}

@media (max-width:768px) {
    .container {
        padding: 0 15px
    }

    .hint-image {
        max-height: 147px;
        width: 246px;
        margin-right: 34px
    }

    .header-logos {
        padding: 15px 0;
        flex-direction: row;
        gap: 0
    }

    .logo-left,
    .logo-right {
        justify-content: flex-start;
        flex: 1
    }

    .logo-right {
        justify-content: flex-end
    }

    .header-logo1,
    .header-logo2 {
        height: 60px;
        max-width: 150px
    }

    .logo-left .header-logo1 {
        margin-right: 20px
    }

    .logo-right .header-logo2 {
        margin-left: 20px
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0
    }

    .nav-left,
    .nav-right {
        justify-content: center;
        flex: none;
        width: 100%
    }

    .nav-left .nav-link,
    .nav-right .nav-link {
        margin: 0 10px
    }

    .mobile-menu-toggle {
        display: flex
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0
    }

    .search-title {
        font-size: 1.8rem
    }

    .captcha-container {
        flex-direction: column;
        gap: 12px
    }

    .captcha-display {
        width: 100%;
        justify-content: center
    }
}
.title{
    margin-top: 25px;
    text-align: center;
    font-size: 22px;font-weight: 600;    color: #4391bc;
  
}
@media (max-width:480px) {
    .header-logo1 {
        height: 63px;
        width: 136px;
        max-width: 179px
    }

    .hint-image {
        max-height: 147px;
        width: 246px;
        margin-right: 34px
    }
    .title{
        margin-top: 11px;
        text-align: center;
        font-size: 13px;color: #4391bc;
        font-weight: 700; 
      
    }

    .logo-left {
        margin-top: 6px
    }

    .copyright {
        font-size: .9rem;
        font-weight: 400
    }

    .row>* {
        padding-left: 0
    }

    .main-footer {
        background: #4391bc;
        color: #fff;
        padding-top: 10px;
        text-align: center;
        margin-top: 90px
    }

    .header-logo2 {
        height: 55px;
        width: 113px;
        max-width: 157px
    }

    .search-section {
        margin-bottom: 50px
    }

    .logo-left .header-logo1 {
        margin-right: -12px
    }

    .logo-right .header-logo2 {
        margin-left: 3px
    }

    .nav-left .nav-link,
    .nav-right .nav-link {
        margin: 0
    }

    .search-title {
        font-size: 18px;
        margin-bottom: 10px;
        text-align: center
    }

    .search-subtitle {
        font-size: 18px
    }

    .form-label {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
        font-weight: 400;
        font-size: 1rem
    }

    .form-input {
        padding: 12px 14px
    }

    .captcha-section {
        padding: 15px
    }
}

@media (max-width:360px) {

    .header-logo1,
    .header-logo2 {
        height: 45px;
        max-width: 100px
    }

    .hint-image {
        max-height: 147px;
        width: 246px;
        margin-right: 34px
    }

    .logo-left .header-logo1 {
        margin-right: 10px
    }

    .logo-right .header-logo2 {
        margin-left: 10px
    }

    .nav-link {
        font-size: .5rem;
        padding: 4px 7px
    }

    .nav-left .nav-link,
    .nav-right .nav-link {
        margin: 0 5px
    }

    .search-title {
        font-size: 1.3rem
    }

    .search-subtitle {
        font-size: .9rem
    }
}