.gpb-at-widget {
    --gpb-at-bg: #f5f7fb;
    --gpb-at-card: #ffffff;
    --gpb-at-border: #d6deea;
    --gpb-at-text: #1e293b;
    --gpb-at-muted: #4b5563;
    --gpb-at-accent: #16a34a;
    --gpb-at-accent-hover: #15803d;
    --gpb-at-radius: 16px;
    background: var(--gpb-at-bg);
    border: 1px solid var(--gpb-at-border);
    border-radius: var(--gpb-at-radius);
    padding: 20px;
    max-width: 760px;
    margin: 0 auto;
}

.gpb-at-step {
    display: block;
}

.gpb-at-step[hidden] {
    display: none !important;
}

.gpb-at-title {
    margin: 0 0 14px;
    color: var(--gpb-at-text);
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
    line-height: 1.2;
    font-weight: 700;
}

.gpb-at-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.gpb-at-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gpb-at-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gpb-at-text);
}

.gpb-at-required {
    color: #dc2626;
}

.gpb-at-input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--gpb-at-border);
    border-radius: 12px;
    background: var(--gpb-at-card);
    color: var(--gpb-at-text);
    font-size: 1rem;
    padding: 0 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gpb-at-input:focus {
    outline: none;
    border-color: var(--gpb-at-accent);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.gpb-at-message {
    min-height: 20px;
    margin: 10px 0 0;
    font-size: 0.9rem;
    color: #b91c1c;
}

.gpb-at-service-picker {
    width: 100%;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gpb-at-service-options {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gpb-at-service-option {
    width: 100%;
    min-height: 112px;
    padding: 16px 14px;
    border: 2px solid var(--gpb-at-border);
    border-radius: 14px;
    background: var(--gpb-at-card);
    color: var(--gpb-at-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.2;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease, color .2s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.gpb-at-service-option:hover,
.gpb-at-service-option:focus-visible {
    border-color: var(--gpb-at-accent);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
    transform: translateY(-1px);
    outline: none;
}

.gpb-at-service-option.is-selected {
    border-color: var(--gpb-at-accent);
    background: var(--gpb-at-accent);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.gpb-at-service-option::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--gpb-at-accent);
    background: #ffffff;
    color: var(--gpb-at-accent);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity .2s ease, transform .2s ease;
}

.gpb-at-service-option.is-selected::after {
    opacity: 1;
    transform: scale(1);
}

.gpb-at-service-option.is-selected .gpb-at-service-icon,
.gpb-at-service-option.is-selected .gpb-at-service-text {
    color: #ffffff;
}

.gpb-at-service-icon {
    font-size: 1.55rem;
    line-height: 1;
}

.gpb-at-service-text {
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}

.gpb-at-btn {
    width: 100%;
    margin-top: 12px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    background: var(--gpb-at-accent);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.22);
}

.gpb-at-btn:hover,
.gpb-at-btn:focus {
    background: var(--gpb-at-accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.gpb-at-btn:focus {
    outline: none;
}

.gpb-at-result {
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(22, 163, 74, 0.24);
    background: #ecfdf3;
    color: #166534;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
}

.gpb-at-hint {
    margin: 10px 0 0;
    color: var(--gpb-at-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.gpb-at-summary {
    margin-top: 12px;
    border: 1px solid var(--gpb-at-border);
    border-radius: 12px;
    background: var(--gpb-at-card);
    padding: 12px 14px;
    color: var(--gpb-at-text);
    display: grid;
    gap: 6px;
    font-size: 0.95rem;
}

.gpb-at-cta.is-disabled {
    background: #9ca3af;
    box-shadow: none;
    pointer-events: none;
    transform: none;
}

.gpb-at-step-2 .gpb-at-cta {
    background: var(--gpb-at-accent) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.gpb-at-step-2 .gpb-at-cta:hover,
.gpb-at-step-2 .gpb-at-cta:focus {
    background: var(--gpb-at-accent-hover) !important;
    color: #ffffff !important;
}

@media (max-width: 640px) {
    .gpb-at-grid {
        grid-template-columns: 1fr;
    }

    .gpb-at-service-options {
        grid-template-columns: 1fr;
    }

    .gpb-at-widget {
        padding: 16px;
        border-radius: 14px;
    }
}
