/* Ziyaretçi Soru Sorma Widget Stilleri */

.guest-question-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
}

.guest-question-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

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

.widget-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 2rem;
}

.widget-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.widget-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
}

.multi-step-form {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

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

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.step-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-color);
}

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

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.step-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-next-step,
.btn-prev-step,
.btn-submit-question {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

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

.btn-secondary {
    background: #f3f4f6;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

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

.btn-submit-question:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* CAPTCHA Stilleri */
.captcha-wrapper {
    margin: 1.5rem 0;
}

.captcha-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    flex-wrap: wrap;
}

.captcha-image {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.75rem;
    color: #1f2937;
    text-align: center;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.captcha-input {
    flex: 1 1 200px;
    min-width: 150px;
    max-width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.25rem;
    text-align: center;
    text-transform: uppercase;
    transition: var(--transition);
    background: white;
    font-family: 'Courier New', monospace;
}

.btn-refresh-captcha {
    padding: 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    width: 48px;
    height: 48px;
}

.btn-refresh-captcha:hover {
    background: var(--bg-light);
    border-color: #667eea;
    transform: rotate(180deg);
}

/* Başarı Adımı */
.success-step {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-step h3 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.success-step p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Hata Mesajı */
.form-error {
    background: #fee;
    color: #c33;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid #fcc;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .guest-question-widget {
        padding: 1.5rem;
    }
    
    .widget-header h2 {
        font-size: 1.5rem;
    }
    
    .widget-subtitle {
        font-size: 1rem;
    }
    
    .multi-step-form {
        padding: 1.5rem;
    }
    
    .step-header h3 {
        font-size: 1.25rem;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .btn-next-step,
    .btn-prev-step,
    .btn-submit-question {
        width: 100%;
    }
    
    .captcha-container {
        flex-direction: column;
    }
    
    .captcha-image,
    .captcha-input {
        width: 100%;
    }
}

