
@import url("https://use.typekit.net/upg8ljp.css");

:root {
    --color-light-blue: #dbeefd;
    --color-blue: #0d8ff2;
    --color-pink: #f6449d;
    --color-text-dark: #1a1a1a;
    --color-text-placeholder: #707070;
    --color-white: #ffffff;
    --color-error: #b42318;
    --color-success: #067647;
    --font-family: "articulat-cf", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    margin: 0;
    background: #f5f5f5;
}

.form-container {
    box-sizing: border-box;
    font-family: var(--font-family);
    background-color: var(--color-white);
    width: 100%;
    max-width: 480px;
    padding: 30px 25px;
    border-radius: 20px;
    margin: 0 auto;
}

.form-container * {
    box-sizing: border-box;
    font-family: inherit;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
    color: var(--color-blue);
    margin: 0 0 25px;
    text-align: left;
}

.form-group {
    margin-bottom: 15px;
}

.form-input-field {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-text-dark);
    width: 100%;
    height: 38px;
    padding: 0 15px;
    border: none;
    background-color: var(--color-light-blue);
    border-radius: 100px;
    outline: none;
    transition: all 0.2s ease;
}

.form-textarea-field {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-text-dark);
    width: 100%;
    padding: 12px 20px;
    border: none;
    background-color: var(--color-light-blue);
    border-radius: 20px;
    outline: none;
    resize: none;
    transition: all 0.2s ease;
}

.form-input-field:focus,
.form-textarea-field:focus {
    box-shadow: 0 0 0 2px var(--color-blue);
}

.has-error {
    box-shadow: 0 0 0 2px var(--color-error);
}

.field-error {
    color: var(--color-error);
    font-size: 13px;
    margin: 5px 10px 0;
}

.alert {
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
}

.alert-success {
    color: var(--color-success);
    background: #ecfdf3;
}

.alert-error {
    color: var(--color-error);
    background: #fef3f2;
}

.form-container ::placeholder {
    color: var(--color-text-placeholder);
    opacity: 1;
}

.row-label {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: var(--color-text-dark);
    width: 30%;
    padding-right: 10px;
    text-align: left;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.row-inputs {
    width: 70%;
    display: flex;
    gap: 8px;
}

select.form-input-field {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M7 10l5 5 5-5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 19px;
    padding-right: 30px;
    cursor: pointer;
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    border: 1px solid var(--color-blue);
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    display: inline-block;
    position: relative;
    background-color: var(--color-white);
    margin-top: 1px;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.label-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--color-text-dark);
    text-align: left;
}

.label-text a {
    color: var(--color-blue);
    text-decoration: underline;
}

.submit-container {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.submit-btn {
    background-color: var(--color-pink);
    color: var(--color-white);
    border: none;
    height: 38px;
    padding: 0 45px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
}

.submit-btn:hover {
    opacity: 0.9;
}

@media (max-width: 430px) {
    .form-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .row-label,
    .row-inputs {
        width: 100%;
    }

    .row-label {
        margin-bottom: 6px;
    }
}