@import url('/css/axs/roboto-font.css');

/* Replace color bootstrap 4 */
:root {
    --body-color: #4B6C6D;
    --primary: #50AE67;
    --light-primary: #EEF7F0;
    --dark-primary: #408E53;
    --secondary: #C09E46;
    --light-secondary: #F9F5ED;
    --dark-secondary: #A5873B;
    --light: #EDF7EF;
    --dark-light: #D5E6D8;

    --black: #000000;
    --blue: #3960F0;
    --gray: #A1A1A1;
    --success: #50AE67;
    --light-success: #EEF7F0;
    --warning: #C09E46;
    --light-warning: #F9F5ED;
    --danger: #CD6F75;
    --light-danger: #FCD8D5;
    --info: #2956B3;
    --light-info: #E6EEF7;
    --dark: #4B6C6D;
    --light-dark: #EDF0F0;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-body {
    color: var(--body-color) !important;
}

.text-muted {
    color: #9A9A9A !important;
}

.text-black {
    color: var(--black) !important;
}

.text-blue {
    color: var(--blue) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--dark-primary);
    border-color: var(--dark-primary);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover,
.btn-secondary:not(:disabled):not(.disabled).active,
.btn-secondary:not(:disabled):not(.disabled):active {
    background-color: var(--dark-secondary);
    border-color: var(--dark-secondary);
}

.btn-light {
    background-color: var(--light);
    border-color: var(--light);
    color: var(--primary);
}

.btn-link {
    color: var(--primary);
}

.btn-light:hover,
.btn-light:not(:disabled):not(.disabled).active,
.btn-light:not(:disabled):not(.disabled):active,
.show>.btn-light.dropdown-toggle,
.btn-light.focus,
.btn-light:focus {
    background-color: var(--dark-light);
    border-color: var(--dark-light);
    color: var(--primary);
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--primary);
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--dark-primary);
}

a.link-nostyle {
    color: unset;
    text-decoration: unset;
}

.badge-secondary {
    color: var(--secondary);
    background-color: var(--light-secondary);
}

.badge-success {
    color: var(--success);
    background-color: var(--light-success);
}

.badge-warning {
    color: var(--warning);
    background-color: var(--light-warning);
}

.badge-danger {
    color: var(--danger);
    background-color: var(--light-danger);
}

.badge-info {
    color: var(--info);
    background-color: var(--light-info);
}

.badge-dark {
    color: var(--dark);
    background-color: var(--light-dark);
}


/* Replace form bootstrap 4 */
.btn {
    border-radius: .75rem;
    padding: 9px .75rem;
}

.form-control {
    border-radius: 30px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    border: none;
    height: 44px;
    padding: .375rem 1rem;
    /*font-size: 14px;*/
    font-size: 16px;
    color: var(--body-color);
}

.form-control::placeholder {
    color: #cccccc;
    opacity: 1;
}

.form-control:disabled,
.form-control.grey {
    background-color: #E5E5E5;
}

.form-control-sm {
    border-radius: 30px;
    border: 1px solid #ced4da;
    box-shadow: none;
    height: 24px;
    padding: .15rem .5rem;
    font-size: 13px;
}

.axs-input-group {
    position: relative;
}

.axs-input-group .input-group-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.axs-input-group .form-control {
    padding-left: 2.5rem;
}

.form-control.blue-border {
    box-shadow: none;
    border: 1px solid #719DEC;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    background-image: url('/assets/images/axs/arrow_down@2x.png');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 24px;
}


/* Datepicker */
.datepicker td,
.datepicker th {
    padding: 8px;
    border-radius: 50%;
}
.fs-16 .datepicker td,
.fs-16 .datepicker th {
    width: 40px;
    height: 40px;
}

.datepicker table tr td.disabled {
    color: #999 !important;
}

.datepicker table tr td.today,
.datepicker table tr td.today.disabled {
    background: #ffdb99;
}

