/* Nature PDF Waitlist Box Styles */

/* Main Waitlist Box */
.fff-waitlist-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.fff-waitlist-box::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.fff-waitlist-box::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.fff-waitlist-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.fff-waitlist-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fff-waitlist-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 28px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.fff-waitlist-btn {
    background: #ffffff;
    color: #667eea;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.fff-waitlist-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #f8f9ff;
}

/* Modal Styles */
.fff-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.fff-modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fff-modal {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.fff-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fff-modal-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.fff-modal-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fff-modal-subtitle {
    color: #6b7280;
    font-size: 15px;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

/* Form Styles */
.fff-form-group {
    margin-bottom: 24px;
}

.fff-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.fff-form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.fff-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.fff-form-input.error {
    border-color: #ef4444;
}

.fff-error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.fff-error-message.show {
    display: block;
}

.fff-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.fff-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.fff-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Message Styles */
.fff-success-message {
    display: none;
    text-align: center;
}

.fff-success-message.show {
    display: block;
}

.fff-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.fff-success-icon svg {
    width: 40px;
    height: 40px;
    stroke: #ffffff;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fff-success-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.fff-success-text {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.fff-close-btn {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fff-close-btn:hover {
    background: #e5e7eb;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .fff-waitlist-box {
        padding: 30px 24px;
        margin: 30px 15px;
    }
    
    .fff-waitlist-title {
        font-size: 24px;
    }
    
    .fff-waitlist-description {
        font-size: 15px;
    }
    
    .fff-modal {
        padding: 36px 24px;
    }
    
    .fff-modal-title {
        font-size: 24px;
    }
}