@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/Open_Sans/OpenSans-Regular.woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/Open_Sans/OpenSans-Bold.woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/Open_Sans/OpenSans-Light.woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/Open_Sans/OpenSans-Italic.woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-SemiBold.woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-ExtraBold.woff');
    font-weight: 800;
    font-style: normal;
}

form > * {
    font-family: 'OpenSans';
}

/* FORM CONTAINERS */

.form-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    align-self: stretch;
}

.form-wrapper {
    display: flex;
    gap: 2rem;
    flex-direction: column;
    width: 100%;
}

.required-note {
    color: #666;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1rem;
    margin: 0px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 14px;
    @media (min-width: 1024px) {
        flex-direction: row;
    }
}

/* INPUT */
.input-container {
    display: flex;
    flex: 1 1 calc(25% - 9px);
    flex-direction: column;
    min-width: 140px;
    gap: 0.75rem;
    width: 100%;
}

.input-container.type1 {
    @media (min-width: 1024px) {
        width: calc(50% - 16px);
        flex: none;
    }

}

.label-text {
    color: #0f0f0f;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.125rem;
}

.form-input-wrapper {
    position: relative;
}

input[type='text'],
input[type='email'],
input[type='tel'],
select,
textarea {
    font-size: 1rem;
    color: #000000;
    border: 1px solid #787878;
    padding: 0 0.75rem;
    background: #fff;
    width: 100%;
    transition: border-color 0.2s;
    border-radius: 0.25rem;
    height: 2.75rem;

    &::placeholder {
        padding-left: 0.2rem;
        color: #878787;
    }

    &:focus-visible {
        border-color: #2b810d;
    }

    &:hover {
        border-color: #2b810d;
    }
}

.suffix-container {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.suffix-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.icon-circle-delete {
    width: 16px;
    height: 16px;
    color: #000000;
}

.input-wrapper:not(:placeholder-shown) ~ .suffix-container > .suffix-button {
    display: block;
    cursor: pointer;
}

/* TEXTAREA */

.textarea-container {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    gap: 8px;
}

.textarea {
    width: 100%;
    height: 200px;
    resize: none;
    opacity: 1;
    border-radius: 5px;
    border-bottom: 15px solid transparent;

    border: 1px solid #878787;
    padding: 20px 15px 35px 15px;

    &.-disabled {
        background-color: #e7e7e7;
    }

    &:focus {
        border: 2px solid #666666;
    }

    &:disabled {
        background-color: #878787;
    }

    &.-error {
        background-color: #fef3f3;
        border: 2px solid #b81b1b;
    }
}

.textarea-inside-characters-length {
    position: absolute;
    right: 0;
    bottom: 2%;
    padding: 10px;
    color: #666666;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
}

.textarea-outside-indication {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.textarea-outside-characters-length {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0%;
    color: #666666;
}

.textArea-error-message {
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    color: #b81b1b;
    visibility: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
    width: 100%;
    max-width: 345px;
}

/* SELECT */

.select-input-container {
    display: inline-block;
    position: relative;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border-radius: 0.25rem;
    background: #ffffff;
    font-size: 0.875rem;
    line-height: 1.125rem;
}

/* CHECHBOX */

.checkbox-label {
    cursor: pointer;
    font-size: 0.875rem;
    align-items: center;
}

.checkbox-row {
    cursor: pointer;
    border-radius: 0.125rem;
    accent-color: #007a50;
    height: 1.125rem;
}

.checkbox-label {
    padding-left: 0.2rem;
    font-size: 0.875rem;
    font-weight: 700;
}

/* BUTTONS */
.btn-row {
    width: 100%;
    display: flex;
    justify-content: left;
    gap: 1.5rem;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 2.38rem;
    border-width: 0.063rem;
    border-color: #015c3d;
    border-style: solid;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    line-height: 1.05rem;
    font-weight: 600;
    z-index: 1;
    text-align: center;
    width: fit-content;
    position: relative;
    cursor: pointer;

    .icon {
        flex-shrink: 0;
    }
}

a.btn {
    text-decoration: none;
}

:disabled {
    cursor: not-allowed;
}

/* PRIMARY */
.-primary {
    background-color: #007a50;
    color: white;
    border: 0;
}

.-primary:hover {
    background-color: #015c3d;
}

.-primary:disabled {
    background-color: #e2efe8;
    border-color: #666666;
    color: #666666;
}

/* SECONDARY */

.-secondary {
    background-color: transparent;
    color: #007a50;
}

.-secondary:hover {
    background-color: #f2f8f6;
    border-color: #015c3d;
    color: #015c3d;
}

.-secondary:disabled {
    background-color: white;
    border-color: #666666;
    color: #666666;
}

select:invalid {
    color: #666;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 21px;
}

.cgp-text {
    padding-left: 26px;
    font-weight: lighter;
}

.cgp-text a {
    color: #000000;
}