.datepicker table tr td.today.disabled:hover,
.datepicker table tr td.today:hover:hover {
    background: #dbbc83;
}

.datepicker table tr td span.active.active,
.datepicker table tr td span.active.active.disabled,
.datepicker table tr td.active.active,
.datepicker table tr td.active.active.disabled {
    background: var(--primary);
    color: #ffffff;
}

.datepicker table tr td.active.active.disabled:hover,
.datepicker table tr td.active.active:hover,
.datepicker table tr td span.active.active.disabled:hover,
.datepicker table tr td span.active.active:hover {
    background: var(--dark-primary);
}

.datepicker-inline {
    width: unset;
}


/* AXS display */
body {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    background: #fff;
    color: var(--body-color);
}

body.p-nav {
    padding-bottom: 55px;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

.h1,
h1 {
    font-size: 32px;
}

.h2,
h2 {
    font-size: 24px;
}

.h3,
h3 {
    font-size: 18px;
}

.h4,
h4 {
    font-size: 16px;
}

/* Modal */
.modal-content {
    border-radius: 1rem;
    border: none;
}

.modal-dialog-top {
    top: 46px;
}

.modal-dialog-bottom {
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: end;
    justify-content: end;
    height: 100%;
    display: flex;
    margin: 0 auto;
}

.modal-dialog-bottom .modal-content {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #F6F6F6;
}

/* New Common style */
.fs-11 {
    font-size: 11px !important;
}

.fs-12 {
    font-size: 12px !important;
}

.fs-sm {
    font-size: 13px !important;
}

.fs-16 {
    font-size: 16px !important;
}

.fs-big {
    font-size: 42px !important;
}

.font-weight-medium {
    font-weight: 500 !important;
}

.truncate-text-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lh-0 {
    line-height: 0 !important;
}

.lh-sm {
    line-height: 1.25em !important;
}

.truncate-text-2-lines.lh-sm {
    height: 2.5em;
}

.disabled-link {
    pointer-events: none;
    cursor: default;
}

.h-100-w-header {
    height: calc(100vh - 100px);
}

body.p-nav .h-100-w-header {
    height: calc(100vh - 100px - 55px);
}

.btn.btn-white {
    background-color: #fff;
    border-color: #fff;
    color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.btn.rounded-circle {
    line-height: 0;
    padding: .75rem;
}

.btn.btn-big-light-green {
    background-color: var(--light);
    border-color: var(--light);
    color: var(--primary);
    font-weight: 500;
    padding: 1rem .75rem;
    display: block;
    width: 100%;
}

.btn.btn-big-light-green:hover {
    background-color: var(--dark-light);
    border-color: var(--dark-light);
}

.abs-top-right {
    position: absolute;
    top: 0;
    right: 0;
}

.abs-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
}

.abs-middle-left {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
}

.abs-middle-right {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
}

.icon-sm {
    width: 20px;
}

.icon-md {
    width: 24px;
}

.c-pointer {
    cursor: pointer !important;
}

.sticky-bottom {
    position: sticky;
    bottom: 0;
}

/* Common components */
.axs-tabs .nav-link {
    border-radius: 30px;
    padding: 1rem;
    font-weight: 500;
}

.axs-card,
.axs-card-select {
    border: none;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.axs-card {
    border-radius: 1rem;
}

.axs-card-select {
    border-radius: .75rem;
}

.axs-card-select .card-body {
    padding: 1rem;
}

.axs-badge {
    padding: .5rem 1rem;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
}

.axs-shadow {
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.axs-type-icon {
    max-width: 54px;
    max-height: 54px;
}

/* Header section */
.logo {
    height: 30px;
}

.header-section {
    position: sticky;
    top: 0;
    background: #FFFFFF;
    z-index: 1000;
    margin-bottom: 1rem;
}

.header-bar {
    padding: 0.5rem 0;
    position: relative;
    height: 52px;
}

.header-bar h2 {
    margin: 0;
    -ms-flex-item-align: center;
    align-self: center;
}

.btn-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0, -50%);
    background: #edf9ef;
    color: #438859;
    font-size: 24px;
}

/* Bottom section */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0 1rem;
    z-index: 3;
}

