/* ============================================================
   Custom Registration Form — CSS
   Versione: 1.4.4
   ============================================================ */

.crf-grid-wrapper {
    margin: 0;
    padding: 0;
    width: 100%;
}

.crf-section {
    margin: 0 0 26px 0;
    padding: 0;
    border: 0;
}
.crf-section:last-child {
    margin-bottom: 10px;
}
.crf-section-title {
    margin: 0 0 14px 0;
    padding: 0 0 6px 0;
    border-bottom: 2px solid #dcdcde;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}
.crf-section.crf-section-required .crf-section-title::before {
    content: "\2713";
    display: inline-block;
    margin-right: 6px;
    color: #2271b1;
}

.crf-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px 16px;
    align-items: flex-start;
    margin-bottom: 6px;
}

.crf-form-field {
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.crf-width-full       { flex: 1 1 100%; width: 100%; max-width: 100%; }
.crf-width-half       { flex: 1 1 calc(50%  - 8px); width: calc(50%  - 8px); max-width: calc(50%  - 8px); }
.crf-width-one-third  { flex: 1 1 calc(33.3333% - 11px); width: calc(33.3333% - 11px); max-width: calc(33.3333% - 11px); }
.crf-width-two-thirds { flex: 1 1 calc(66.6666% - 11px); width: calc(66.6666% - 11px); max-width: calc(66.6666% - 11px); }
.crf-width-one-quarter{ flex: 1 1 calc(25% - 12px); width: calc(25% - 12px); max-width: calc(25% - 12px); }

.crf-field-label {
    display: block;
    margin: 0 0 5px 0;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.3;
}
.crf-required {
    display: inline-block;
    margin-left: 2px;
    color: #d63638;
    font-weight: 700;
}

.crf-form-field input.input,
.crf-form-field select.input,
.crf-form-field textarea.input {
    box-sizing: border-box;
    width: 100%;
    display: block;
    margin: 0;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #2c3338;
    background-color: #fff;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    transition: border-color .1s linear, box-shadow .1s linear, background-color .1s linear;
    font-family: inherit;
}
.crf-form-field input.input::placeholder,
.crf-form-field textarea.input::placeholder {
    color: #94949c;
}
.crf-form-field input.input:focus,
.crf-form-field select.input:focus,
.crf-form-field textarea.input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    background-color: #f6f9fc;
}

.crf-form-field select.input {
    height: 38px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%232c3338' d='M5 8l3 3 3-3H5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px 16px;
    background-color: #fff;
    padding-right: 34px;
    cursor: pointer;
}
.crf-form-field select.input:invalid,
.crf-form-field select.input option:first-child {
    color: #94949c;
}
.crf-form-field select.input option {
    color: #2c3338;
}

.crf-form-field input.input.crf-error,
.crf-form-field select.input.crf-error,
.crf-form-field textarea.input.crf-error {
    border-color: #d63638 !important;
    box-shadow: 0 0 0 1px #d63638 !important;
    background-color: #fcf0f1 !important;
}

.crf-field-error {
    display: block;
    margin: 4px 0 0 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #d63638;
    min-height: 1em;
}
.crf-field-error:not(:empty) {
    min-height: auto;
}

.crf-password-strength {
    margin: 6px 0 0 0;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.3;
    border-radius: 4px;
    border: 1px solid transparent;
    min-height: 14px;
    box-sizing: border-box;
}
.crf-password-strength.crf-empty {
    background: transparent;
    border-color: transparent;
    color: inherit;
}
.crf-password-strength.crf-weak {
    background-color: #f7e2e2;
    border-color: #d63638;
    color: #b32d2e;
}
.crf-password-strength.crf-medium {
    background-color: #fff3d4;
    border-color: #caa963;
    color: #7d5a15;
}
.crf-password-strength.crf-good {
    background-color: #d7f7e1;
    border-color: #6abf7d;
    color: #1e6b37;
}
.crf-password-strength.crf-strong {
    background-color: #c9f1cc;
    border-color: #36a642;
    color: #115b1f;
}

@media (max-width: 640px) {
    .crf-width-full,
    .crf-width-half,
    .crf-width-one-third,
    .crf-width-two-thirds,
    .crf-width-one-quarter {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

.login .button-primary {
    margin-top: 8px;
}
