:root {
    --yb-yellow: #f4b400;
    --yb-black: #000;
    --yb-gray: #d9d9d9;
    --yb-light: #ededed;
}

.ybcrm-form-wrap,
.yb-feedback-form,
.yb-phone-register,
.yb-birthday-register {
    width: 100%;
    direction: rtl;
    font-family: "IRANSans", Sans-serif;
    color: var(--yb-black);
}

.ybcrm-form-wrap input,
.ybcrm-form-wrap button,
.ybcrm-form-wrap textarea,
.ybcrm-form-wrap select {
    font-family: "IRANSans", Sans-serif !important;
}

.ybcrm-form,
.yb-feedback-form__form,
.yb-phone-register__form,
.yb-birthday-register__form {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.ybcrm-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.ybcrm-field { margin: 0 0 18px; }
.ybcrm-field > label,
.yb-phone-register__label,
.yb-birthday-register__label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.ybcrm-input,
.yb-phone-register__input,
.yb-birthday-register__input {
    width: 100%;
    border-radius: 10px !important;
    border: 2px solid var(--yb-gray) !important;
    padding: 15px 16px;
    min-height: 54px;
    font-size: 17px;
    line-height: 1.5;
    outline: none;
    background: #fff;
    color: #000;
    transition: border-color .2s ease;
    box-sizing: border-box;
}
.ybcrm-input:focus { border-color: var(--yb-yellow) !important; }
.ybcrm-phone-input,
.ybcrm-code-input { text-align: center; }

.ybcrm-verify-row { display: flex; align-items: stretch; gap: 10px; direction: rtl; }
.ybcrm-verify-row .ybcrm-input { flex: 1 1 auto; }
.ybcrm-verify-btn {
    min-width: 118px;
    border: 0;
    border-radius: 10px;
    padding: 0 16px;
    background: var(--yb-yellow);
    color: #000;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: .25s ease;
}
.ybcrm-verify-btn:hover,
.ybcrm-verify-btn:focus,
.ybcrm-verify-btn:active { background: var(--yb-yellow) !important; color: #000 !important; outline: none; box-shadow: none; }
.ybcrm-verify-btn:disabled { opacity: .65; cursor: wait; }
.ybcrm-verify-message { min-height: 22px; margin-top: 8px; color: #2e7d32; font-size: 14px; font-weight: 700; }
.ybcrm-verify-message.is-error { color: #b42318; }

.ybcrm-checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; font-size: 15px; line-height: 1.8; cursor: pointer; }
.ybcrm-checkbox input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--yb-yellow); flex: 0 0 auto; }
.ybcrm-checkbox a { color: #2962ff; text-decoration: none; }
.ybcrm-help { font-size: 14px; line-height: 1.8; color: #555; margin: 8px 0 16px; }
.ybcrm-reward-info { background: #fff7dc; border-radius: 10px; padding: 12px 14px; color: #4c3a00; }
.ybcrm-submit,
.yb-feedback-form__submit,
.yb-phone-register__submit,
.yb-birthday-register__submit {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 16px;
    font-size: 18px !important;
    font-weight: 900 !important;
    cursor: pointer;
    background: var(--yb-yellow);
    color: #000;
    transition: .35s ease;
}
.ybcrm-submit:hover,
.ybcrm-submit:focus,
.ybcrm-submit:active,
.yb-feedback-form__submit:hover,
.yb-feedback-form__submit:focus,
.yb-feedback-form__submit:active { background: var(--yb-yellow) !important; color: #000 !important; outline: none; box-shadow: none; }

.ybcrm-date-row { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 10px; }
.ybcrm-date-row select { cursor: pointer; }

.ybcrm-notice { max-width: 720px; margin: 0 auto 18px; padding: 12px 14px; border-radius: 10px; font-size: 15px; font-weight: 700; }
.ybcrm-notice--error { background: #fff1f0; color: #a8071a; }
.ybcrm-notice--success { background: #f0fff4; color: #146c2e; }
.ybcrm-notice--info { background: #fff7dc; color: #4c3a00; }

/* Feedback */
.yb-feedback-form__star-wrap { display: flex; justify-content: center; align-items: center; margin: 34px 0 12px; }
.yb-feedback-form__star { width: 94px; height: auto; }
.yb-feedback-form__section { margin: 0 0 24px; text-align: center; }
.yb-feedback-form__label { font-size: 21px; font-weight: 800; line-height: 1.5; margin: 26px 0 10px; text-align: center; }
.yb-feedback-form__quality-text { font-size: 17px; line-height: 1.6; text-align: center; }
.yb-feedback-form__quality-word { font-weight: 900; }
.yb-feedback-form__slider { width: 100%; appearance: none; -webkit-appearance: none; height: 12px; border-radius: 999px; outline: none; background: transparent; margin-top: 18px; direction: rtl; }
.yb-feedback-form__slider::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; background: linear-gradient(to left, var(--yb-yellow) 0%, var(--yb-yellow) var(--yb-progress,0%), #e6e6e6 var(--yb-progress,0%), #e6e6e6 100%); }
.yb-feedback-form__slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--yb-yellow); border: 6px solid var(--yb-yellow); box-shadow: 0 8px 18px rgba(0,0,0,.14); margin-top: -8px; cursor: pointer; }
.yb-feedback-form__slider::-moz-range-track { height: 12px; border-radius: 999px; background: #e6e6e6; }
.yb-feedback-form__slider::-moz-range-progress { height: 12px; border-radius: 999px; background: var(--yb-yellow); }
.yb-feedback-form__slider::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--yb-yellow); border: 0; cursor: pointer; }
.yb-feedback-form__toggle { display: inline-flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--yb-light); }
.yb-feedback-form__toggle-option { position: relative; display: inline-flex; min-width: 100px; border-radius: 999px; font-weight: 800; cursor: pointer; color: #444; }
.yb-feedback-form__toggle-option input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.yb-feedback-form__toggle-option span { display: block; width: 100%; text-align: center; border-radius: 999px; padding: 10px 16px; }
.yb-feedback-form__toggle-option input:checked + span { background: var(--yb-yellow); color: #000; }
.yb-feedback-form__textarea { width: 100%; min-height: 160px; border-radius: 12px; border: 2px solid var(--yb-gray); padding: 16px; font-size: 17px; line-height: 1.8; outline: none; resize: vertical; box-sizing: border-box; }
.yb-feedback-form__textarea:focus { border-color: var(--yb-yellow); }
.ybcrm-optional-phone,
.ybcrm-feedback-phone { margin-top: 28px; padding-top: 4px; }

@media (max-width: 767px) {
    .ybcrm-verify-row { gap: 8px; }
    .ybcrm-verify-btn { min-width: 104px; padding: 0 10px; font-size: 14px; }
    .ybcrm-date-row { grid-template-columns: 1fr; }
    .yb-feedback-form__label { font-size: 19px; }
    .yb-feedback-form__toggle-option { min-width: 88px; }
    .ybcrm-input { font-size: 16px; }
}