.bottom-nav .container {
    padding: 0;
    display: flex;
    justify-content: space-around;
}

.bottom-nav a {
    text-align: center;
    color: #9cb0aa;
    text-decoration: none;
}

.bottom-nav a.active {
    color: #2b615f;
}

.bottom-nav i {
    display: block;
    font-size: 28px;
    padding: 0 0.5rem;
}


/* Profile menu list */
.profile-menu .list-group-item {
    padding: .5rem 1rem;
    border: none;
}

.profile-menu .list-group-item-action {
    color: var(--body-color);
}


/* Button card deck (radio, checkbox) */
.button-card-deck.row {
    margin-left: -5px;
    margin-right: -5px;
}

.button-card-deck .col {
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 1rem;
}

.button-card-deck label {
    display: block;
    margin: 0;
    height: 100%;
    box-shadow: 0px 7px 16px rgba(0, 0, 0, 0.1);
}

.button-card-deck input[type="radio"],
.button-card-deck input[type="checkbox"] {
    display: none;
}

.button-card-deck .card {
    height: 100%;
    border: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.1rem;
}

.button-card-deck .card:hover {
    cursor: pointer;
}

.button-card-deck input[type="radio"]:checked+.card,
.button-card-deck input[type="checkbox"]:checked+.card {
    box-shadow: 0 0 0 2px var(--primary);
}

.button-card-deck .card-body {
    padding: 0.5rem 0.5rem 1rem;
    display: flex;
    -ms-flex-align: center !important;
    align-items: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
}

.button-card-deck label,
.button-card-deck .card,
.button-card-deck .card-body,
.button-card-deck .card-footer {
    border-radius: 1rem;
}

.button-card-deck .card-img-icon {
    object-fit: scale-down;
    max-height: 60px;
    margin: 1rem 0 0;
}

.addon-deck .card-body {
    padding: 1rem;
    -ms-flex-align: start !important;
    align-items: start !important;
    -ms-flex-pack: start !important;
    justify-content: start !important;
    font-size: 13px;
    font-weight: 400;
}

/* Coverage card deck */
.coverage-card {
    position: relative;
    width: 100%;
    height: 164px;
    border-radius: 20px;
    margin-bottom: 1rem;
    color: #ffffff;
}

.coverage-card [class^="coverage-"]:not(.coverage-circle, .coverage-line) {
    position: absolute;
    z-index: 2;
}

.coverage-my {
    background: linear-gradient(237.35deg, #117d3c 30.47%, #17b660 83.26%);
}

.coverage-sg {
    background: linear-gradient(237.35deg, #3e74e1 30.47%, #1959b8 83.26%);
}

.coverage-duration {
    top: -30px;
    left: 27px;
    font-size: 140px;
    font-weight: bold;
    text-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
}

.coverage-duration-unit {
    top: 98px;
    left: 92px;
    background-origin: padding-box;
    font-size: 24px;
    font-weight: bold;
}

.coverage-text {
    top: 134px;
    left: 92px;
    font-size: 8px;
    letter-spacing: 0.32em;
}

.coverage-subtext {
    position: relative;
    left: 20px;
}

.coverage-description {
    position: relative !important;
    text-align: left;
    font-size: 18px;
    top: 35px;
    left: 120px;
    width: 350px;
}

.coverage-circle {
    position: absolute;
    top: 26px;
    left: 30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    z-index: 1;
}

.coverage-my .coverage-circle {
    background: #127e3d;
}

.coverage-sg .coverage-circle {
    background: #0048b4;
}

.coverage-country-box {
    top: 11px;
    right: 15px;
    width: 200px;
    height: 100px;
}

.coverage-country-box .country-top {
    display: flex;
}

.coverage-country-box .country {
    padding: 0 0 2px 8px;
    text-align: right;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.32em;
}

.coverage-country-box .h-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, white, transparent);
    margin-top: 4px;
}

