/**
 * Conversational Forms Styles
 *
 * @package SkyEvents
 * @since 0.8.0
 */

.skyevents-conversational {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Progress Bar */
.conversational-progress {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #0073aa);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.progress-text .current {
    font-weight: bold;
    color: #2271b1;
}

/* Question Container */
.conversational-wrapper {
    min-height: 300px;
}

.skyevents-field {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skyevents-field label {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 20px;
    line-height: 1.4;
}

.skyevents-field input[type="text"],
.skyevents-field input[type="email"],
.skyevents-field input[type="tel"],
.skyevents-field input[type="number"],
.skyevents-field textarea,
.skyevents-field select {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.skyevents-field input:focus,
.skyevents-field textarea:focus,
.skyevents-field select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.skyevents-field input.error,
.skyevents-field textarea.error,
.skyevents-field select.error {
    border-color: #dc3545;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
}

/* Radio and Checkbox */
.skyevents-field input[type="radio"],
.skyevents-field input[type="checkbox"] {
    margin-right: 10px;
}

.skyevents-field .radio-option,
.skyevents-field .checkbox-option {
    display: block;
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skyevents-field .radio-option:hover,
.skyevents-field .checkbox-option:hover {
    border-color: #2271b1;
    background: #f8f9fa;
}

.skyevents-field input[type="radio"]:checked+label,
.skyevents-field input[type="checkbox"]:checked+label {
    border-color: #2271b1;
    background: #e7f3ff;
}

/* Navigation */
.conversational-nav {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.conversational-nav button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-previous {
    background: #f8f9fa;
    color: #333;
}

.btn-previous:hover {
    background: #e9ecef;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #2271b1, #0073aa);
    color: white;
    flex: 1;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .skyevents-conversational {
        padding: 20px 15px;
    }

    .skyevents-field label {
        font-size: 20px;
    }

    .conversational-nav {
        flex-direction: column;
    }

    .btn-previous {
        order: 2;
    }

    .btn-next,
    .btn-submit {
        order: 1;
    }
}

/* Accessibility */
.skyevents-field input:focus-visible,
.skyevents-field textarea:focus-visible,
.skyevents-field select:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Loading State */
.conversational-nav button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}