/**
 * Pilot Styles
 * Styles for pilot CTA section, pilot modal, floating badge, discovery popup
 */

/* ============================================
   Pilot CTA Section
============================================ */
.pilot-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.pilot-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(51,102,255,0.3)"/><circle cx="80" cy="40" r="1.5" fill="rgba(0,191,255,0.3)"/><circle cx="40" cy="80" r="2" fill="rgba(124,58,237,0.3)"/></svg>');
    background-size: 100px 100px;
    animation: float-particles 20s linear infinite;
}

@keyframes float-particles {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.pilot-cta-content {
    position: relative;
    z-index: 1;
}

.pilot-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(51, 102, 255, 0.2);
    border: 1px solid rgba(51, 102, 255, 0.4);
    border-radius: 50px;
    color: #00bfff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(51, 102, 255, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(51, 102, 255, 0); }
}

.pilot-cta-content h3 {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.pilot-cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pilot-cta-content .btn {
    background: linear-gradient(135deg, #3366FF 0%, #00bfff 100%);
    color: white;
    padding: 16px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 30px rgba(51, 102, 255, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pilot-cta-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(51, 102, 255, 0.5);
}

/* ============================================
   Pilot Modal Overlay
============================================ */
.pilot-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pilot-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.pilot-modal-container {
    background: #1a1a2e;
    border-radius: 20px;
    max-width: 650px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.pilot-modal-overlay.active .pilot-modal-container {
    transform: scale(1);
}

.pilot-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

.pilot-modal-content {
    background: white;
    border-radius: 0 0 20px 20px;
    padding: 25px 30px;
}

.pilot-modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.pilot-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pilot-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ============================================
   Pilot Step Header
============================================ */
.pilot-step-header {
    text-align: center;
    margin-bottom: 20px;
}

.step-indicator {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(51, 102, 255, 0.1) 0%, rgba(0, 191, 255, 0.1) 100%);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #3366FF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.pilot-step-header h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.pilot-step-header p {
    color: #666;
    font-size: 15px;
}

/* ============================================
   Pilot Options
============================================ */
.pilot-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.pilot-option {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pilot-option:hover {
    border-color: #3366FF;
    background: rgba(51, 102, 255, 0.02);
}

.pilot-option.selected {
    border-color: #3366FF;
    background: linear-gradient(135deg, rgba(51, 102, 255, 0.05) 0%, rgba(0, 191, 255, 0.05) 100%);
    box-shadow: 0 5px 20px rgba(51, 102, 255, 0.15);
}

.pilot-option.selected .option-select i {
    color: #3366FF;
}

.pilot-option.selected .option-select i::before {
    content: '\f058';
}

.option-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, #3366FF 0%, #00bfff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.option-content {
    flex: 1;
}

.option-content h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.option-content > p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.option-features {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.option-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.option-features li i {
    color: #28a745;
    font-size: 11px;
}

.option-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.option-price .price {
    font-size: 24px;
    font-weight: 800;
    color: #3366FF;
}

.option-price .price.free {
    color: #28a745;
}

.option-price .price-note {
    font-size: 12px;
    color: #888;
}

.option-select {
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-select i {
    font-size: 24px;
    color: #ddd;
    transition: color 0.3s ease;
}

/* ============================================
   Limited Offer Ribbon
============================================ */
.limited-offer-ribbon {
    position: absolute;
    top: 12px;
    right: -8px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px 5px 10px;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.limited-offer-ribbon::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -6px;
    border-width: 3px;
    border-style: solid;
    border-color: #5b21b6 #5b21b6 transparent transparent;
}

/* ============================================
   Option Bonus
============================================ */
.option-bonus {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08) 0%, rgba(32, 201, 151, 0.08) 100%);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 8px;
    font-size: 12px;
    color: #198754;
    font-weight: 500;
}

.option-bonus i {
    color: #198754;
    font-size: 14px;
}

/* ============================================
   Floating Pilot Badge
============================================ */
.floating-pilot-badge {
    position: fixed;
    top: 120px;
    right: 0;
    z-index: 9998;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.floating-pilot-badge:hover {
    transform: translateX(-5px);
}

.floating-badge-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 12px 18px 12px 14px;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(51, 102, 255, 0.3);
    border-right: none;
}

.floating-badge-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3366FF 0%, #00bfff 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.floating-badge-text {
    display: flex;
    flex-direction: column;
}

.badge-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-cta {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.floating-badge-pulse {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    background: #00d4aa;
    border-radius: 50%;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.6);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 212, 170, 0);
    }
}

