/**
 * ELISA Pricing Plugin Styles
 * Matching screenshot design exactly
 */

/* Reset & Base */
.elisa-pricing-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.elisa-pricing-container * {
    box-sizing: border-box;
}

/* Header */
.elisa-pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.elisa-pricing-title {
    font-size: 24px;
    font-weight: 500;
    color: #0A0C32;
    margin-bottom: 25px;
    font-style: italic;
}

.elisa-pricing-title span {
    color: #0A0C32;
    font-weight: 700;
}

/* Toggle Switch */
.elisa-toggle-container {
    display: inline-flex;
    background: #f0f4f8;
    border-radius: 50px;
    padding: 5px;
    gap: 5px;
}

.elisa-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.elisa-toggle-btn .toggle-icon {
    width: 18px;
    height: 18px;
}

.elisa-toggle-btn.active {
    background: linear-gradient(135deg, #19B2CE 0%, #0A0C32 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(25, 178, 206, 0.4);
}

.elisa-toggle-btn:hover:not(.active) {
    background: #e0e7ef;
}

/* Pricing Cards Grid */
.elisa-pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .elisa-pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .elisa-pricing-cards {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Card Base */
.elisa-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.elisa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Popular Card */
.elisa-card-popular {
    border-color: #0A0C32;
    background: #0A0C32;
}

.elisa-card-popular .elisa-card-header {
    background: #0A0C32;
}

.elisa-card-popular .elisa-card-title {
    color: #fff;
}

.elisa-card-popular .elisa-card-subtitle {
    color: #19B2CE;
}

.elisa-card-popular .elisa-price-amount,
.elisa-card-popular .elisa-price-currency {
    color: #fff;
}

.elisa-card-popular .elisa-price-period {
    color: rgba(255, 255, 255, 0.7);
}

.elisa-card-popular .elisa-price-monthly {
    color: #19B2CE;
}

.elisa-card-popular .elisa-features li {
    color: rgba(255, 255, 255, 0.9);
}

.elisa-card-popular .elisa-features .check-icon {
    stroke: #28a745;
}

.elisa-popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffd700;
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Card Header */
.elisa-card-header {
    padding: 25px 25px 15px;
    text-align: left;
    background: #fff;
}

.elisa-card-icon {
    width: 36px;
    height: 36px;
    background: #fff3e0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.elisa-card-icon svg {
    width: 20px;
    height: 20px;
    stroke: #ff9800;
}

.elisa-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #0A0C32;
    margin: 0 0 5px;
}

.elisa-card-subtitle {
    font-size: 13px;
    color: #19B2CE;
    margin: 0;
    font-weight: 500;
}

/* Card Body */
.elisa-card-body {
    padding: 0 25px 25px;
    text-align: left;
}

/* Price Display */
.elisa-price {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 3px;
}

.elisa-price-amount {
    font-size: 38px;
    font-weight: 700;
    color: #0A0C32;
    line-height: 1;
}

.elisa-price-currency {
    font-size: 20px;
    font-weight: 600;
    color: #0A0C32;
}

.elisa-price-period {
    font-size: 13px;
    color: #666;
    font-weight: 400;
    margin-left: 2px;
}

/* Monthly Price */
.elisa-price-monthly {
    font-size: 13px;
    color: #19B2CE;
    font-weight: 600;
    margin-bottom: 18px;
}

/* Features List */
.elisa-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.elisa-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: #444;
    line-height: 1.4;
}

