/*
===================================================================================================
FORM
===================================================================================================
*/

@layer form {

.frm {display:block; margin:0; padding:0; border:0; background:none;}

/* ------------- SUB MODULES ------------- */
.frm__inline {display: inline-block;}
.frm__full {width: 100%;}
.frm__w60 {width: 60%;}
.frm__header-search {width: 100%; max-width: var(--search-header-width);}
.frm__search-suggestions {width: 100%;}


/* RESPONSIVE */
@media screen and (max-width: 1580px) {
  .frm__header-search {max-width: var(--search-header-mobile-width)}
  .frm__header-search .inp__blue::placeholder {font-size: 12px;}
}
@media screen and (max-width: 1280px) {
  .frm__w60 {width: 80%;}
}
@media screen and (max-width: 980px) {
  .frm__w60 {width: 100%;}
}
@media screen and (max-width: 640px) {
  .frm__search-suggestions .inp::placeholder {color: transparent;}
}

/* SPLIT
**************************************************************************************************/
.frm--split {display: flex;  width: 100%;}

/* ------------- SUB MODULES ------------- */
.frm--split__g20 {gap: var(--spacing-20);}

/* RESPONSIVE */
@media screen and (max-width: 640px) {
  .frm--split__mobile-w640 {flex-wrap: wrap; gap:0 !important;}
}

/* SPLIT ITEM
**************************************************************************************************/

/* ------------- SUB MODULES ------------- */
.frm--split-item__flex-center {display:flex; align-items:center;}
.frm--split-item__w80 {flex-basis: 80%;}
.frm--split-item__w50 {flex-basis: 50%;}
.frm--split-item__w20 {flex-basis: 20%;}

/* RESPONSIVE */
@media screen and (max-width: 640px) {
  .frm--split-item__w80__mobile-w640 {flex-basis: 100%;}
  .frm--split-item__w50__mobile-w640 {flex-basis: 100%;}
  .frm--split-item__w20__mobile-w640 {flex-basis: 100%;}
}


/* FIELD
**************************************************************************************************/
.frm--field {width: 100%; position: relative;}

/* ------------- SUB MODULES ------------- */
.frm--label__md-margin-bottom {margin-bottom: var(--spacing-20);}

/* LABEL
**************************************************************************************************/
.frm--label {display: block; width: 100%; color: var(--color-blue-800); font-size: var(--font-size-12); line-height: var(--line-height-140); font-weight: var(--font-weight-bold);}

.frm--label.is-required::after {content: " *"; display: inline-block; color: var(--color-purple-300); font-size: var(--font-size-20); font-weight: var(--font-weight-regular); margin: 0 0 0 2px; line-height: var(--line-height-100); position: absolute;}
.frm--label.is-disabled {opacity: 0.35; cursor: default;}

/* ------------- SUB MODULES ------------- */
.frm--label__uppercase {text-transform: uppercase;}
.frm--label__sm-margin-bottom {margin-bottom: var(--spacing-10);}
.frm--label__md-margin-bottom {margin-bottom: var(--spacing-20);}

/* ------------- ELEMENTS ------------- */
.frm--label small {color: var(--color-grey-600); font-weight: var(--font-weight-semibold); font-size: var(--font-size-12);}

/* LINK
**************************************************************************************************/
.frm--link {color: var(--color-purple-500); line-height: var(--line-height-140); font-weight: var(--font-weight-bold); text-decoration: underline;}
.frm--link:hover {text-decoration: none;}

/* ------------- SUB MODULES ------------- */
.frm--link__sm {font-size: var(--font-size-12);}
.frm--link__sm-margin-top {margin-top: var(--spacing-10);}
.frm--link__right {display: block; text-align: right;}
/* RESPONSIVE */
@media screen and (max-width: 640px) {
  .frm--link__right {text-align: center;}
}

/* CONTROL
**************************************************************************************************/
.frm--control {position: relative;}

/* ------------- ELEMENTS ------------- */
.frm--control .inp, .frm--control .field_with_errors>.inp {width: 100%;}

/* VISIBILITY
**************************************************************************************************/
.frm--visibility {position: absolute; right: var(--spacing-5); top: 0; width: 24px; height: 44px; text-align: center; display: flex; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; color: var(--color-grey-600);}
.frm--visibility:hover {color: var(--color-purple-600);}

/* ------------- ELEMENTS------------- */
.frm--visibility .icon {width: 18px; height: 18px;}


/* OTP
**************************************************************************************************/
.frm--otp {display: flex; align-items: center; justify-content: space-between;}

/* ------------- ELEMENTS------------- */
.frm--otp .inp {width: 52px; height: 52px; padding: 0; text-align: center; font-size: var(--font-size-14); line-height: var(--line-height-140);}
/* RESPONSIVE */
@media screen and (max-width: 480px) {
  .frm--otp .inp {width: 42px; height: 42px;}
}
@media screen and (max-width: 380px) {
  .frm--otp .inp {width: 32px; height: 32px;}
}

/* WARNING
**************************************************************************************************/
.frm--warning {width: 100%; padding-bottom: var(--spacing-10); font-size: var(--font-size-14); line-height: var(--line-height-140); font-weight: var(--font-weight-semibold);}

/* ------------- SUB MODULES ------------- */
.frm--warning__red {color: var(--color-red-600);}

/* WARNING LIST
**************************************************************************************************/
.frm--warning-list {width: 100%; font-weight: var(--font-weight-regular); line-height: var(--line-height-160); font-size: var(--font-size-12); padding: 0 0 0 var(--spacing-20);}

/* ERROR
**************************************************************************************************/
.frm--error {width: 100%; color: var(--color-red-600); font-size: var(--font-size-12); line-height: var(--line-height-120); padding-top: var(--spacing-5);}

/* HINT
**************************************************************************************************/
.frm--hint {display:flex; align-items: center; column-gap: var(--spacing-5);}

/* RESPONSIVE */
@media screen and (max-width: 640px) {
  .frm--hint__mobile-w640 {margin-top: var(--spacing-20);}
}

/* ------------- ELEMENTS------------- */
.frm--hint .icon {color: var(--color-grey-500); flex: 0 0 auto;}
.frm--hint .icon__info-border {width:16px; height:16px;}

/* HINT TEXT
**************************************************************************************************/
.frm--hint-text {margin:0; color: var(--color-grey-600); font-size: var(--font-size-12); line-height: var(--line-height-160);}

/* CHECK
**************************************************************************************************/
.frm--check {position: relative; display: flex; align-items: flex-start; column-gap: var(--spacing-10); cursor: pointer;}

/* ------------- ELEMENTS ------------- */
/* The native input stays on top of the box (invisible) so it keeps keyboard focus and clicks */
.frm--check-input {position: absolute; top: 2px; left: 0; width: 16px; height: 16px; margin: 0; opacity: 0; cursor: pointer;}
.frm--check-box {flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-top: 2px; border: 1px solid var(--color-grey-300); border-radius: var(--radius-4); background: var(--color-white); color: var(--color-white);}
.frm--check-box .icon {width: 12px; height: 12px; opacity: 0;}
.frm--check-box .icon path {stroke: currentColor; stroke-width: 1; stroke-linejoin: round;}
.frm--check:hover .frm--check-box {border-color: var(--color-purple-500);}
.frm--check-input:focus-visible + .frm--check-box {outline: 2px dashed var(--color-purple-200); outline-offset: 2px;}
.frm--check-input:checked + .frm--check-box {border-color: var(--color-purple-500); background: var(--color-purple-500);}
.frm--check-input:checked + .frm--check-box .icon {opacity: 1;}
.frm--check-label {color: var(--color-grey-600); font-size: var(--font-size-12); line-height: var(--line-height-160);}

}
