/**
 * Premium Simulator CSS
 * Modern, responsive styles for the Futturu Premium Simulator
 * 
 * @package Futturu_Premium_Simulator
 */

/* ============================================
   Main Container
   ============================================ */
.futturu-premium-simulator {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ============================================
   Progress Bar
   ============================================ */
.futturu-progress-bar {
    margin-bottom: 40px;
}

.futturu-progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 15px;
}

.futturu-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.futturu-step.active .step-number,
.futturu-step.completed .step-number {
    background: #1a73e8;
    color: white;
}

.futturu-step.completed .step-number {
    background: #34a853;
}

.step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.futturu-step.active .step-label {
    color: #1a73e8;
    font-weight: 600;
}

.futturu-progress-line {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    position: relative;
    margin-top: 10px;
}

.futturu-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8, #4285f4);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ============================================
   Form Steps
   ============================================ */
.futturu-form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.futturu-form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.futturu-form-step h2 {
    color: #1a1a1a;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1a73e8;
}

.futturu-step-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ============================================
   Form Groups
   ============================================ */
.futturu-form-group {
    margin-bottom: 25px;
}

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

.futturu-form-group input[type="text"],
.futturu-form-group input[type="email"],
.futturu-form-group input[type="tel"],
.futturu-form-group input[type="number"],
.futturu-form-group select,
.futturu-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.futturu-form-group input:focus,
.futturu-form-group select:focus,
.futturu-form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

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

/* ============================================
   Checkbox Groups
   ============================================ */
.futturu-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.futturu-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.futturu-checkbox-group label:hover {
    background: #e8f0fe;
}

.futturu-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.futturu-addons-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ============================================
   Navigation Buttons
   ============================================ */
.futturu-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.futturu-btn {
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.futturu-btn-prev {
    background: #f1f3f4;
    color: #5f6368;
}

.futturu-btn-prev:hover:not(:disabled) {
    background: #e0e0e0;
}

.futturu-btn-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.futturu-btn-next,
.futturu-btn-submit {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: white;
}

.futturu-btn-next:hover,
.futturu-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.futturu-btn-submit {
    background: linear-gradient(135deg, #34a853, #43d061);
}

/* ============================================
   Summary Section
   ============================================ */
.futturu-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.summary-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.summary-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-section h4 {
    color: #1a73e8;
    font-size: 16px;
    margin-bottom: 12px;
}

.summary-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-label {
    font-weight: 600;
    color: #555;
    min-width: 180px;
}

.summary-value {
    color: #333;
}

.summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.summary-tag {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   Terms Checkbox
   ============================================ */
.futturu-terms {
    background: #fff3cd;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-top: 20px;
}

.futturu-terms label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    font-size: 14px;
    color: #856404;
}

.futturu-terms input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

/* ============================================
   Success Message
   ============================================ */
.futturu-success-message {
    text-align: center;
    padding: 50px 30px;
    animation: fadeIn 0.5s ease;
}

.futturu-success-icon {
    width: 80px;
    height: 80px;
    background: #34a853;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 25px;
}

.futturu-success-message h3 {
    color: #34a853;
    font-size: 28px;
    margin-bottom: 15px;
}

.futturu-success-message p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* ============================================
   Loading Overlay
   ============================================ */
.futturu-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.futturu-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.futturu-loading p {
    color: white;
    font-size: 18px;
    font-weight: 500;
}

/* ============================================
   Error States
   ============================================ */
.futturu-form-group.error input,
.futturu-form-group.error select,
.futturu-form-group.error textarea {
    border-color: #dc3545;
}

.futturu-error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.futturu-error-message::before {
    content: '⚠';
    margin-right: 5px;
}

/* ============================================
   Admin Dashboard Cards
   ============================================ */
.futturu-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.futturu-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
}

.card-icon {
    font-size: 40px;
}

.card-content h3 {
    font-size: 28px;
    color: #1a1a1a;
    margin: 0 0 5px;
}

.card-content p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.futturu-quick-links {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.futturu-quick-links h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.futturu-quick-links .button {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* ============================================
   Filters and Tables
   ============================================ */
.futturu-filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.futturu-filters select,
.futturu-filters input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.futturu-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.futturu-status-new {
    background: #e8f0fe;
    color: #1a73e8;
}

.futturu-status-contacted {
    background: #fff3cd;
    color: #856404;
}

.futturu-status-qualified {
    background: #d4edda;
    color: #155724;
}

.futturu-status-closed {
    background: #d1ecf1;
    color: #0c5460;
}

.futturu-status-lost {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================
   Modal
   ============================================ */
.futturu-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.futturu-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.futturu-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

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

/* ============================================
   Settings Form
   ============================================ */
.futturu-settings-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.futturu-settings-form h2 {
    color: #1a73e8;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-top: 30px;
}

.futturu-settings-form h2:first-child {
    margin-top: 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .futturu-premium-simulator {
        margin: 20px;
        padding: 20px;
    }
    
    .futturu-progress-steps {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .futturu-step {
        min-width: 60px;
    }
    
    .step-label {
        font-size: 10px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .futturu-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .futturu-form-navigation {
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .futturu-btn {
        width: 100%;
    }
    
    .futturu-dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .futturu-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .futturu-filters select,
    .futturu-filters input[type="date"],
    .futturu-filters button {
        width: 100%;
    }
}

/* ============================================
   Disabled State
   ============================================ */
.futturu-simulator-disabled {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .futturu-form-navigation,
    .futturu-progress-bar {
        display: none;
    }
    
    .futturu-form-step {
        display: block !important;
        page-break-inside: avoid;
    }
}
