.efrf-form-box {
    --efrf-button-start: #ff5c83;
    --efrf-button-end: #e71946;

    width: 100%;
    max-width: 315px;
    box-sizing: border-box;
    font-family: inherit;
    color: #151515;
}

.efrf-form-box *,
.efrf-form-box *::before,
.efrf-form-box *::after {
    box-sizing: border-box;
}

.efrf-title {
    max-width: 285px;
    margin: 0 0 16px;
    color: #161616;
    font-size: 16px;
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.efrf-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.efrf-field {
    margin-bottom: 10px;
}

.efrf-label {
    display: block;
    margin: 0 0 6px;
    color: #111111;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
}

.efrf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 39px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.efrf-input-wrap:focus-within {
    border-color: #ff5c83;
    box-shadow: 0 0 0 3px rgba(255, 92, 131, 0.12);
}

.efrf-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    color: #9a9a9a;
    transform: translateY(-50%);
    pointer-events: none;
}

.efrf-input {
    width: 100%;
    height: 100%;
    padding: 0 12px 0 35px;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #111111;
    font-size: 14px;
    line-height: 1;
    font-family: inherit;
}

.efrf-input:focus {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.efrf-file-field {
    margin-bottom: 13px;
}

.efrf-file-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 39px;
    padding: 0 12px;
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    background: #fbfbfb;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.efrf-file-box:hover {
    border-color: #ff5c83;
    background: #fff7fa;
}

.efrf-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.efrf-file-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin-right: 8px;
    color: #9b9b9b;
}

.efrf-file-text {
    position: relative;
    z-index: 2;
    display: block;
    overflow: hidden;
    color: #8d8d8d;
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.efrf-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 39px;
    padding: 0 18px;
    border: 0 !important;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--efrf-button-start) 0%, var(--efrf-button-end) 100%);
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(231, 25, 70, 0.23);
    overflow: hidden;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.efrf-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--efrf-button-end) 0%, var(--efrf-button-start) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.efrf-submit span {
    position: relative;
    z-index: 2;
}

.efrf-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 22px rgba(231, 25, 70, 0.3);
}

.efrf-submit:hover::before {
    opacity: 1;
}

.efrf-submit:active {
    transform: translateY(0);
}

.efrf-submit.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

.efrf-message {
    display: none;
    margin-top: 9px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.3;
}

.efrf-message.is-success {
    display: block;
    background: #edf9f0;
    color: #167a31;
}

.efrf-message.is-error {
    display: block;
    background: #fff0f2;
    color: #d51f44;
}

.efrf-note {
    margin-top: 10px;
    color: #2c2c2c;
    font-size: 9px;
    line-height: 1.35;
    font-weight: 400;
}

.efrf-note a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .efrf-form-box {
        max-width: 100%;
    }

    .efrf-title {
        max-width: 100%;
        font-size: 16px;
    }
}
