@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

.lead-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lead-modal-container {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    animation: leadModalSlideIn 0.4s ease;
}

.lead-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    z-index: 1;
    transition: color 0.3s ease;
}

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

.lead-progress-container {
    margin-bottom: 30px;
}

.lead-progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.lead-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 4px;
    transition: width 0.6s ease;
    width: 6.25%; /* Updated for 16 steps: 1/16 = 6.25% */
}

.lead-progress-text {
    text-align: center;
    margin-top: 10px;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

.lead-step {
    display: none;
    animation: leadSlideIn 0.5s ease;
}

.lead-step.active {
    display: block;
}

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

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

.lead-step-header {
    text-align: center;
    margin-bottom: 30px;
}

.lead-step-number {
    background: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 18px;
}

.lead-step-header h2 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.lead-step-description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.4;
}

/* Multiple selection indicator */
.lead-step-description:has-text("Select all that apply") {
    color: #e67e22;
    font-weight: 500;
}

.lead-options {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.zodiac-grid {
    grid-template-columns: repeat(4, 1fr);
}

.music-grid, 
.hobby-grid, 
.entertainment-grid, 
.partner-grid {
    grid-template-columns: repeat(2, 1fr);
}

.preference-grid {
    grid-template-columns: 1fr;
}

.lead-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 60px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}

.lead-option:hover {
    background: #e3f2fd;
    border-color: #50B45A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(80, 180, 90, 0.2);
}

.lead-option.selected {
    background: #50B45A;
    color: white;
    border-color: #459F4F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(80, 180, 90, 0.3);
}

/* Multiple selection styles */
.lead-option.multiple-select {
    border-style: dashed;
    position: relative;
}

.lead-option.multiple-select::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
}

.lead-option.multiple-select:hover::after {
    border-color: #50B45A;
}

.lead-option.multiple-select.selected::after {
    background: white;
    border-color: white;
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #50B45A;
}

/* Multiple selection indicator text */
.lead-step[data-step="6"] .lead-step-description::after,
.lead-step[data-step="7"] .lead-step-description::after,
.lead-step[data-step="8"] .lead-step-description::after,
.lead-step[data-step="14"] .lead-step-description::after,
.lead-step[data-step="15"] .lead-step-description::after {
    content: " (You can select multiple)";
    color: #e67e22;
    font-weight: 500;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.zodiac-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.lead-birthday-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 30px;
}

