/**
 * ValizApp Waitlist Styles
 * Modern, responsive design with smooth animations
 */

/* =============================================================================
   WAITLIST SECTION STYLES
   ============================================================================= */

.waitlist-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.waitlist-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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.waitlist-content {
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.waitlist-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.waitlist-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.waitlist-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.waitlist-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.waitlist-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.waitlist-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.waitlist-card .card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.waitlist-card .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 5px;
}

.waitlist-card .stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.waitlist-card .benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.waitlist-card .benefits-list li {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.waitlist-card .benefits-list i {
    color: #ffd700;
    font-size: 0.95rem;
}

/* =============================================================================
   QUICK FORM STYLES
   ============================================================================= */

.waitlist-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-signup h3 {
    margin-bottom: 10px;
    font-size: 1.8rem;
    text-align: center;
}

.form-description {
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.quick-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.quick-form .form-group {
    display: flex;
    flex-direction: column;
}

.quick-form .form-group.full-width {
    grid-column: 1 / -1;
}

.quick-form .form-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.quick-form input,
.quick-form select {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.quick-form input:focus,
.quick-form select:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.quick-form input::placeholder {
    color: #888;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkmark {
    display: none;
}

.btn-primary {
    background: white;
    color: #667eea;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    margin-top: 10px;
}

.btn-primary.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.5);
    color: #5568d3;
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-primary .btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.waitlist-benefits {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.waitlist-benefits h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
}

.benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.benefits-list li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefits-list i {
    color: #ffd700;
    font-size: 1rem;
}

/* =============================================================================
   MODAL STYLES
   ============================================================================= */

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

.waitlist-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.waitlist-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px 20px;
    border-bottom: 1px solid #eee;
}

.waitlist-modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.8rem;
}

.waitlist-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.waitlist-close:hover {
    background: #f5f5f5;
    color: #333;
}

.waitlist-modal-body {
    padding: 40px;
}

.waitlist-subtitle {
    font-size: 1.2rem;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 600;
}

.waitlist-description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* =============================================================================
   FORM STYLES
   ============================================================================= */

.waitlist-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.waitlist-form input,
.waitlist-form select {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.waitlist-form input:focus,
.waitlist-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.1);
}

.waitlist-form input.error,
.waitlist-form select.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.1);
}

.field-error {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

/* Checkbox styles */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-label:hover {
    background: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* =============================================================================
   BENEFITS SECTION
   ============================================================================= */

.waitlist-benefits {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.waitlist-benefits h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #555;
}

.benefits-list li i {
    color: #667eea;
    margin-right: 12px;
    width: 16px;
    flex-shrink: 0;
}

/* =============================================================================
   NOTIFICATION STYLES
   ============================================================================= */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-success {
    border-left: 4px solid #4CAF50;
}

.notification-error {
    border-left: 4px solid #ff6b6b;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 20px;
}

.notification-content i {
    margin-right: 15px;
    font-size: 1.2rem;
}

.notification-success i {
    color: #4CAF50;
}

.notification-error i {
    color: #ff6b6b;
}

.notification-content span {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    margin-left: 15px;
    padding: 0;
    line-height: 1;
}

.notification-close:hover {
    color: #333;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
    .waitlist-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .waitlist-text h2 {
        font-size: 2rem;
    }

    .waitlist-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .waitlist-form-container {
        padding: 30px 20px;
    }

    .quick-form .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .waitlist-section {
        padding: 60px 0;
    }

    .waitlist-text h2 {
        font-size: 1.8rem;
    }

    .waitlist-text p {
        font-size: 1rem;
    }

    .waitlist-cards {
        gap: 12px;
    }

    .btn-primary {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* =============================================================================
   ANIMATION UTILITIES
   ============================================================================= */

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* =============================================================================
   LOADING STATES
   ============================================================================= */

.btn-loading .fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .waitlist-modal-content {
        background: #1a1a1a;
        color: white;
    }

    .waitlist-modal-header h2 {
        color: white;
    }

    .waitlist-modal-header {
        border-bottom-color: #333;
    }

    .waitlist-form input,
    .waitlist-form select {
        background: #2a2a2a;
        border-color: #444;
        color: white;
    }

    .waitlist-form input:focus,
    .waitlist-form select:focus {
        border-color: #667eea;
        background: #333;
    }

    .form-group label {
        color: #ddd;
    }

    .waitlist-benefits {
        background: #2a2a2a;
    }

    .checkbox-label:hover {
        background: #2a2a2a;
    }
}

/* =============================================================================
   MODAL STYLES
   ============================================================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-body {
    padding: 30px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body input,
.modal-body select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.modal-body input:focus,
.modal-body select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px 20px;
    }
}
