/* assets/listopays.css */

/* Кнопка заказа */
.listopays-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    font-family: inherit;
    line-height: 1.2;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.listopays-btn:hover {
    background: linear-gradient(135deg, #e55a2b, #e8841a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
}

.listopays-btn:active {
    transform: translateY(0);
}

.listopays-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

/* Overlay и popup */
.listopays-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    padding: 20px;
    box-sizing: border-box;
}

.listopays-popup {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
    position: relative;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.listopays-header {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 20px 25px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.listopays-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
}

.listopays-close {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
    line-height: 1;
}

.listopays-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.listopays-content {
    padding: 30px 25px;
}

/* Описание пакета */
.package-description {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* Список особенностей */
.features-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 0 0 30px 0;
    list-style: none;
}

.features-list li {
    position: relative;
    padding: 8px 0 8px 30px;
    color: #333;
    font-size: 15px;
    line-height: 1.4;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

/* Выбор тарифа */
.tariff-selection {
    margin-bottom: 30px;
}

.tariff-selection h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.tariff-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tariff-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.tariff-option:hover {
    border-color: #ff6b35;
    background: #fff5f2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
}

.tariff-option input[type="radio"] {
    margin-right: 15px;
    accent-color: #ff6b35;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.tariff-option input[type="radio"]:checked + .tariff-info {
    color: #ff6b35;
}

.tariff-option input[type="radio"]:checked + .tariff-info .tariff-name {
    font-weight: bold;
}

.tariff-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    transition: color 0.3s ease;
}

.tariff-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: font-weight 0.3s ease;
}

.tariff-price {
    font-size: 18px;
    font-weight: bold;
    color: #ff6b35;
}

/* Форма контактов */
.contact-form {
    margin-top: 30px;
}

.contact-form h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 17px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.4;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.form-group input:invalid {
    border-color: #e74c3c;
}

.form-group input:valid {
    border-color: #27ae60;
}

.form-group select {
    background-color: white;
    cursor: pointer;
}

.form-group select option {
    padding: 10px;
    font-size: 17px;
}

/* Стили для чекбокса согласия */
.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.privacy-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #ff6b35;
}

.privacy-text {
    flex: 1;
    color: #333;
}

.privacy-text a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
}

.privacy-text a:hover {
    text-decoration: underline;
}

.privacy-checkbox input[type="checkbox"]:focus {
    outline: 2px solid rgba(255, 107, 53, 0.5);
    outline-offset: 2px;
}

.payment-summary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid #dee2e6;
}

