.main-page-header {
    box-sizing: border-box;
    background-image: url("/assets/images/resource/page-header-bg.png");
    margin: 0 auto;
    margin-top: 160px;
    border-radius: 13px;
    width: 98%;
    margin-inline: auto;
    padding-inline: 24px;
    padding-block: 100px;
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
}

.main-page-header h1 {
    margin: 0;
    color: #FFF;
    font-weight: 500;
    text-align: center;
    /* line-height: 1.1; */
    text-transform: uppercase;
    font-size: 32px;
    margin-bottom: 16px;
}

.main-page-header p {
    margin: 0;
    text-align: center;
    color: #FFF;
    font-size: 16px;
    text-transform: uppercase;
}

@media only screen and (max-width:1200px) {
    .main-page-header {
        margin-top: 150px !important;
    }
}

@media only screen and (max-width:990px) {
    .main-page-header {
        margin-top: 80px !important;
    }

    .main-page-header h1 {
        font-size: 38px;
    }
}

@media only screen and (max-width:676px) {
    .main-page-header h1 {
        font-size: 32px;
    }

    .main-page-header p {
        font-size: 14px;
    }
}

@media only screen and (max-width:420px) {
    .main-page-header h1 {
        font-size: 28px;
    }

    .main-page-header p {
        font-size: 13px;
    }
}

.hospital-guide-wrapper {
    padding: 24px 16px;
    /* background-color: #fff; */
    background-color: #e9f1fe;

    margin: 16px;
    border-radius: 17px;
}

.divider-header {
    padding-block: 16px;
    padding-block-end: 30px;
}

.divider-header .divider {
    height: 2px;
    background-color: #ED3438;
    margin-block: 16px;
}

.divider-header h2,
.divider-header p {
    margin: 0;
    font-family: "DM Sans", sans-serif;
}

.divider-header h2 {
    color: #3E4095;
}

.divider-header p {
    color: #006B3E;
    font-size: 14px;
}

@media only screen and (max-width:767px) {

    .divider-header h2,
    .divider-header p {
        margin-bottom: 10px;
        text-align: center;
    }
}

/* Appointment Section */
.form-pre-title {
    font-family: "DM Sans", sans-serif;
    color: #006B3E;
    font-size: 14px;
    text-transform: uppercase;
    margin: 0;
}

.form-title {
    font-family: "DM Sans", sans-serif;
    color: #3E4095;
    font-size: 20px;
    text-transform: uppercase;
    margin: 5px 0 16px 0;
    font-weight: 600;
}


.appointment-section img {
    width: 100%;
    border-radius: 17px;
}

.form-item {
    font-family: "DM Sans", Sans-Serif;
    margin-bottom: 24px !important;
}

.form-item p {
    font-size: 16px;
    margin: 0;
    color: #555657;
}

.form-item label {
    font-size: 16px;
    margin: 0;
    color: #3E4095;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: #3E4095;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.req-star {
    color: #ed3438;
    font-weight: 700;
}

.form-item-radio {
    display: flex;
    column-gap: 24px;
    row-gap: 10px;
    flex-wrap: wrap;
}

.form-item-radio>div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-item input[type="radio"] {
    accent-color: #3E4095;
}

.form-item-set h3 {
    font-size: 20px;
    color: #4E4E4E;
    font-weight: 600;
    margin-bottom: 16px;
}

.form-item-set {
    margin-bottom: 24px;
}

.patient_info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.patient_info .form-item {
    margin: 0;
}

.form-item-full {
    grid-column: span 2;

}

.form-item input::placeholder {
    color: #3E4095;
}

.form-item-half input,
.form-item-full input,
.form-item-half select,
.form-item-full select,
.form-item-full textarea {
    width: 100%;
    padding: 8px 24px;
    border: 1px solid #C9C6C6;
    background: transparent;
    border-radius: 13px;
}

.appointment_info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.appointment_info .form-item {
    margin: 0;
}

.appointment_info~p {
    color: #3E4095;
    margin-bottom: 24px;
}

.disclaimer h4 {
    color: #4E4E4E;
    font-size: 18px;
    font-weight: 500;
}

.disclaimer label {
    color: #555657;
    font-size: 16px;
}

.form-item-submit {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 24px;
}

.form-item-submit button {
    min-width: 150px;
    max-width: 150px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    background: #ed3438;
    border: 1px solid #ed3438;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    color: #FFF;
    font-family: "DM Sans", Sans-Serif;
    transition: all 0.3s ease-in-out;
}

.form-item-submit button:hover {
    background: #FFF;
    transition: all 0.3s ease-in-out;
    color: #ed3438;
}

@media only screen and (max-width:767px) {
    .appointment-form {
        margin-block-start: 24px;
    }

    .patient_info,
    .appointment_info {
        grid-template-columns: 1fr;
    }

    .form-item-full {
        grid-column: span 1;
    }

}

.form-item-gender {
    display: flex;
    gap: 24px;
}

