@font-face {
    font-family: 'Noto Sans Thai';
    src: url('../fonts/Noto_Sans_Thai/NotoSansThai-VariableFont_wdth\,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

body {
    font-family: 'Noto Sans Thai', sans-serif !important;
    min-height: 100vh;
    background-color: #f4f6f8;
    color: #1E1E1E;
    font-size: 14px;
}

.shell {
    width: 100%;
    max-width: 880px;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background-image: url('../images/bg-register.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.lookup-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.head {
    color: #fff;
}

.card {
    flex: 1 1 auto;
    min-height: 0;
    border: 0;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 8px 24px #142d4614;
    margin-bottom: 5px;
}

.required::after {
    content: ' *';
    color: #dc3545;
}

.btn-primary:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.lang-tabs {
    display: inline-flex;
    gap: 0;
    padding: 2px;
    border: 1px solid #f07b95;
    border-radius: 999px;
    background: #e95b78;
    box-shadow: inset 0 1px 2px #9c29471f;
    white-space: nowrap;
    margin-left: auto;
    margin-right: auto;
}

.lang-tabs a {
    color: #641d31;
    text-decoration: none;
    font-size: .72rem;
    line-height: 1.2;
    padding: 7px 12px;
    border-radius: 999px;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.lang-tabs a.active {
    color: #263746;
    background: #fff;
    font-weight: 700;
    box-shadow: 0 1px 3px #7d263c40;
}

:root {
    touch-action: manipulation;
}

html,
body {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

.select2-container {
    width: 100% !important;
}

.form-select {
    min-height: 38px;
    padding-right: 2.5rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236b7785' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 12px 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select.form-select::-ms-expand {
    display: none;
}

.form-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23176b87' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7'/%3E%3C/svg%3E");
}

.select2-container--default .select2-selection--single {
    height: 40px;
    border: 1px solid #FBEDEE;
    border-radius: .375rem;
    background-color: #FBEDEE;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: .75rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6b7785;
    opacity: 1;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    width: 34px;
    right: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none;
}

.select2-container--default .select2-selection--single .select2-selection__arrow::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    top: 12px;
    left: 11px;
    border-right: 1.7px solid #6b7785;
    border-bottom: 1.7px solid #6b7785;
    transform: rotate(45deg);
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow::after {
    top: 16px;
    transform: rotate(225deg);
    border-color: #176b87;
}

.select2-container--default .select2-selection--single.is-invalid {
    border-color: #dc3545;
}

.select2-container--default .select2-selection--single.is-valid {
    border-color: #198754;
}

.select2-container--default .select2-dropdown {
    background: #FBEDEE;
    border-color: #f0cbd1;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background: #fff;
    border-color: #e4b8c0;
}

.select2-container--default .select2-results__option {
    color: #243447;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #e95b78;
    color: #fff;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: #f3d9dd;
    color: #243447;
}

.select2-container--default .select2-results__options {
    max-height: min(220px, 45vh);
    overflow-y: auto;
}

.select2-container--open {
    z-index: 1060;
}

.select2-container--open .select2-dropdown {
    position: absolute !important;
    max-height: min(280px, 48vh);
}

.select2-container--open .select2-results__options {
    max-height: min(220px, 40vh);
}

.select2-container--default .select2-results__option {
    min-height: 42px;
    padding: .65rem .75rem;
    touch-action: manipulation;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    min-height: 42px;
    padding: .5rem .75rem;
    font-size: 16px;
    touch-action: manipulation;
}

.select2-container--default .select2-selection--single {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
select,
.form-control,
.form-select,
.select2-container,
.select2-container * {
    touch-action: manipulation;
}

@media (max-width: 767.98px) {
    .form-control,
    .form-select,
    .select2-container--default .select2-selection--single,
    .select2-container--default .select2-search--dropdown .select2-search__field {
        font-size: 16px;
    }

    .select2-container--open {
        z-index: 1080;
    }

    .select2-container--open .select2-dropdown {
        position: absolute !important;
        max-height: min(320px, 55vh);
    }

    .select2-container--open .select2-results__options {
        max-height: min(250px, 45vh);
    }
}

.form-control {
    border-radius: 10px !important;
    background-color: #FBEDEE !important;
    border: 1px solid #FBEDEE !important;
    padding: 10px !important;
    color: #243447;
    font-size: inherit !important;
}

.form-control.is-invalid {
    border: 2px solid #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .16) !important;
    background-image: none !important;
}

.form-control.is-valid {
    border: 2px solid #198754 !important;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, .14) !important;
    background-image: none !important;
}

.select2-container--default .select2-selection--single.is-invalid {
    border: 2px solid #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .16) !important;
}

.select2-container--default .select2-selection--single.is-valid {
    border: 2px solid #198754 !important;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, .14) !important;
}

.form-control.is-invalid.is-valid,
.select2-container--default .select2-selection--single.is-invalid.is-valid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .16) !important;
}

.form-control.is-invalid.is-valid {
    background-image: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 35px;
    margin-top: 5px;
}

.field-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.consent{
    padding: 10px 20px;
    background-color: #FBEDEE;
    border-radius: 8px;
}

hr{
    border: 1px solid #E7EAF1
}

.btn-primary {
    background-color: #F06A84 !important;
    border-radius: 999px !important;
    border: 0px !important;
    min-height: 44px;
    width: 100%;
    padding-top: 10px;
}

@media (min-width: 576px) {
    .shell {
        max-width: 430px;
        margin: 0 auto;
    }

    .head>div {
        flex-direction: column;
    }

    .lang-tabs {
        width: 80%;
        align-self: center;
        justify-content: center;
    }

    .lang-tabs a {
        flex: 1;
        text-align: center;
    }

    .card {
        padding: 1rem !important;
    }

    .card .col-md-6 {
        width: 100%;
    }

    .field-pair {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .head {
        border-radius: 12px 12px 0 0;
    }

    .card {
        border-radius: 40px 40px 0 0;
    }

    .btn-primary {
        width: 100%;
    }

}

@media (max-width: 575px) {
    .head>div {
        flex-direction: column;
        align-items: center !important;
    }

    .lang-tabs {
        align-self: stretch;
        justify-content: center;
    }

    .lang-tabs a {
        flex: 1;
        text-align: center;
    }
}
