@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

* {
    padding: 0;
    margin: 0;

    --layout-breakpoint: 1200px ;
    /* Pref to use primary, secondary, etc. */
    --clr-primary: #5990D9;
    --clr-secondary: #213E73;
    --clr-background: #FEFCF6;
    --clr-accent: #FFCC61;
	--clr-warn:#fdad0d;
    --clr-accept: rgb(94, 185, 93);
    --clr-white: #FEFCF6;
    --clr-bonewhite: #F6F4EC;
    --clr-blue: #5990D9;
    --clr-bluedark: #213E73; 
    --clr-grey-100: #212121;
    --clr-grey-300: #777777;
    --clr-grey: #EEE;
    --clr-linear: linear-gradient(203deg, #3E75D9 -37.13%, var(--clr-secondary) 96.85%);

    --clr-primary-contrast: #FFF;
    --clr-gray: #888;
    --clr-black: #212121;

    --line-block-default-padding: 59px;
    --padding-left-rigth: 15px;  
    --default-padding: 16px;
    --default-row-gap: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

@font-face {
    font-family: Poppins;
    src: url('/fonts/Poppins-Regular.ttf');
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

@font-face {
    font-family: Poppins;
    src: url('/fonts/Poppins-Italic.ttf');
    font-style: italic;
    font-weight: 400;
}

body {
    height: 100vh;
    background-color: var(--clr-background);
    font-family: Poppins;
    font-size: 16px;
    min-width: 393px;
    color: var(--clr-grey-100);
}


h1 {
    font-size: 2.625rem; /*42px*/
    line-height: 3.25rem; /*52px*/
    color: var(--clr-secondary);
    font-style: normal;
    font-weight: 400;

    margin-bottom: 12px;
}

h2 {
    font-weight: 400;
    font-size: 2.375rem; /*38px;*/
    line-height: 46px;

    margin-bottom: 12px;
}

h3 {
    color: var(--clr-secondary);
    font-family: Poppins;
    font-size: 1.875rem; /*30px;*/
    font-style: normal;
    font-weight: 400;
    line-height: 42px; /* 140% */
    margin-bottom: 12px;
}

h4 {
    font-family: Poppins;
    font-size: 1.375rem; /*22px;*/
    font-style: normal;
    font-weight: 400;
    line-height: 36px; /* 163.636% */
}

h5 {
    font-family: Poppins;
    font-size: 1.25rem; /*20px;*/
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 120% */
    margin-bottom: 10px;
}

button {
    border: none;
}

.radio-label{
    cursor: pointer;
}

.none-width {
    width: auto !important;
}

.dflt-pdng {
    padding:var(--default-padding);
}

.pgnts-lnk {
    color:var(--clr-blue);
    padding:0 5px;
    font-weight: 600;
}

.pgnts-lnk:hover {
    color:var(--clr-bluedark)
}

/*
------------
Text
------------
*/

.subtitle {
    font-size: 16px;
    color: var(--clr-grey-300);
}

.ms-bold{
    font-weight: 500;
}

.txt-default{
    color: unset;
    margin-bottom: 0;
}
.txt-primary { color: var(--clr-primary);}
.txt-primary:hover { color: var(--clr-secondary);}

.txt-secondary {
    color: var(--clr-secondary);
}
.txt-accept { color: var(--clr-accept); }
.txt-warn { color: var(--clr-warn); }
.text-red { color: red !important;  }
.text-red:hover { color: rgb(141, 0, 0)  !important; }

.text-overflow{
    min-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
------------
Blocks
------------
*/

.flex-column{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flex-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.error-box {
	border: 3px solid red;
	border-radius: 12px;
	padding: 10px;
	margin-bottom: 10px;
	background-color: rgba(255, 0, 0, 0.25);
	font-weight: 500;
}

@media (max-width: 992px) {
    .responsive-layout{/*vertical layout*/
        justify-content: center;
        flex-direction: column;
    }

    .side-l, .side-r {
        max-width: 100%;
    }

    .side-l:not(.empty) {
        margin-bottom: 60px;
        min-width: calc(380px - (2 * var(--default-padding))) !important;
    }
    
    .cards-container {
        /* position: absolute; */
        border-radius: 0 !important;
        width: calc(100% + 2 * var(--default-padding)) !important;
        margin-left: calc(-1 * var(--default-padding));
        margin-right: calc(-1 * var(--default-padding));
        padding: 40px var(--default-padding) !important;
    }
    .cards-container__card {
        min-width:calc(380px - (2 * var(--default-padding))) !important;
    }

    .side-l:not(.empty)+.side-r > *{
        max-width: none !important;
    }
    .dflt-pdng-mbl {
        padding: var(--default-padding);
    }
}

@media (min-width: 992px) {
    .responsive-layout{ /*horizontal layout*/
        justify-content: space-between;
    }

    .side-l:not(.empty) {
        margin-right: 60px;
    }

    .side-l:not(.empty)+.side-r{
        justify-content: end;
    }
}


.responsive-layout{
    display: flex;
}

.side-l:not(.empty) {
    max-width: 445px;
    min-width: 400px;
}

.side-l:not(.empty)+.side-r > *{
    max-width: 661px;
    min-width: 320px;
    flex-grow: 1;
}

.side-l:not(.empty)+.side-r{
    display: flex;
    justify-self: end;
    width: 100%;
}

.side-l.empty + .side-r{
    width: 100%;
}

.headline-block {
    max-width: 600px;
}

.line {
    height: 3px;
    background-color: #CCC;
    width: 100%;
}

.line-block {
    width:100%;
    display: inline-block;
    min-width: 352px;
    font-style: normal;
}

.line-block-content {
    --padding: 16px;
    width:calc(100% - 2 * var(--padding));
    max-width: 1220px;
    margin: auto;
}

/*
------------
Style prop class
------------
*/
.mb-3 { margin-bottom: 12px; }
.mb-30px { margin-bottom: 30px; }
.mb-14 { margin-bottom: calc(14*4px); }

.full-width{ width: 100% !important;}
.display_none { display: none; }

/*
------------
Cards container
------------
*/

.cards-container {
   
    display: flex;
    width: 100%;
    height: fit-content;
    /* padding: 40px; */
    padding: 2.5rem;
    flex-direction: column;
    justify-self: end;
    gap: 11px;

    border-radius: 24px;
    background: var(--clr-linear);
}

.cards-container__card {
    display: flex;
    flex-direction: column;
    padding: 1.875rem; /*30px*/
    flex-direction: column;
    align-self: stretch;
    background: var(--clr-background);
    border-radius: 12px;

    min-width: 462px;

    position: relative;       /* so ::after is positioned relative to this link */
    overflow: hidden;        /* allow circle to bleed outside if needed */
    text-decoration: none;    /* optional: remove link underline */
    color: inherit;    
}

.cards-container__card-anmt::after  {
    content: "";
    position: absolute;
    top: 20px;
    right: 40px;
    width: 208px;              
    height: 202px;
    border-radius: 50%;
    
    background: linear-gradient(206deg, #42DDFF 20.37%, rgba(17, 112, 255, 0.36) 91.37%);
    filter: blur(40px);

    opacity: 0;
    transform: translate(50%, -50%) scale(0.8); 
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;     
    z-index: 1;
}
.cards-container__card-anmt:hover::after {
    opacity: 1;
    transform: translate(50%, -50%) scale(1);
}

form.cards-container__card,
.cards-container__card form {
    row-gap: var(--default-row-gap);
}

.cards-container__card__row{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.cards-container__card .image{
    height: 48px;
    width: 48px;
}

.cards-container__card .caption{
    margin-bottom: 0;
}

.cards-container__card .notification-badge{
    grid-area: notif;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--clr-accent);
    display: flex;
    justify-content: center;
    align-items: center;
}

.expanded-data-card {
	padding: 10px 20px;
    border-radius: 12px;
    background: var(--clr-grey);
}

.expanded-data-card thead {
	color: var(--clr-grey-300);
}


/*
------------
Radio input
------------
*/

.ms-radio {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
    padding-left: 35px;
    height: 28px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.ms-radio input:checked ~ .checkmark {
    background: none;
}

.ms-radio .checkmark { /*outer circle */
    position: absolute;
    left: 0;
    background-image: url("/img/icons/radio.svg");
    background-size: contain;
    height: 28px;
    aspect-ratio: 1/1; 
}


/* Hide the browser's default radio button */
.ms-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.ms-radio:not(:hover) input:not(:checked) ~ .checkmark{
    opacity: 0.8;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.ms-radio:hover input ~ .checkmark:after,
.ms-radio .checkmark:after {
    content: "";
    height: 100%;
    width: 100%;
    z-index: 1;
    background-image: url("/img/icons/radio-checked.svg");
    background-size: contain;
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.ms-radio input:checked ~ .checkmark:after {
    display: block;
}

/*
------------
Checkbox group
------------
*/

.ms-checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px; 
}

.ms-checkbox-group__item {
    display: flex;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;

    border-radius: 10px;
    background: var(--clr-grey);
    cursor: pointer;
	transition: all 0.3s ease;
}

.ms-checkbox-group__item:has(input:checked) {
    background: var(--clr-secondary);
    color: var(--clr-background);
}

.ms-checkbox-group__item input[type="checkbox"] {
	display: none;
}

/*
------------
Table
------------
*/
/*NOTE: To make table scrollable wrap it in div with scroll settings*/

.ms-table {
    border-collapse: collapse;
    width: 100%;
}

.ms-table thead th {
    text-align: left;
    font-weight: 500;
    border-bottom: 1px solid #DDD;
}

.ms-table th.--wrap,
.ms-table td.--wrap{
    vertical-align: top;
    white-space: normal;    
}

.ms-table.--colored tr:nth-child(even) {
    background-color: var(--clr-grey);
	width: fit-content;
}

.ms-table th { 
    padding-bottom: 10px;
    padding-right: 5px;
}

.ms-table tbody tr:first-child td { padding-top: 20px; }
.ms-table td:not(:last-child) { padding-right: 10px; }

.ms-table td { 
    vertical-align: middle;
    padding: 5px 0;
}

/*
------------
INPUTS
------------
*/

.autocomplete-items div{
    padding: 10px;
    border-bottom: 1px solid var(--clr-grey);
    cursor: pointer;
}
.autocomplete-items div:hover{
    color: var(--clr-primary);
    font-weight: 500;
    border-bottom: 1px solid var(--clr-primary);
}

/*
------------
MOBILE VS DESKTOP
------------
*/

@media only screen and (min-width:690px) {
    .review-mobile-display {
		display: none !important;
	}
}

@media only screen and (max-width:690px) {
    .review-pc-display {
		display: none !important;
	}
}

/*
------------
Modal
------------
*/
.modal {
    /* override bootstrap config */
    --bs-body-line-height: 26px;
    --bs-modal-color: var(--clr-grey-100);
    --bs-modal-bg: var(--clr-background);
    --bs-modal-border-radius: 24px;
}

.modal-content {
    padding: 20px;
    background: var(--bs-modal-bg);
    border-radius: var(--bs-modal-border-radius);
}

.modal_header {
	display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-dialog form {
    row-gap: var(--default-row-gap);
}


/*
------------
Custom
------------
*/
.save-badge {
	display: flex;
    width: fit-content;
    justify-self: end;
	justify-content: center;
	align-items: center;
	padding: 0px 11px;

    border-radius: 26px; 
    background-color: var(--clr-primary);

    color: var(--clr-primary-contrast); 
    font-size: 12px;
    font-weight: 400; 
	line-height: 30px;
}

.discount {
    color: var(--clr-grey-300);
    text-decoration: line-through;
}

/*
Main layout
*/

.--full-grid-row{
    grid-column: 1 / -1;
}

#wrapper {
    min-height: calc(100% - 100px);
    width: 100%;
    overflow-x: hidden;
}

#footer{
    margin-top: 60px;
}

.footer_card {
	background: var(--clr-linear);
    border-radius: 20px;
	color: var(--clr-primary-contrast);
}

.footer_refs {
	text-decoration: none;
    white-space: nowrap;
	font-size: 15px;
	padding-right: 12px;
}

.left_side_image_size {
	width: 100px;
	height: 100px;
}


.ms-subscription-card{
    display: grid;
    grid-template-columns: auto auto auto;
    white-space: nowrap;
    width: min-content;
    row-gap: 10px;
    align-items: center;
}

.ms-subscription-card .new-row{
    grid-column: 1/-1;
}