/* ── UI Kit: Buttons ── */
.cew-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 53px;
    padding: 0 40px;
    font-family: 'Archivo', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 36px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.cew-btn--primary {
    background: #d5fb7b;
    color: #191919;
    border-color: #d5fb7b;
}
.cew-btn--primary:hover {
    background: #c5eb6b;
    border-color: #c5eb6b;
}

.cew-btn--primary-dark {
    background: #191919;
    color: #d5fb7b;
    border-color: #191919;
}
.cew-btn--primary-dark:hover {
    background: #333;
    border-color: #333;
}

.cew-btn--outline {
    background: transparent;
    color: #fff;
    border-color: #d5fb7b;
}
.cew-btn--outline:hover {
    background: #d5fb7b;
    color: #191919;
}

.cew-btn--outline-dark {
    background: transparent;
    color: #191919;
    border-color: #191919;
}
.cew-btn--outline-dark:hover {
    background: #191919;
    color: #d5fb7b;
}

.cew-btn--dark {
    background: #191919;
    color: #fff;
    border-color: #fff;
    font-weight: 400;
}
.cew-btn--dark:hover {
    background: #333;
}

.cew-btn--card {
    height: 37px;
    padding: 0 24px;
    font-size: 10px;
    font-weight: 700;
    background: #d6d6d6;
    color: #191919;
    border-color: #707070;
    border-width: 1px;
    border-radius: 19px;
}
.cew-btn--card:hover {
    background: #c6c6c6;
}

.cew-btn--sm {
    height: 38px;
    padding: 0 24px;
    font-size: 16px;
}

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

.cew-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.cew-btn__icon svg {
    width: 100%;
    height: 100%;
}

.cew-btn--icon-left .cew-btn__icon {
    order: -1;
}
.cew-btn--icon-right .cew-btn__icon {
    order: 1;
}

@media (max-width: 1200px) {
    .components-page {
        padding: 32px 32px 0;
    }

    .components-page .full-width {
        margin-left: -32px;
        margin-right: -32px;
    }
}

@media (max-width: 768px) {
    .components-page {
        gap: 32px;
        padding: 32px 24px 0;
    }

    .components-page .full-width {
        margin-left: -24px;
        margin-right: -24px;
    }
}

/* ── UI Kit: Forms ── */

.cew-form__group {
    margin-bottom: 20px;
}

.cew-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.cew-form__label {
    display: block;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #191919;
    margin-bottom: 6px;
}

.cew-form__label--required::after {
    content: ' *';
    color: #c00;
}

.cew-form__input,
.cew-form__select,
.cew-form__textarea {
    width: 100%;
    padding: 0 16px;
    height: 47px;
    border: 1px solid #707070;
    border-radius: 10px;
    background: #fff;
    font-family: 'Archivo', sans-serif;
    font-size: 16px;
    color: #191919;
    outline: none;
    transition: border-color 0.2s;
}

.cew-form__input::placeholder,
.cew-form__textarea::placeholder {
    color: #999;
}

.cew-form__input:focus,
.cew-form__select:focus,
.cew-form__textarea:focus {
    border-color: #191919;
}

.cew-form__select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23707070' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.cew-form__textarea {
    height: auto;
    min-height: 120px;
    padding: 12px 16px;
    resize: vertical;
}

/* Checkbox & Radio */

.cew-form__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    color: #191919;
    line-height: 1.4;
}

.cew-form__check input[type="checkbox"],
.cew-form__check input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #d5fb7b;
    cursor: pointer;
}

/* States */

.cew-form__input--error,
.cew-form__select--error,
.cew-form__textarea--error {
    border-color: #c00;
}

.cew-form__input--success,
.cew-form__select--success,
.cew-form__textarea--success {
    border-color: #2e7d32;
}

.cew-form__input:disabled,
.cew-form__select:disabled,
.cew-form__textarea:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

/* Messages */

.cew-form__error {
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #c00;
    margin: 6px 0 0;
}

.cew-form__success {
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #2e7d32;
    margin: 6px 0 0;
}

.cew-form__hint {
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #707070;
    margin: 6px 0 0;
}

/* Alert boxes */

.cew-form__alert {
    padding: 14px 20px;
    border-radius: 10px;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 20px;
}

.cew-form__alert--error {
    background: #fde8e8;
    color: #c00;
    border: 1px solid #f5c6c6;
}

.cew-form__alert--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.cew-form__alert--info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

@media (max-width: 600px) {
    .cew-form__row {
        grid-template-columns: 1fr;
    }
}