/* Special Instructions */

.special-instructions {
    border: none;
    border-radius: 0;
    position: relative;
    padding: 0;
    margin-top: 12px;
}

.special-instructions h4 {
    font-size: 16px;
    font-family: "DM Sans", sans-serif;
    color: #3E4095;
    font-weight: 500;
    background-color: #e9f1fe;
    position: absolute;
    top: -10px;
    left: 20px;
    margin: 0;
    padding: 0 6px;
    line-height: 1.1;
}

.special-instructions p,
.special-instructions li {
    font-size: 14px;
    font-family: "DM Sans", sans-serif;
    color: #4E4E4EA3;
    margin: 0;
}

.special-instructions textarea {
    width: 100%;
    display: block;
    padding: 22px 24px 16px;
    border: 1px solid #C9C6C6;
    background: #e9f1fe;
    border-radius: 13px;
    min-height: 180px;
    resize: none;
    overflow: hidden;
    color: #6f7480;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.special-instructions textarea::placeholder {
    color: #6f7480;
    opacity: 1;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    white-space: pre-line;
}

.form-divider {
    border-bottom: 1px solid #C9C6C6;
    height: 1px;
    margin-block: 60px;

}

.lab-tests h3 {
    font-size: 22px;
    font-family: "DM Sans", sans-serif;
    color: #3E4095;
    margin: 0;

}

.lab-tests p {
    font-size: 14px;
    font-family: "DM Sans", sans-serif;
    color: #4E4E4EA3;
    margin-block-end: 24px;

}

.lab-test-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.lab-test-row:last-child {
    margin-bottom: 0;
}

.lab-test-row .ts-wrapper {
    flex: 1 1 auto;
}

.lab-test-remove {
    min-width: auto !important;
    max-width: none !important;
    width: auto !important;
    margin-top: 0 !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    border: 1px solid #ed3438 !important;
    background: #fff !important;
    color: #ed3438 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lab-test-remove:hover {
    background: #ed3438 !important;
    color: #fff !important;
}

.lab-pricing-summary {
    margin-top: 28px;
    margin-bottom: 10px;
    width: 100%;
    border: 1px solid #dfe6f4;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 18px 20px;
    box-shadow: 0 10px 25px rgba(62, 64, 149, 0.08);
}

.lab-pricing-summary.is-hidden {
    display: none;
}

.lab-pricing-summary h3 {
    margin: 0 0 6px 0;
    color: #3E4095;
    font-family: "DM Sans", sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.lab-pricing-summary p {
    margin: 0 0 14px 0;
    color: #4f5560;
    font-size: 15px;
    font-family: "DM Sans", sans-serif;
}

.pricing-table-wrap {
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
}

.pricing-table th,
.pricing-table td {
    padding: 12px 14px;
    border: 1px solid #e0dede;
    text-align: left;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
}

.pricing-table thead th {
    background: #e8efff;
    color: #3E4095;
    font-weight: 700;
}

.pricing-table tfoot th {
    background: #e8fff2;
    color: #006B3E;
    font-weight: 800;
    font-size: 16px;
}

.pricing-empty {
    color: #7d818a;
    font-style: italic;
}

@media only screen and (max-width: 767px) {
    .lab-test-row {
        flex-direction: column;
        align-items: stretch;
    }

    .lab-test-remove {
        width: 100% !important;
    }
}

/* Tom Select style aligned with form design */
.form-item .ts-wrapper {
    width: 100%;
    font-family: "DM Sans", sans-serif;
}

.field-error {
    color: #ed3438;
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
    font-family: "DM Sans", sans-serif;
}

.input-error {
    border-color: #ed3438 !important;
    box-shadow: 0 0 0 1px rgba(237, 52, 56, 0.15);
}

.form-item .ts-wrapper.single .ts-control {
    width: 100%;
    padding: 8px 24px;
    border: 1px solid #C9C6C6;
    background: transparent;
    border-radius: 13px;
    min-height: 44px;
    box-shadow: none;
}

.form-item .ts-wrapper.single .ts-control input {
    font-size: 16px;
    color: #3E4095;
}

.form-item .ts-wrapper.single .ts-control .item {
    color: #3E4095;
    font-size: 16px;
}

.form-item .ts-wrapper.single .ts-control:after {
    border-color: #2d2d2d transparent transparent transparent;
    right: 18px;
}

.form-item .ts-wrapper.single.dropdown-active .ts-control:after {
    border-color: transparent transparent #2d2d2d transparent;
    margin-top: -6px;
}

.form-item .ts-dropdown {
    border: 1px solid #C9C6C6;
    border-radius: 13px;
    margin-top: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.form-item .ts-dropdown .option,
.form-item .ts-dropdown .no-results,
.form-item .ts-dropdown .optgroup-header {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: #3E4095;
}

.form-item .ts-dropdown .option {
    padding: 10px 14px;
}

.form-item .ts-dropdown .option.active {
    background: #edf2ff;
    color: #3E4095;
}