.elisa-features .check-icon {
    width: 18px;
    height: 18px;
    stroke: #28a745;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Buttons */
.elisa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.elisa-btn-primary {
    background: #19B2CE;
    color: #fff;
}

.elisa-btn-primary:hover {
    background: #14a0ba;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 178, 206, 0.4);
}

.elisa-btn-secondary {
    background: #ff9800;
    color: #fff;
    border: none;
}

.elisa-btn-secondary:hover {
    background: #f57c00;
    transform: translateY(-2px);
}

/* Custom Card */
.elisa-card-custom {
    border-color: #ffe0b2;
    background: linear-gradient(180deg, #fffbf5 0%, #fff 100%);
}

.elisa-card-custom .elisa-card-subtitle {
    color: #ff9800;
}

.elisa-custom-offer {
    font-size: 16px;
    color: #0A0C32;
    margin-bottom: 15px;
    line-height: 1.4;
}

.elisa-custom-offer strong {
    font-weight: 700;
    display: block;
    font-size: 18px;
    margin-bottom: 3px;
}

.elisa-custom-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* BuT Info Box */
.elisa-but-info {
    background: linear-gradient(135deg, #e8f4f8 0%, #fff 100%);
    border: 2px solid #19B2CE;
    border-radius: 16px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.elisa-but-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffd700;
    color: #333;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
}

.elisa-but-badge svg {
    width: 18px;
    height: 18px;
}

.elisa-but-info p {
    flex: 1;
    margin: 0;
    font-size: 14px;
    color: #444;
    min-width: 250px;
    line-height: 1.5;
}

.elisa-but-info .highlight {
    color: #19B2CE;
    font-weight: 500;
}

/* Modal Styles */
.elisa-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.elisa-modal.active {
    display: flex;
}

.elisa-modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    max-width: 450px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.elisa-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.elisa-modal-close:hover {
    color: #333;
}

.elisa-modal h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0A0C32;
    margin: 0 0 10px;
}

.elisa-modal-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.elisa-modal-plan-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.elisa-modal-plan-info span:first-child {
    font-weight: 600;
    color: #0A0C32;
}

.elisa-modal-plan-info span:last-child {
    font-weight: 700;
    color: #19B2CE;
    font-size: 18px;
}

/* Form Styles */
.elisa-form-group {
    margin-bottom: 20px;
}

.elisa-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0A0C32;
    margin-bottom: 8px;
}

.elisa-form-group input,
.elisa-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8ecf0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.elisa-form-group input:focus,
.elisa-form-group textarea:focus {
    outline: none;
    border-color: #19B2CE;
    box-shadow: 0 0 0 3px rgba(25, 178, 206, 0.15);
}

.elisa-form-group input::placeholder,
.elisa-form-group textarea::placeholder {
    color: #aaa;
}

.elisa-btn-full {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

.elisa-payment-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-top: 15px;
}

.elisa-payment-info svg {
    width: 16px;
    height: 16px;
    stroke: #27ae60;
}

/* Message Styles */
.elisa-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

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

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

/* Payment Status Messages */
.elisa-payment-message {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    position: relative;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.elisa-payment-message .elisa-message-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.elisa-payment-message .elisa-message-icon svg {
    width: 28px;
    height: 28px;
}

.elisa-payment-message .elisa-message-content h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
}

.elisa-payment-message .elisa-message-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.elisa-payment-message .elisa-message-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.elisa-payment-message .elisa-message-close:hover {
    opacity: 1;
}

/* Success Message */
.elisa-payment-message.elisa-message-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
}

.elisa-message-success .elisa-message-icon {
    background: #28a745;
}

.elisa-message-success .elisa-message-icon svg {
    stroke: #fff;
}

.elisa-message-success .elisa-message-content h3,
.elisa-message-success .elisa-message-content p,
.elisa-message-success .elisa-message-close {
    color: #155724;
}

/* Error Message */
.elisa-payment-message.elisa-message-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
}

.elisa-message-error .elisa-message-icon {
    background: #dc3545;
}

.elisa-message-error .elisa-message-icon svg {
    stroke: #fff;
}

.elisa-message-error .elisa-message-content h3,
.elisa-message-error .elisa-message-content p,
.elisa-message-error .elisa-message-close {
    color: #721c24;
}

/* Warning Message */
.elisa-payment-message.elisa-message-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 2px solid #ffc107;
}

.elisa-message-warning .elisa-message-icon {
    background: #ffc107;
}

.elisa-message-warning .elisa-message-icon svg {
    stroke: #fff;
}

.elisa-message-warning .elisa-message-content h3,
.elisa-message-warning .elisa-message-content p,
.elisa-message-warning .elisa-message-close {
    color: #856404;
}

/* Spinner */
.elisa-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

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

/* Loading State */
.elisa-btn.loading {
    opacity: 0.8;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 600px) {
    .elisa-pricing-title {
        font-size: 20px;
    }
    
    .elisa-toggle-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .elisa-card-header,
    .elisa-card-body {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .elisa-price-amount {
        font-size: 32px;
    }
    
    .elisa-but-info {
        flex-direction: column;
        text-align: center;
    }
    
    .elisa-payment-message {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .elisa-payment-message .elisa-message-icon {
        margin: 0 auto;
    }
    
    .elisa-modal-content {
        padding: 25px;
    }
}
