/* ShopAve Subscription Form Styles */

.shopave-subscription-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.shopave-subscription-form-wrapper * {
    box-sizing: border-box;
}

.shopave-form {
    background: #fff !important;
    padding: 30px !important;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 20px !important;
    color: #333 !important;
    font-weight: 600 !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

.form-row {
    margin-bottom: 20px;
    clear: both;
}

.form-row-half {
    width: 48%;
    float: left;
    margin-right: 4%;
}

.form-row-half:nth-child(even) {
    margin-right: 0;
}

.form-row label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    color: #333 !important;
    font-size: 14px !important;
    text-align: left !important;
}

.form-row label .required {
    color: #e74c3c !important;
}

.shopave-form .form-row input[type="text"],
.shopave-form .form-row input[type="email"],
.shopave-form .form-row input[type="tel"],
.shopave-form .form-row select {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    transition: border-color 0.3s;
    box-sizing: border-box !important;
    background: #fff !important;
    color: #333 !important;
    line-height: normal !important;
    height: auto !important;
    margin: 0 !important;
}

.shopave-form .form-row input:focus,
.shopave-form .form-row select:focus {
    outline: none !important;
    border-color: #3498db !important;
}

.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.order-details {
    margin-top: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.item-name {
    font-weight: 500;
    color: #333;
}

.item-price {
    color: #666;
    font-weight: 500;
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.total-amount {
    color: #3498db;
}

.payment-note {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    margin: 0;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.submit-subscription-btn {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-subscription-btn:hover {
    background: #2980b9;
}

.submit-subscription-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.form-messages {
    margin-top: 20px;
}

.form-messages .error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

.form-messages .success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

/* Responsive styles */
@media (max-width: 768px) {
    .shopave-form {
        padding: 20px;
    }
    
    .form-row-half {
        width: 100%;
        float: none;
        margin-right: 0;
    }
    
    .order-item {
        flex-direction: column;
        gap: 5px;
    }
}

/* Loading state */
.shopave-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.shopave-form.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}