/* Ration Card Orders Plugin Styles */
.rco-order-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.rco-order-form-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 20px;
}

.rco-order-form-wrapper h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.rco-form-group {
    margin-bottom: 20px;
}

.rco-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.rco-form-group input,
.rco-form-group textarea,
.rco-form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.rco-form-group input:focus,
.rco-form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.rco-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.rco-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

.rco-payment-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
    border-left: 4px solid #28a745;
}

.rco-price {
    margin-bottom: 10px;
}

.rco-price strong {
    font-size: 32px;
    color: #28a745;
    display: block;
}

.rco-price span {
    color: #666;
    font-size: 14px;
}

.rco-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rco-submit-btn:hover {
    background: linear-gradient(135deg, #005a87, #003f5c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.rco-submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.rco-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#rco-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

#rco-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#rco-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal Styles */
.rco-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.rco-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.rco-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rco-modal-header h3 {
    margin: 0;
    color: #28a745;
}

.rco-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.rco-close:hover {
    color: #333;
}

.rco-modal-body {
    padding: 20px;
}

.rco-order-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.rco-order-details h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.rco-order-details p {
    margin: 5px 0;
    font-size: 14px;
}

.rco-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 5px;
}

.rco-btn-primary {
    background: #007cba;
    color: white;
}

.rco-btn-primary:hover {
    background: #005a87;
    color: white;
}

/* Home Button */
.rco-home-button {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.rco-home-button:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .rco-order-form-wrapper {
        padding: 20px;
        margin: 10px;
    }
    
    .rco-order-form-wrapper h2 {
        font-size: 24px;
    }
    
    .rco-price strong {
        font-size: 28px;
    }
    
    .rco-stats {
        flex-direction: column;
    }
    
    .rco-stat-box {
        min-width: auto;
    }
}