@font-face {
    font-family: Kanit-SemiBold;
    src: url("../font/Kanit-SemiBold.ttf");
}

@font-face {
    font-family: Kanit-Medium;
    src: url("../font/Kanit-Medium.ttf");
}

@font-face {
    font-family: Kanit-Light;
    src: url("../font/Kanit-Light.ttf");
}

@font-face {
    font-family: AvenirNext-Bold;
    src: url("../font/AvenirNext-Bold.ttf");
}

@font-face {
    font-family: AvenirNext-DemiBold;
    src: url("../font/AvenirNext-DemiBold.ttf");
}

@font-face {
    font-family: AvenirNext-Medium;
    src: url("../font/AvenirNext-Medium.ttf");
}

@font-face {
    font-family: AvenirNext-Regular;
    src: url("../font/AvenirNext-Regular.ttf");
}

:root {
    /* gold sampled from header / sub_header artwork */
    --gold: #c49a64;
    --gold-dark: #8f6a3e;
    --navy: #13224f;
}

#sampleProfileImage, #sampleProofID {
    display: block;

    /* This rule is very important, please don't ignore this */
    max-width: 100%;
}

body {
    background: #172545;
    margin: 0 auto;
    padding: 0;
}

/* fixed full-viewport background (works on iOS, unlike background-attachment: fixed) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    /* full image width on mobile; leftover height at the top is filled with navy */
    background: #172545 url("../img/bg_mobile.png") center bottom / 100% auto no-repeat;
}

@media (min-width: 768px) {
    body::before {
        background-image: url("../img/bg_pc.png");
        background-position: center top;
        background-size: cover;
    }
}

.hero {
    max-width: 760px;
    margin: 0 auto;
}

.hero-logo {
    width: 100%;
    margin: 0 auto;
    height: auto;
}

.wrapper {
    border-radius: 20px;
}

.responsive {
    width: 100%;
    height: auto;
}

.title-container {
    border-radius: 10px;
    background: var(--gold);
    color: var(--navy);
    padding: 15px;
}

.title-eng {
    font-family: AvenirNext-Bold, 'Verdana';
    text-transform: uppercase;
}

.title-thai {
    font-family: Kanit-SemiBold, 'Verdana';
}

.subtitle-eng {
    font-family: AvenirNext-DemiBold, 'Verdana';
}

.subtitle-thai {
    font-family: Kanit-Medium, 'Verdana';
}

.text-eng {
    font-family: AvenirNext-Regular, 'Verdana';
}

.text-thai {
    font-family: Kanit-Light, 'Verdana';
}

label, .preview-label {
    font-family: AvenirNext-DemiBold, 'Verdana';
    color: var(--gold);
}

input, select, small {
    font-family: AvenirNext-Medium, 'Verdana';
}

h2, h3, .header-wrapper h4 {
    color: var(--gold);
}

h4, .h4 {
    font-size: 18px;
    margin-bottom: 0px;
}

h3 {
    font-size: 25px;
    margin-bottom: 0px;
}

h3 > .title-eng {
    font-size: 22px;
}

h2.title-thai { font-size: 35px; }
h2.title-eng  { font-size: 28px; }
h4.title-thai { font-size: 18px; }
h4.title-eng  { font-size: 15px; }


input[type="checkbox"], input[type="radio"]  {
    width: 18px;
    height: 18px;
}

.upload-image {
    border: dashed 2px var(--navy);
    border-radius: 10px;
    padding: 50px 20px;
    cursor: pointer;
}

a:hover, button:hover {
    text-decoration: none;
}

/* text links on the white card: deeper gold for readability, navy on hover */
.link-primary {
    color: var(--gold-dark);
    font-family: AvenirNext-DemiBold, 'Verdana';
}

.link-primary:hover,
.link-primary:focus {
    color: var(--navy);
    text-decoration: underline;
}

.btn-image, .btn-image:hover {
    background: var(--gold);
    color: var(--navy) !important;
    border: none;
}

/* primary action buttons (Preview / Confirm / Back to Home) */
.btn-submit {
    background: var(--gold);
    color: var(--navy) !important;
    border: 2px solid var(--gold);
    border-radius: 10px;
    font-family: AvenirNext-DemiBold, 'Verdana';
    box-shadow: 0 4px 12px rgba(19, 34, 79, 0.25);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

/* trailing arrow hints that the button leads somewhere */
.btn-submit::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;
    margin-left: 10px;
    transition: transform .2s ease;
}

.btn-submit:hover,
.btn-submit:focus {
    background: var(--gold);
    color: var(--navy) !important;
    border-color: var(--gold-dark);
    box-shadow: 0 6px 16px rgba(19, 34, 79, 0.35);
    transform: translateY(-2px);
}

.btn-submit:hover::after {
    transform: translateX(4px);
}

.btn-submit:focus-visible {
    outline: 3px solid var(--gold-dark);
    outline-offset: 2px;
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(19, 34, 79, 0.3);
}

/* AUTOCOMPLETE  */
/* Overwrite container height and width */
.select2-container .select2-selection--single {
  height: 40px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  border-color: #ced4da !important;
}

/* Text inside select box */
.select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 38px !important;
  padding-left: 20px !important;
}

