/* ============================================ */
/* ОСНОВНАЯ КНОПКА */
/* ============================================ */

.rpb-main-btn {
    background: linear-gradient(135deg, #FF6B35, #FF8C42) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 32px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
    width: 100% !important;
    text-align: center !important;
    margin: 10px 0 !important;
}

.rpb-main-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4) !important;
}

/* ============================================ */
/* ФОРМА */
/* ============================================ */

.rpb-form-wrapper {
    margin-top: 12px;
}

.rpb-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid #FF6B35;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.rpb-form-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
    text-align: center;
}

.rpb-form-card p {
    color: #666;
    font-size: 13px;
    margin: 0 0 16px;
    text-align: center;
    line-height: 1.4;
}

/* ============================================ */
/* СТРОКА ВВОДА */
/* ============================================ */

.rpb-input-row {
    display: flex;
    gap: 10px;
}

.rpb-phone-input {
    flex: 1;
    padding: 12px 16px !important;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    min-width: 0;
}

.rpb-phone-input:focus {
    border-color: #FF6B35;
}

.rpb-phone-input.error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.03);
}

/* ============================================ */
/* КНОПКА ОТПРАВКИ */
/* ============================================ */

.rpb-submit-btn {
    background: linear-gradient(135deg, #1dac39, #26d349);
    color: #fff !important;
    border-radius: 8px !important;
    white-space: nowrap;
}

.rpb-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 172, 57, 0.3);
}

.rpb-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================ */
/* УСПЕХ / ОШИБКА */
/* ============================================ */

.rpb-success {
    text-align: center;
    padding: 16px;
    background: rgba(29, 172, 57, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(29, 172, 57, 0.2);
}

.rpb-success-icon {
    width: 44px;
    height: 44px;
    background: #1dac39;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 10px;
}

.rpb-success p {
    color: #1dac39;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.rpb-error {
    text-align: center;
    padding: 12px;
    background: rgba(255, 68, 68, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.rpb-error p {
    color: #ff4444;
    font-size: 14px;
    margin: 0;
}

/* ============================================ */
/* КНОПКА В КАТАЛОГЕ */
/* ============================================ */

.rpb-loop-btn {
    background: linear-gradient(135deg, rgb(255, 107, 53), rgb(255, 140, 66)) !important;
    color: rgb(255, 255, 255) !important;
    border-width: medium !important;
    border-style: none !important;
    border-color: currentcolor !important;
    border-image: initial !important;
    padding: 12px !important;
    border-radius: 5px !important;
    transition: 0.3s !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
}

.rpb-loop-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
    color: #fff !important;
}

/* ============================================ */
/* ПОПАП ДЛЯ КАТАЛОГА */
/* ============================================ */

.rpb-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.rpb-popup-overlay.active {
    opacity: 1;
}

.rpb-popup-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.rpb-popup-overlay.active .rpb-popup-content {
    transform: translateY(0);
}

.rpb-popup-close {
    display:none !important;
}

/* ============================================ */
/* АДАПТИВ */
/* ============================================ */

@media (max-width: 600px) {
    .rpb-input-row {
        flex-direction: column;
    }
    
    .rpb-submit-btn {
        min-width: 100%;
    }
    
    .rpb-form-card {
        padding: 16px;
    }
}