.lead-date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.lead-date-option {
    padding: 12px 8px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lead-date-option:hover,
.lead-date-option.selected {
    background: #3498db;
    color: white;
    border-color: #2980b9;
    transform: translateY(-1px);
}

.lead-select {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    width: 100%;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

.lead-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.lead-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
}

.lead-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.lead-input.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.lead-privacy-notice {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

.lead-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.lead-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    min-width: 120px;
}

.lead-btn-primary {
    background: linear-gradient(135deg, #50B45A, #459F4F);
    color: white;
    box-shadow: 0 4px 12px rgba(80, 180, 90, 0.3);
}

.lead-btn-primary:hover {
    background: linear-gradient(135deg, #459F4F, #3e8e43);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(80, 180, 90, 0.4);
}

.lead-btn-secondary {
    background: #6c757d;
    color: white;
}

.lead-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.lead-loading-step {
    text-align: center;
    padding: 60px 20px;
}

.lead-loading-step h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 24px;
}

.lead-loading-step p {
    color: #7f8c8d;
    font-size: 16px;
}

.lead-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #ecf0f1;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: leadSpin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Trigger Button Styles */
.lead-form-trigger {
    background: linear-gradient(135deg, #50B45A, #459F4F);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 4px 12px rgba(80, 180, 90, 0.3);
    text-transform: none;
    letter-spacing: 0.5px;
}

.lead-form-trigger:hover {
    background: linear-gradient(135deg, #459F4F, #3e8e43);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(80, 180, 90, 0.4);
}

.lead-form-trigger:active {
    transform: translateY(0);
}

.secondary-btn {
    background: #6c757d !important;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3) !important;
}

.secondary-btn:hover {
    background: #5a6268 !important;
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4) !important;
}

/* Success Icon Animation */
.lead-success-icon {
    font-size: 60px;
    color: #27ae60;
    margin-bottom: 20px;
    animation: leadSuccessBounce 0.6s ease;
}

@keyframes leadSuccessBounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

/* Notification Styles */
.lead-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

.lead-notification.show {
    transform: translateX(0);
}

.lead-notification-error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.lead-notification-success {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.lead-notification-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* Multiple Selection Counter */
.lead-step[data-step="6"] .lead-options::after,
.lead-step[data-step="7"] .lead-options::after,
.lead-step[data-step="8"] .lead-options::after,
.lead-step[data-step="14"] .lead-options::after,
.lead-step[data-step="15"] .lead-options::after {
    content: attr(data-selected-count);
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .lead-modal-container {
        padding: 30px 20px;
        margin: 10px;
        max-height: 95vh;
    }
    
    .lead-step-header h2 {
        font-size: 20px;
    }
    
    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .music-grid, 
    .hobby-grid, 
    .entertainment-grid, 
    .partner-grid {
        grid-template-columns: 1fr;
    }
    
    .lead-birthday-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .lead-date-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
    }
    
    .lead-date-option {
        padding: 8px 4px;
        font-size: 13px;
    }
    
    .lead-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .lead-btn {
        width: 100%;
        min-width: auto;
    }
    
    .lead-option {
        min-height: 50px;
        padding: 12px;
        font-size: 13px;
    }
    
    .lead-option.multiple-select::after {
        width: 16px;
        height: 16px;
        top: 6px;
        right: 6px;
        font-size: 10px;
    }
    
    .lead-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .lead-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .lead-modal-container {
        padding: 25px 15px;
        margin: 5px;
    }
    
    .zodiac-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lead-step-header h2 {
        font-size: 18px;
    }
    
    .lead-step-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .lead-option {
        padding: 10px;
        font-size: 12px;
        min-height: 45px;
    }
    
    .zodiac-icon {
        font-size: 20px;
    }
    
    .lead-input,
    .lead-select {
        padding: 12px;
        font-size: 14px;
    }
    
    .lead-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Focus and Accessibility */
.lead-option:focus,
.lead-btn:focus,
.lead-input:focus,
.lead-select:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .lead-modal-overlay {
        background: rgba(0,0,0,0.9);
    }
    
    .lead-option {
        border-width: 3px;
    }
    
    .lead-option.selected {
        border-color: #000;
        background: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .lead-modal-container,
    .lead-step,
    .lead-option,
    .lead-btn,
    .lead-progress-fill,
    .lead-spinner {
        animation: none;
        transition: none;
    }
    
    .lead-option:hover,
    .lead-btn:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .lead-modal-overlay {
        display: none !important;
    }
}

/* Add this to your existing lead-form.css file */

.cultural-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}

.cultural-grid .lead-option {
    text-align: left;
    padding: 14px 18px;
    font-size: 14px;
    border-radius: 10px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.cultural-grid .lead-option.multiple-select::after {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
}

/* Multiple selection indicator for cultural background step */
.lead-step[data-step="5"] .lead-step-description::after {
    content: " (You can select multiple or choose 'No preference')";
    color: #e67e22;
    font-weight: 500;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/* Mobile adjustments for cultural grid */
@media (max-width: 768px) {
    .cultural-grid {
        gap: 10px;
    }
    
    .cultural-grid .lead-option {
        padding: 12px 15px;
        font-size: 13px;
        min-height: 45px;
    }
    
    .cultural-grid .lead-option.multiple-select::after {
        width: 16px;
        height: 16px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .cultural-grid .lead-option {
        padding: 10px 12px;
        font-size: 12px;
        min-height: 40px;
    }
    
    .cultural-grid .lead-option.multiple-select::after {
        width: 14px;
        height: 14px;
        right: 10px;
        font-size: 10px;
    }
}