/* Typed inside select box */
.select2-search__field {
  padding-left: 10px !important;
}


/* Dropdown arrow */
.select2-container .select2-selection--single .select2-selection__arrow {
  height: 38px !important;
  top: 0 !important;
}
/* AUTOCOMPLETE  */

/* Datepicker */
.daterangepicker {
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(0,112,185,0.15) !important;
    border: 1px solid #d0e4f5 !important;
    font-family: AvenirNext-Medium, 'Verdana';
    min-width: 300px !important;
}
.daterangepicker .calendar-table {
    border-radius: 10px !important;
    padding: 6px !important;
}
.daterangepicker th.month {
    font-family: AvenirNext-DemiBold, 'Verdana';
    color: #0070B9 !important;
    font-size: 15px !important;
    font-weight: 600;
    padding: 6px 4px;
    text-align: center;
    white-space: nowrap;
}
.daterangepicker td,
.daterangepicker th {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
}
.daterangepicker td.available:hover,
.daterangepicker th.available:hover {
    background: #0070B9 !important;
    color: #fff !important;
    border-radius: 8px !important;
}
/* Hovered end-date preview: blend with the range bar */
.daterangepicker td.in-range + td.available:hover,
.daterangepicker td.active.start-date + td.available:hover {
    border-radius: 0 8px 8px 0 !important;
}
.daterangepicker td.active,
.daterangepicker td.active:hover {
    background: #0070B9 !important;
    color: #fff !important;
    border-radius: 8px !important;
}
.daterangepicker td.in-range {
    background: #0070B9 !important;
    color: #fff !important;
    border-radius: 0 !important;
}
.daterangepicker td.start-date {
    border-radius: 8px 0 0 8px !important;
}
.daterangepicker td.end-date {
    border-radius: 0 8px 8px 0 !important;
}
.daterangepicker td.start-date.end-date {
    border-radius: 8px !important;
}
.daterangepicker td.today {
    font-weight: bold;
    color: #FFC907 !important;
}
.daterangepicker td.off {
    color: #ccc !important;
}
.daterangepicker .week-day {
    color: #888 !important;
    font-size: 12px;
    font-family: AvenirNext-DemiBold, 'Verdana';
}
.daterangepicker .drp-buttons {
    border-top: 1px solid #d0e4f5 !important;
}
.daterangepicker .btn-primary {
    background-color: #0070B9 !important;
    border-color: #0070B9 !important;
    border-radius: 8px;
}
.daterangepicker .btn-default {
    border-radius: 8px;
}

#dob_display_passport, #dob_display_thai {
    background: #f8f8f8;
    color: #888;
}

/* Datepicker – modern month/year selects */
.daterangepicker select.monthselect,
.daterangepicker select.yearselect {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    padding: 5px 24px 5px 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 7px center !important;
    cursor: pointer !important;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    display: inline-block !important;
    vertical-align: middle !important;
}
.daterangepicker select.monthselect:focus,
.daterangepicker select.yearselect:focus {
    border-color: #c58000 !important;
    outline: 0;
    box-shadow: 0 0 0 0.15rem rgba(197,128,0,.2) !important;
}
.daterangepicker select.monthselect { width: auto !important; min-width: 110px !important; }
.daterangepicker select.yearselect  { width: auto !important; min-width: 80px !important; }


/* Preview Page */
.preview-label {
    font-size: 14px;
    margin-bottom: 2px;
}
.preview-value {
    font-size: 15px;
    color: #333;
    margin-bottom: 0;
}
.preview-row {
    padding: 10px 0;
    border-bottom: 1px solid #f0f4fb;
}
.preview-row:last-child {
    border-bottom: none;
}
.preview-photo {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #d0e4f5;
    object-fit: cover;
}
.preview-photo-id {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #d0e4f5;
}

.notice-note,
.thankyou-note {
    background: #EEF3FE;
    border-left: 4px solid var(--navy);
    border-radius: 8px;
    padding: 14px 18px;
    color: #555;
    font-size: 14px;
    text-align: left;
}

/* Thank you page */
.thankyou-icon {
    font-size: 64px;
    color: var(--gold);
}
.thankyou-title {
    margin-top: 16px;
}
.thankyou-subtitle {
    color: #555;
    font-size: 16px;
}


@media (max-width: 600px) {
    h3, .h3 {
        font-size: 20px;
    }

    label {
        font-size: 15px;
    }
	p {
		font-size: 14px;
	}
}


@media (max-width: 576px) {

	.thankyou-title > span.title-thai { font-size: 22px; }
	.thankyou-title > span.title-eng { font-size: 19px; }

	.thankyou-subtitle > span.subtitle-thai { font-size: 15px; }
	.thankyou-subtitle > span.subtitle-eng { font-size: 14px; }

	#form > div > label > div > ul { font-size: 12px;}

	.title-container > h4.title-thai { font-size: 15px; }
	.title-container > h4.title-eng { font-size: 13px; }

	.header-wrapper > div > h2.title-thai { font-size: 22px; }
	.header-wrapper > div > h2.title-eng { font-size: 18px; }

	.header-wrapper > div > h4.subtitle-eng { font-size: 16px; }
}

@media (max-width: 400px) {
	.header-wrapper > div > h4.subtitle-eng { font-size: 15px; }
}
