:root {
    --sf-accent: #3566b8;
    --sf-accent-dark: #294b88;
    --sf-accent-soft: rgba(53, 102, 184, 0.12);
    --sf-ink: #24303d;
    --sf-muted: #66717d;
    --sf-border: rgba(36, 48, 61, 0.1);
    --sf-surface: #f5f7fb;
}

.sf-call-widget {
    position: fixed;
    right: 20px;
    bottom: 62px;
    z-index: 100;
}

.sf-call-widget__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 22px 6px 8px;
    border: 0;
    border-radius: 999px;
    background: var(--sf-accent);
    box-shadow: 0 18px 36px rgba(20, 33, 52, 0.24);
    color: #fff;
    font-weight: 700;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sf-call-widget__button:hover,
.sf-call-widget__button:focus {
    background: var(--sf-accent-dark);
    box-shadow: 0 22px 40px rgba(20, 33, 52, 0.3);
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}

.sf-call-widget__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    color: var(--sf-accent);
    font-size: 1.5rem;
    flex: 0 0 auto;
}

.sf-call-widget__copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.sf-call-widget__title {
    font-size: 1rem;
}

.sf-call-widget__note {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    opacity: 0.9;
    margin-top: 4px;
}

.sf-modal .modal-content {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(18, 33, 52, 0.18);
    overflow: hidden;
}

.sf-modal .modal-header,
.sf-modal .modal-footer {
    padding-left: 28px;
    padding-right: 28px;
}

.sf-modal .modal-header {
    padding-top: 26px;
    align-items: flex-start;
}

.sf-modal .modal-body {
    padding-left: 28px;
    padding-right: 28px;
    padding-bottom: 0;
}

.sf-modal__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--sf-accent-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sf-modal__close {
    margin-top: -4px;
    font-size: 2rem;
    line-height: 1;
    color: #5a655d;
    opacity: 1;
}

.sf-intro-card {
    padding: 22px 24px;
    border: 1px solid var(--sf-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(53, 102, 184, 0.16), transparent 38%),
        linear-gradient(180deg, #ffffff, var(--sf-surface));
    margin-bottom: 18px;
}

.sf-intro-main {
    color: var(--sf-ink);
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.sf-intro-sub {
    color: var(--sf-muted);
    line-height: 1.65;
    margin-bottom: 10px;
}

.sf-intro-note {
    color: #445161;
    font-weight: 600;
}

.sf-form-shell {
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(23, 49, 38, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.sf-label {
    color: var(--sf-ink);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.sf-form-shell .input-group-text {
    border-color: rgba(23, 49, 38, 0.12);
    background: #f4f7fb;
    color: #5b6776;
    min-height: 46px;
    display: flex;
    align-items: center;
    border-radius: 12px 0 0 12px;
}

.sf-form-shell .input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.sf-form-shell .input-group-prepend {
    display: flex;
    flex: 0 0 auto;
}

.sf-form-shell .form-control {
    border-color: rgba(23, 49, 38, 0.12);
    min-height: 46px;
    border-radius: 12px;
    box-shadow: none;
    display: block;
    width: 100%;
    max-width: 100%;
}

.sf-form-shell .input-group > .form-control,
.sf-form-shell .input-group > .custom-select,
.sf-form-shell .input-group > .custom-file {
    min-width: 0;
    flex: 1 1 auto;
    width: 1%;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.sf-form-shell select.form-control {
    background-color: #fff;
    padding-right: 2.2rem;
}

.sf-form-shell textarea.form-control {
    min-height: 110px;
    resize: vertical;
    line-height: 1.5;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.sf-form-shell .form-control:focus {
    border-color: rgba(53, 102, 184, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(53, 102, 184, 0.12);
}

.sf-feedback {
    min-height: 210px;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.sf-status-box {
    background: var(--sf-accent-soft);
    border-left: 4px solid var(--sf-accent);
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sf-ink);
    text-align: center;
}

.sf-rating[disabled] .sf-star {
    color: #d7ddd8;
    cursor: not-allowed;
}

.sf-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sf-star {
    font-size: 1.7rem;
    line-height: 1;
    color: #d0d7d2;
    background: transparent;
    border: 0;
    padding: 0;
}

.sf-star.on {
    color: #f5b544;
}

.sf-btn-primary {
    min-width: 190px;
    border-radius: 999px;
    border: 0;
    padding: 0.8rem 1.35rem;
    font-weight: 700;
    background: var(--sf-accent);
    color: #fff;
    box-shadow: 0 12px 24px rgba(41, 75, 136, 0.25);
}

.sf-btn-primary:hover,
.sf-btn-primary:focus {
    background: var(--sf-accent-dark);
    color: #fff;
    box-shadow: 0 16px 28px rgba(41, 75, 136, 0.3);
}

.sf-btn-primary:disabled {
    box-shadow: none;
    opacity: 1;
    background: #cfd8d1;
    color: #6d7870;
}

.sf-btn-secondary {
    border-radius: 999px;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    border: 1px solid rgba(23, 49, 38, 0.08);
}

@media (max-width: 767.98px) {
    .sf-call-widget {
        right: 14px;
        bottom: 54px;
    }

    .sf-call-widget__button {
        gap: 10px;
        padding-right: 18px;
    }

    .sf-call-widget__icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .sf-call-widget__title {
        font-size: 0.94rem;
    }

    .sf-call-widget__note {
        font-size: 0.66rem;
    }

    .sf-modal .modal-dialog {
        margin: 0.8rem;
    }

    .sf-modal .modal-header,
    .sf-modal .modal-body,
    .sf-modal .modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .sf-form-shell,
    .sf-intro-card {
        padding: 18px;
    }

    .sf-modal .modal-footer {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .sf-form-shell .input-group {
        flex-wrap: nowrap;
    }

    .sf-modal .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}