.payment-summary p {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.payment-summary strong {
    color: #ff6b35;
    font-size: 28px;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

/* Кнопка оплаты */
.pay-button {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 18px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.pay-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #e55a2b, #e8841a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.pay-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    animation: spin 1s linear infinite;
    font-size: 20px;
    line-height: 1;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Страница статуса платежа */
.payment-status-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    padding: 20px;
    box-sizing: border-box;
}

.payment-status-container {
    background: white;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s ease-out;
}

.status-animation h2 {
    color: #333;
    margin: 20px 0 10px 0;
    font-size: 24px;
}

.status-animation p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.loading-circle {
    width: 80px;
    height: 80px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

.success-icon, .error-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-weight: bold;
    margin: 0 auto 30px;
    animation: iconPop 0.5s ease-out;
}

@keyframes iconPop {
    0% {
        transform: scale(0);
    }
    80% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-icon {
    background: #4CAF50;
    color: white;
}

.error-icon {
    background: #f44336;
    color: white;
}

.status-success h2 {
    color: #4CAF50;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.status-error h2 {
    color: #f44336;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.status-success p,
.status-error p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.return-button {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.return-button:hover {
    background: linear-gradient(135deg, #e55a2b, #e8841a);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Статистика шорткод */
.listopays-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    flex: 1;
    min-width: 150px;
}

.stat-item strong {
    display: block;
    font-size: 24px;
    color: #ff6b35;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-item span {
    color: #666;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .listopays-popup {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .listopays-content {
        padding: 20px 15px;
    }
    
    .listopays-header {
        padding: 15px 20px;
    }
    
    .listopays-header h3 {
        font-size: 20px;
    }
    
    .tariff-options {
        gap: 8px;
    }
    
    .tariff-option {
        padding: 12px;
        flex-direction: column;
        text-align: left;
    }
    
    .tariff-option input[type="radio"] {
        margin-right: 10px;
        margin-bottom: 5px;
    }
    
    .tariff-info {
        width: 100%;
    }
    
    .payment-status-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .pay-button {
        padding: 15px;
        font-size: 16px;
    }
    
    .payment-summary strong {
        font-size: 24px;
    }
    
    .listopays-stats {
        flex-direction: column;
    }
    
    .features-list {
        padding: 15px;
    }
    
    .features-list li {
        font-size: 14px;
        padding: 6px 0 6px 25px;
    }
}

@media (max-width: 480px) {
    .listopays-overlay {
        padding: 10px;
    }
    
    .listopays-popup {
        width: 100%;
        margin: 0;
        border-radius: 10px;
    }
    
    .listopays-header {
        border-radius: 10px 10px 0 0;
        padding: 12px 15px;
    }
    
    .listopays-header h3 {
        font-size: 18px;
    }
    
    .listopays-content {
        padding: 15px;
    }
    
    .tariff-option {
        padding: 10px;
    }
    
    .payment-status-container {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .loading-circle {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .success-icon, .error-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
        margin-bottom: 20px;
    }
}

/* Статусы в админке */
.status-pending {
    color: #ff9800;
    font-weight: bold;
}

.status-success {
    color: #4CAF50;
    font-weight: bold;
}

.status-failed, .status-cancelled {
    color: #f44336;
    font-weight: bold;
}

/* Стили для админ панели */
.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Анимация для hover эффектов */
* {
    box-sizing: border-box;
}

button, input, select, textarea {
    font-family: inherit;
}

/* Стили для попапа статуса платежа */
#payment-status-popup .payment-status-container {
    text-align: center;
    padding: 20px;
}

#payment-status-popup .status-animation h2 {
    color: #333;
    margin: 15px 0 10px 0;
    font-size: 20px;
}

#payment-status-popup .status-animation p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

#payment-status-popup .loading-circle {
    width: 60px;
    height: 60px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

#payment-status-popup .success-icon, 
#payment-status-popup .error-icon, 
#payment-status-popup .pending-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    margin: 0 auto 15px;
    animation: iconPop 0.5s ease-out;
}

#payment-status-popup .status-success h2,
#payment-status-popup .status-error h2,
#payment-status-popup .status-pending h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.status-animation h2 {
    color: #333;
    margin: 20px 0 10px 0;
    font-size: 24px;
}

.status-animation p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.loading-circle {
    width: 80px;
    height: 80px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

.success-icon, .error-icon, .pending-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    margin: 0 auto 20px;
    animation: iconPop 0.5s ease-out;
}

.success-icon {
    background: #4CAF50;
    color: white;
}

.error-icon {
    background: #f44336;
    color: white;
}

.pending-icon {
    background: #ff9800;
    color: white;
}

.status-success h2 {
    color: #4CAF50;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.status-error h2 {
    color: #f44336;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.status-pending h2 {
    color: #ff9800;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.payment-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.payment-details p {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
}

/* Стили для дебага (только в режиме разработки) */
.debug-info {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    font-size: 12px;
    border-radius: 4px;
    z-index: 10002;
    max-width: 300px;
    display: none;
}

/* Улучшения доступности */
.listopays-btn:focus,
.pay-button:focus,
.return-button:focus {
    outline: 3px solid rgba(255, 107, 53, 0.5);
    outline-offset: 2px;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.tariff-option input[type="radio"]:focus {
    outline: 2px solid rgba(255, 107, 53, 0.5);
    outline-offset: 2px;
}

/* Скрытие элементов для скринридеров */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}