/* =========================================================
   ESTILOS PARA DIAGNÓSTICO TIPO TYPEFORM
   ========================================================= */

.diagnostic-chat-container {
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: hidden;
    position: relative;
}

/* Progress bar */
.diagnostic-progress {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bg-light);
    z-index: 100;
    flex-shrink: 0;
}

.diagnostic-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.4s ease;
    width: 0%;
}

/* Question container - Full screen with scroll */
.question-container {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    padding-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.5s ease forwards;
    overflow-y: auto;
}

/* Custom scrollbar */
.question-container::-webkit-scrollbar {
    width: 8px;
}

.question-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.question-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: background 0.3s ease;
}

.question-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Firefox scrollbar */
.question-container {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-content {
    max-width: 700px;
    width: 100%;
    margin-top: 2rem;
    min-height: min-content;
}

.question-number {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.question-number .arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.question-text span {
    display: inline;
}

/* Input area */
.input-area {
    width: 100%;
}

/* Options - Typeform style */
.typeform-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.typeform-option {
    padding: 1.25rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.typeform-option:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
    transform: translateX(8px);
}

.typeform-option .option-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.typeform-option:hover .option-key {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Multi-choice */
.typeform-multi-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.typeform-checkbox {
    padding: 1.25rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.typeform-checkbox:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
}

.typeform-checkbox.selected {
    background: rgba(255, 94, 58, 0.1);
    border-color: var(--primary-color);
}

.typeform-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.typeform-checkbox label {
    color: var(--text-white);
    font-size: 1.1rem;
    cursor: pointer;
    flex: 1;
}

/* Text input */
.typeform-text-input {
    width: 100%;
}

.typeform-text-input input,
.typeform-text-input textarea {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--border-color);
    color: var(--text-white);
    font-size: 1.3rem;
    font-family: inherit;
    resize: none;
    transition: border-color 0.3s ease;
}

.typeform-text-input input:focus,
.typeform-text-input textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.typeform-text-input input::placeholder,
.typeform-text-input textarea::placeholder {
    color: var(--text-muted);
}

.char-counter {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: right;
}

/* Scale */
.typeform-scale {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.scale-option {
    flex: 1;
    padding: 1.5rem 1rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.scale-option:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.scale-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.scale-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact form */
.typeform-contact-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.typeform-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.typeform-field label {
    color: var(--text-light);
    font-size: 0.95rem;
}

.typeform-field input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.typeform-field input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.typeform-field input.error {
    border-color: var(--error-color);
}

/* Navigation */
.navigation-area {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    padding: 1.5rem 2rem;
    background: transparent;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    flex-shrink: 0;
}

.btn-nav {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-nav:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.btn-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-continue {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-continue:hover {
    background: var(--hover-primary);
    transform: translateX(4px);
}

.btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Instructions */
.instructions {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Start button (for welcome message) */
#start-button {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 1.1rem;
}

#start-button:hover {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 94, 58, 0.3);
}

.instructions kbd {
    padding: 0.25rem 0.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: monospace;
}

/* Loading state */
.loading-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 2rem;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: bounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Success message */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-message .icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.success-message h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

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

/* Responsive */
@media (max-width: 768px) {
    #question-container > div > h2 {
    font-size: 16px;
    font-weight: 400;
}

    .navigation-area {
    padding: 1.5rem 0rem;
 
}

#diagnostic-modal > div {
    padding: 1rem;
}

.typeform-text-input input, .typeform-text-input textarea {
    padding: 1.25rem 1rem;
    font-size: 0.9rem;
   
}

    .question-container {
        padding: 1rem;
        align-items: flex-start; /* Align to top to ensure title is visible */
    }

    .question-content {
        margin-top: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .question-text {
        font-size: 1.2rem; /* Smaller title */
        margin-bottom: 1.5rem;
    }

    .typeform-option {
        padding: 1rem;
        font-size: 1rem;
    }

    .typeform-checkbox {
        padding: 1rem;
    }

    .typeform-checkbox label {
        font-size: 1rem;
    }


    .btn-continue {
    padding: 0.75rem 1.5rem;
    }
}

/* Old chat styles - Remove these */
.chat-messages,
.chat-message,
.bot-message,
.user-message,
.message-content,
.typing-indicator,
.typing-dots,
.chat-input-area,
.chat-options,
.chat-option-btn,
.chat-options-multi,
.chat-checkbox-option,
.chat-scale,
.chat-text-input,
.contact-form,
.form-field {
    display: none !important;
}
