/* Installment Plans Styles */
.wcip-installment-plans-wrapper {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: #fff;
}

.wcip-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #fff;
}

.wcip-plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wcip-plan-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.wcip-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.wcip-plan-card.selected {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid #ffd700;
}

.wcip-plan-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 15px;
    text-align: center;
    position: relative;
}

.wcip-plan-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.wcip-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #ffd700;
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.wcip-plan-body {
    padding: 20px;
    text-align: center;
}

.wcip-monthly {
    margin-bottom: 15px;
}

.wcip-amount {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.wcip-period {
    font-size: 14px;
    color: #666;
}

.wcip-details {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wcip-duration {
    font-size: 16px;
    color: #333;
    margin: 5px 0;
}

/* Markup Info Styles */
.wcip-markup-info {
    margin: 5px 0;
    color: #ff6b6b;
    font-size: 12px;
}

.wcip-markup-info small {
    background: #fff3f3;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* Button Styles */
.wcip-choose-plan {
    width: 100%;
    padding: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.wcip-choose-plan:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Promo Message Styles */
.wcip-promo-message {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: #fff;
    padding: 10px;
    margin: 15px 0 5px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Debug Info */
.wcip-debug-info {
    margin-top: 10px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 11px;
    color: #495057;
    text-align: left;
    font-family: monospace;
    line-height: 1.6;
    border-left: 3px solid #17a2b8;
}

.wcip-debug-info small {
    display: block;
}

.wcip-debug-info br {
    display: none;
}

.wcip-debug-info:before {
    content: '🔍';
    margin-right: 5px;
    font-size: 12px;
}

/* Popup Styles */
.wcip-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    overflow-y: auto;
    display: none;
}

.wcip-popup-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wcip-popup-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.wcip-popup-header h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
}

.wcip-popup-close {
    position: absolute !important;
    top: 10px;
    right: 15px;
    background: none;
    border: none !important;
    color: #fff !important;
    font-size: 30px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
}

.wcip-popup-close:hover {
    opacity: 0.8;
}

.wcip-popup-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Form Styles */
.wcip-form-row {
    margin-bottom: 20px;
}

.wcip-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.wcip-form-row .required {
    color: #ff0000;
}

.wcip-form-row input[type="text"],
.wcip-form-row input[type="email"],
.wcip-form-row input[type="tel"],
.wcip-form-row input[type="number"],
.wcip-form-row input[type="date"],
.wcip-form-row select,
.wcip-form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.wcip-form-row input.error,
.wcip-form-row select.error,
.wcip-form-row textarea.error {
    border-color: #ff0000;
}

.wcip-form-row textarea {
    height: 80px;
    resize: vertical;
}

.employment-fields {
    display: none;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.wcip-plan-display {
    padding: 10px;
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 5px;
    color: #2e7d32;
}

/* Consent Section Styles */
.wcip-consent-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
}

.wcip-consent-title {
    margin: 0 0 20px 0;
    color: #dc3545;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wcip-consent-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.wcip-consent-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.wcip-consent-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wcip-consent-number {
    flex: 0 0 25px;
    font-weight: 700;
    color: #007bff;
}

.wcip-consent-item p {
    flex: 1;
    margin: 0;
}

.wcip-consent-item strong {
    color: #333;
}

.wcip-consent-sublist {
    margin: 10px 0 0 25px;
    padding-left: 0;
    list-style-type: disc;
}

.wcip-consent-sublist li {
    margin-bottom: 5px;
    color: #666;
}

.wcip-checkbox-row {
    margin-top: 20px;
    padding: 15px;
    background: #e8f4fd;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.wcip-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #333;
}

.wcip-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.wcip-checkbox-label input[type="checkbox"].error {
    outline: 2px solid #ff0000;
}

.wcip-checkbox-text {
    font-size: 14px;
    line-height: 1.4;
}

/* Privacy Policy Section Styles */
.wcip-privacy-section {
    margin-top: 20px;
    border-color: #28a745;
}

.wcip-privacy-section .wcip-consent-title {
    color: #28a745;
}

.wcip-checkbox-label a {
    color: #007bff;
    text-decoration: underline;
    font-weight: 600;
}

.wcip-checkbox-label a:hover {
    color: #0056b3;
    text-decoration: none;
}

.wcip-checkbox-label a[target="_blank"]::after {
    content: " ↗";
    font-size: 12px;
    display: inline-block;
}

.wcip-form-actions {
    text-align: center;
    margin-top: 30px;
}

.wcip-form-actions button {
    padding: 12px 30px !important;
    font-size: 16px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto !important;
}

.wcip-form-actions button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.wcip-form-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

body.wcip-popup-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .wcip-installment-plans-wrapper {
        padding: 15px;
    }

    .wcip-plans-container {
        grid-template-columns: 1fr;
    }

    .wcip-plan-card.selected {
        transform: scale(1.02);
    }
    
    .wcip-amount {
        font-size: 28px;
    }
    
    .wcip-promo-message {
        font-size: 12px;
        padding: 8px;
    }
    
    .wcip-consent-content {
        max-height: 250px;
        font-size: 12px;
    }

    .wcip-consent-item {
        flex-direction: column;
    }

    .wcip-consent-number {
        margin-bottom: 5px;
    }
}