:root {
    --blue: #00b9ff;
    --dark: #2A4054;
    --red: #e20105;
    --white: #ffffff;
    --grey: #E9E9E9;
    --opensans: "Open Sans", Arial, Helvetica, sans-serif;
    --montserrat: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --std-padding: 16px;
    --cont-width: 1170px;
}

/* BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
}
body {
    background-color: var(--white);
    color: var(--dark);
    font-family: var(--montserrat);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    padding: 0;
    margin: 0;
}
p{
    padding: 0;
    margin: 0;
    font-size: 16px;
}
/* BASE */

/* CONTAINER */
.container {
    max-width: calc(var(--cont-width) + var(--std-padding) * 2);
    padding-inline: var(--std-padding);
    margin-inline: auto;
}
/* CONTAINER */

/* BUTTON */
.button {
    font-size: 18px;
    font-weight: 600;
    border-radius: 60px;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 1rem 2rem;
    word-wrap: nowrap;
	width:fit-content;
}
.button_submit{
    background-color: #7968a9;
    color: var(--white);

}
.form__button {
    width: fit-content;
	margin:0 auto;
    display: block;
	padding:25px 70px;
	text-align:center;
    margin-bottom: 30px;
    &:hover{
        background-color: color-mix(in lab, #448CC7 100%, var(--white) 50%);
    }
}
.successful-message__button{
    background-color: #7968a9;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-left: auto;
    cursor: pointer;
    img{
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}
/* BUTTON */

/* FORM CHECKBOX LINE */
.form__checkbox-line{
    display: flex;
    gap: 1rem;
    align-items: baseline;
    margin: 10px 0 20px;
}
.form__checkbox{
    margin: 0;
    accent-color: var(--dark);    
    cursor: pointer;
}
/* FORM CHECKBOX LINE */

/* FORM INPUT */
.form__input {
    display: flex;
    height: 56px;
    padding: 0 21px;
    background: var(--white);
    width: 100%;
    border: 2px solid var(--grey);
    font-size: 15px;
    text-align-last: left;
    border-radius: 0.5rem;
    color: color-mix(in lab, var(--dark) 100%, transparent 70%);
    &::-webkit-calendar-picker-indicator {
        opacity: 0.5;
    }
    &:focus-visible{
        outline: none;
        box-shadow: inset 0 0 1px 1px color-mix(in lab, #448CC7 50%, transparent 100%);
    }
}

.form__input_number::-webkit-inner-spin-button,
.form__input_number::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.form__input_number {
    -moz-appearance: textfield;
}
.form__input[type="phone"]{
    display: block;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.428571429;
    color: #555555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
/* FORM INPUT */

/* LABEL */
.input-label{
    display: inline-block;
    cursor: pointer;
    user-select: none;
}
.input-wrap__label{
    margin-bottom: 3px;
}
/* LABEL */

/* LINK */
.link{
    color: #448CC7;
    &:hover{
        text-decoration: none;
        color: color-mix(in lab, #448CC7 100%, var(--white) 50%);
    }
}
/* LINK */

/* REQUIRED */
.required{
    color: #7968a9;
}
/* REQUIRED */

/* SECTION */
.section{
    padding-block: 4rem;
}
/* SECTION */

/* TEXT */
.text{
    
}
.text_warn{
    color: #243685;
}
.text_bold{
    font-weight: 700;
}
.text_center{
    text-align: center;
}
.text_italic{
    font-style: italic;
}
.text_large{
    font-size: 20px;
}
/* TEXT */

/* TEXTAREA */
.form__textarea{
    resize: none;
    display: flex;
    padding: 8px 21px;
    background: var(--white);
    width: 100%;
    border: 2px solid var(--grey);
    font-size: 15px;
    text-align-last: left;
    border-radius: 0.5rem;
    color: color-mix(in lab, var(--dark) 100%, transparent 70%);
    min-height: 8rem;
    margin-bottom: 30px;
    &:focus-visible{
        outline: none;
        box-shadow: inset 0 0 1px 1px color-mix(in lab, #448CC7 50%, transparent 100%);
    }
    display: block;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.428571429;
    color: #555555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
/* TEXTAREA */

/* TEXT-CONTENT */
.text-content{
    display: grid;
    gap: 1rem;
}
/* TEXT-CONTENT */

/* TITLE */
.title-h1{
    font-size: 36px;
	text-align:left;
    line-height: 1.1;
    @media (768px >= width){
        font-size: 32px;
        text-align: center;
    }
}
.title-h2{
    font-size: 32px;
    line-height: 1.1;
    @media (768px >= width){
        font-size: 24px;
    }
}
.title-h3{
    margin-top: 0;
}
.section__title-h1{
    margin: 10px 0 40px;
}
.form__title-h2{
    margin-block: 20px;
}
/* TITLE */

/* PAGE */
.page{
    display: grid;
    min-height: 100vh;
    grid-auto-rows: min-content;
}
/* PAGE */

/* SELECT */
.form__select {
    display: flex;
    height: 56px;
    padding: 0 21px;
    background: var(--white);
    width: 100%;
    border: 2px solid var(--grey);
    font-size: 15px;
    text-align-last: left;
    border-radius: 0.5rem;
    color: color-mix(in lab, var(--dark) 100%, transparent 70%);
    &::-webkit-inner-spin-button {
        opacity: 0.5;
    }
    &:focus-visible{
        outline: none;
        box-shadow: inset 0 0 1px 1px color-mix(in lab, #448CC7 50%, transparent 100%);
    }
    display: block;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.428571429;
    color: #555555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
/* SELECT */

/* SUCCESS MESSAGE */
.successful-message{
    transition: translate 150ms ease, opacity 100ms ease;
    position: fixed;
    background-color: color-mix(in lab, var(--dark) 10%, var(--white) 100%);
    border: 1px solid var(--grey);
    padding: 1rem 2rem;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    box-shadow: 2px 2px 10px color-mix(in lab, var(--dark) 40%, transparent 60%);
    top: 50vh;
    opacity: 1;
    translate: 0vw 0;
    &.successful-message_hidden{
        translate: -100vw 0;
        opacity: 0;
        transition: translate 500ms ease, opacity 300ms ease;
        visibility: hidden;
    }
}
/* SUCCESS MESSAGE */

/* WRAP */
.form__input-wrap{
    
}
.form__input-wrap_wide{
    grid-column: span 2;
    @media (768px >= width){
        grid-column: 1;
    }
}

.form__wrap_grid{
    gap: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    margin-bottom: 30px;
    @media (768px >= width){
        grid-template-columns: 1fr;
    }
}
.form__group{
    padding-bottom: 20px;
}

.form__wrap_hide{
    display: none;
}
/* WRAP */