.coverage-country-box .v-line {
    height: 100%;
    margin-left: auto;
    width: 1px;
    background: linear-gradient(to bottom, white, transparent);
}

.coverage-card .coverage-price {
    bottom: 2px;
    right: 30px;
}

.coverage-price {
    font-size: 64px;
    font-weight: 900;
    line-height: 1em;
}

@media (max-width: 467px) {
    span.coverage-price span {
        font-size: calc(3.5vw + 7px) !important;
    }

    .coverage-price {
        font-size: calc(4vw + 15px);
    }

    .coverage-duration-unit {
        top: 72px;
    }

    .coverage-text {
        top: 108px;
    }

    .coverage-description {
        font-size: 16px;
        top: 35px;
        left: 114px;
        width: 210px;
    }

    .coverage-subtext {
        top: 10px;
        left: 20px;
    }
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    -ms-flex-align: start;
    align-items: flex-start;
    position: relative;
    margin: 1rem 0;
}

.step {
    flex: 1 1 0px;
    text-align: center;
    color: var(--gray);
}

.step-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: -11px auto 6px;
    background: var(--gray);
}

.step-line {
    height: 2px;
    background: var(--primary);
}

.step:first-child .step-line {
    width: 50%;
    margin-left: auto;
}

.step:last-child .step-line {
    width: 50%;
    margin-right: auto;
}

.step-label {
    line-height: 1.25em;
}

.step.active {
    color: var(--primary);
}

.step.active .step-circle {
    background: var(--primary);
}

.step.current {
    color: var(--blue);
}

.step.current .step-circle {
    background: var(--blue);
}


/* MAP */
.responsive-map {
    height: 50vh;
    width: 100%;
    border-radius: 8px;
}

@media screen and (max-height: 730px) {
    .responsive-map {
        height: 40vh;
    }
}

@media screen and (max-height: 650px) {
    .responsive-map {
        height: 30vh;
    }
}

@media screen and (max-height: 560px) {
    .responsive-map {
        height: 20vh;
    }
}

@media screen and (max-height: 500px) {
    .responsive-map {
        height: 50vh;
    }

    .map-form .fixed-bottom {
        position: relative;
    }
}

/* Completely hide the native date input */
.hidden-date-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.date-wrapper {
    display: inline-block;
    position: relative;
}


/* Overlay covers entire screen */
#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Simple CSS spinner */
.loader-spinner {
    border: 8px solid #F3F3F3;
    border-top: 8px solid var(--primary);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    animation: spin 1s linear infinite;
}

/* Spin animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* preview image modal  */
.img-preview-close-btn {
    background: transparent;
    border: none;
}

.img-preview-close-btn span {
    font-size: 1rem;
}

/*Toastr positioning*/
#toast-container {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    position: fixed !important;
    z-index: 9999;
}

#toast-container > div {
    margin: 0 auto;
}

.toast {
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 12px 16px;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    opacity: 1 !important;
}

.toast .toast-icon {
    margin-right: 12px;
    font-size: 20px;
}

#toast-container > .toast-success {
    background-image: url('/assets/images/axs/icons/thumbnails/success.png') !important;
}

#toast-container > .toast-warning {
    background-image: url('/assets/images/axs/icons/thumbnails/warning.png') !important;
}

#toast-container > .toast-error {
    background-image: url('/assets/images/axs/icons/thumbnails/error.png') !important;
}

#toast-container > .toast-info {
    background-image: url('/assets/images/axs/icons/thumbnails/info.png') !important;
}

/* iFrame css */
.iframe-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 120px);
    overflow: hidden;
}

.iframe-wrapper iframe {
    position: absolute;
    top: -120px;
    left: 0;
    width: 100%;
    height: calc(100vh + 120px);
    border: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}