/* Haruby Gift Selector Popup Styles */

.haruby-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
}

.haruby-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.haruby-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.haruby-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.haruby-close:hover {
    color: #333;
    background: #f0f0f0;
    transform: rotate(90deg);
}

.haruby-popup-content h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    color: #333;
    text-align: center;
}

.haruby-popup-content p {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    text-align: center;
}

.haruby-step {
    animation: fadeIn 0.3s ease;
}

#haruby-email-form {
    margin-top: 25px;
}

#haruby-email {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#haruby-email:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.haruby-captcha {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.haruby-captcha label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.haruby-captcha #haruby-math-question {
    color: #667eea;
    font-weight: 700;
    font-size: 16px;
}

#haruby-captcha-answer {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#haruby-captcha-answer:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.haruby-gdpr {
    background: #fff9e6;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.haruby-gdpr label {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    cursor: pointer;
}

.haruby-gdpr input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.haruby-gdpr a {
    color: #667eea;
    text-decoration: underline;
}

.haruby-gdpr a:hover {
    color: #5568d3;
}

.haruby-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.haruby-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.haruby-submit-btn:active {
    transform: translateY(0);
}

#haruby-step-2 {
    text-align: center;
}

#haruby-step-2 h2 {
    color: #667eea;
}

#haruby-step-3 {
    text-align: center;
}

#haruby-step-3 h2 {
    color: #43e97b;
}

#haruby-countdown {
    font-weight: 700;
    color: #667eea;
    font-size: 24px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .haruby-popup-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .haruby-popup-content h2 {
        font-size: 24px;
    }
    
    .haruby-popup-content p {
        font-size: 14px;
    }
    
    .haruby-submit-btn {
        font-size: 16px;
        padding: 14px;
    }
}

/* Loading Animation */
.haruby-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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