/* Hide floating badge on small screens */
@media (max-width: 991px) {
    .floating-pilot-badge {
        display: none;
    }
}

/* ============================================
   Pilot Actions
============================================ */
.pilot-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.pilot-actions .btn {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pilot-actions .btn-theme {
    background: linear-gradient(135deg, #3366FF 0%, #00bfff 100%);
    color: white;
    border: none;
}

.pilot-actions .btn-theme:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pilot-actions .btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: none;
}

/* ============================================
   Pilot Summary (Step 2)
============================================ */
.pilot-summary {
    margin-bottom: 25px;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(51, 102, 255, 0.08) 0%, rgba(0, 191, 255, 0.08) 100%);
    border: 1px solid rgba(51, 102, 255, 0.2);
    border-radius: 12px;
}

.summary-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3366FF 0%, #00bfff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.summary-details h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.summary-details p {
    font-size: 14px;
    color: #3366FF;
    margin: 0;
    font-weight: 600;
}

/* ============================================
   Pilot Form
============================================ */
.pilot-form .form-group {
    margin-bottom: 20px;
}

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

.pilot-form label .required {
    color: #e74c3c;
}

.pilot-form label .optional {
    color: #888;
    font-weight: 400;
    font-size: 12px;
}

.pilot-form .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.pilot-form .form-control:focus {
    border-color: #3366FF;
    box-shadow: 0 0 0 4px rgba(51, 102, 255, 0.1);
    outline: none;
}

/* ============================================
   Pilot Success State
============================================ */
.pilot-success {
    text-align: center;
    padding: 20px 0;
}

.pilot-success .success-icon {
    font-size: 72px;
    color: #28a745;
    margin-bottom: 20px;
    animation: success-bounce 0.6s ease;
}

@keyframes success-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pilot-success h4 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.pilot-success > p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.success-next-steps {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.success-next-steps h5 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.success-next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.success-next-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #555;
}

.success-next-steps li:last-child {
    border-bottom: none;
}

.success-next-steps li i {
    color: #3366FF;
    font-size: 16px;
    width: 20px;
}

/* ============================================
   Discovery Call Popup
============================================ */
.discovery-call-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content {
    background: #ffffff;
    color: #333;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    margin: 20px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    max-height: 90vh;
    overflow-y: auto;
}

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

.discovery-call-popup .popup-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: rgba(240, 240, 240, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #666 !important;
    font-size: 18px !important;
    width: 36px !important;
    height: 36px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    z-index: 10001 !important;
    font-weight: 400 !important;
    font-family: Arial, sans-serif !important;
    text-align: center !important;
    outline: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    border-radius: 50% !important;
}

.discovery-call-popup .popup-close::before,
.discovery-call-popup .popup-close::after {
    display: none !important;
    content: none !important;
}

.discovery-call-popup .popup-close:hover {
    color: #fff !important;
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3) !important;
}

.popup-header {
    padding: 60px 30px 25px 30px;
    text-align: center;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.popup-header h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.popup-subtitle {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.popup-body {
    padding: 25px 30px;
}

.discovery-form {
    margin-bottom: 0;
}

.discovery-benefits {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #667eea;
}

.discovery-benefits p {
    margin: 0 0 12px;
    font-weight: 500;
    color: #2c3e50;
}

.discovery-benefits ul {
    margin: 0;
    padding-left: 18px;
    list-style: none;
}

.discovery-benefits li {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.discovery-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.form-actions {
    text-align: center;
    margin-top: 25px;
}

/* ============================================
   Responsive Styles
============================================ */
@media (max-width: 767px) {
    .pilot-option {
        flex-direction: column;
        gap: 15px;
    }

    .option-select {
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .pilot-cta-content h3 {
        font-size: 28px;
    }

    .pilot-modal-content {
        padding: 20px;
    }

    .pilot-actions {
        flex-direction: column;
    }

    .pilot-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .popup-content {
        width: 95%;
        margin: 10px;
    }

    .popup-header,
    .popup-body {
        padding: 20px;
    }

    .popup-header {
        padding-top: 50px;
    }

    .popup-header h3 {
        font-size: 18px;
    }
}
