/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn--primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.3);
}
.btn--primary:hover {
    background: var(--green-hover);
}

.btn--secondary {
    background: var(--bg-light);
    color: var(--text);
}
.btn--secondary:hover {
    background: var(--border-light);
}

.btn--outline {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--border);
}
.btn--outline:hover {
    border-color: var(--blue);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 18px;
    border-radius: var(--radius-lg);
}

.btn--sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn--full {
    width: 100%;
}

.btn--icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
}

.card--bordered {
    box-shadow: none;
    border: 1px solid var(--border);
}

/* ===== INPUTS ===== */
.input-group {
    margin-bottom: 16px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 16px;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition);
    -webkit-appearance: none;
}

.input-field:focus {
    outline: none;
    border-color: var(--blue);
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-field--error {
    border-color: var(--red);
}

.input-error {
    font-size: 13px;
    color: var(--red);
    margin-top: 4px;
    display: none;
}

.input-field--error + .input-error {
    display: block;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    background: var(--green);
    border-radius: 2px;
    transition: width 0.3s ease;
    will-change: width;
}

/* ===== SITE HEADER ===== */
.site-header {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__logo img {
    height: 28px;
    display: block;
}

.site-header__step {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== SITE FOOTER ===== */
.site-footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}

.site-footer__text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.site-footer__text a {
    color: var(--text-secondary);
    text-decoration: underline;
}

.site-footer__bottom {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== STICKY CTA ===== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta--visible {
    transform: translateY(0);
}

.sticky-cta .btn {
    width: 100%;
}

/* ===== BADGE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.badge--green {
    background: var(--green-light);
    color: #1a8a3a;
}

.badge--yellow {
    background: var(--yellow-light);
    color: #a06a00;
}

.badge--red {
    background: var(--red-light);
    color: #c42b2b;
}

/* ===== DIVIDER ===== */
.divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 24px 0;
}

/* ===== FADE ANIMATION ===== */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in--visible {
    opacity: 1;
    transform: translateY(0);
}
