/* Conversational Form Styles */

.conversation-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* User Portal - Top Left */
.form-portal {
    position: fixed !important;
    top: 30px;
    left: 30px;
    right: auto;
    z-index: 100;
}

/* Language Toggle - Bottom Left Hovering */
.form-lang-toggle.bottom-left {
    position: fixed;
    bottom: 30px;
    left: 30px;
    top: auto;
    right: auto;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
    display: flex;
    gap: 8px;
}

/* Elegant Sidebar Tracker */
.elegant-sidebar {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 90;
}

@media (max-width: 1000px) {
    .elegant-sidebar {
        display: none;
        /* Hide on smaller screens */
    }

    .form-portal {
        left: 20px;
        top: 20px;
    }

    .form-lang-toggle.bottom-left {
        left: 20px;
        bottom: 20px;
    }
}

.sidebar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--beige-dark);
    transition: all 0.3s ease;
    cursor: default;
}

.sidebar-dot.active {
    background: var(--olive-green);
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(85, 107, 47, 0.1);
}

.sidebar-dot.completed {
    background: var(--olive-green);
}

.sidebar-line {
    width: 2px;
    height: 40px;
    background: var(--beige);
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 180px;
    /* Space for input area */
}

.message {
    max-width: 80%;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    font-size: 1.125rem;
    line-height: 1.6;
    animation: messageSlide 0.4s ease-out both;
    position: relative;
}

/* SVG Fixes - CRITICAL */
.package-icon,
.option-icon,
.option-btn svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    min-height: 24px;
    flex-shrink: 0;
    stroke-width: 2px;
}

.option-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-message {
    align-self: flex-start;
    background-color: var(--white);
    color: var(--olive-dark);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.user-message {
    align-self: flex-end;
    background-color: var(--olive-green);
    color: var(--white);
    border-bottom-right-radius: 4px;
    box-shadow: var(--shadow-md);
}

.input-area {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 247, 240, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 20px 40px;
    border-top: 1px solid rgba(107, 122, 90, 0.1);
    display: flex;
    justify-content: center;
    z-index: 100;
    transition: transform 0.3s ease;
}

.input-container {
    width: 100%;
    max-width: 700px;
    position: relative;
}

/* Text Input */
.chat-input {
    width: 100%;
    padding: 16px 24px;
    border: 2px solid var(--beige);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.125rem;
    background: var(--white);
    transition: all 0.3s ease;
    outline: none;
}

.chat-input:focus {
    border-color: var(--olive-green);
    box-shadow: 0 0 0 4px rgba(107, 122, 90, 0.1);
}

/* Textarea Specific */
textarea.chat-input {
    border-radius: 20px;
    padding: 16px 24px;
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.send-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--olive-green);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: var(--olive-dark);
    transform: translateY(-50%) scale(1.05);
}

.send-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-left: 2px;
    /* Visual centering */
}

/* Options (Radio/Buttons) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    width: 100%;
}

.option-btn {
    background: var(--white);
    border: 2px solid var(--beige);
    padding: 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 122, 90, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.option-btn:hover::before {
    opacity: 1;
}

.option-btn:hover {
    border-color: var(--olive-green);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.option-btn.selected {
    background: var(--olive-green);
    border-color: var(--olive-green);
    color: var(--white);
    animation: pulseSelect 0.6s ease;
}

.option-btn.selected .package-icon {
    stroke: var(--white);
}

@keyframes pulseSelect {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.option-btn:active {
    transform: translateY(-2px);
}

.option-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

/* Package SVG Icons */
.package-icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    flex-shrink: 0;
    stroke: var(--olive-dark);
    transition: stroke 0.3s ease;
}

.option-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
}

.option-price {
    position: absolute;
    top: 16px;
    right: 16px;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 24px 28px;
    background: var(--white);
    border-radius: 24px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--olive-light);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Language Toggle Position */
.form-lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    padding: 4px;
    border-radius: 25px;
    box-shadow: var(--shadow-sm);
}

.back-link {
    position: fixed;
    top: 28px;
    left: 20px;
    z-index: 100;
    color: var(--olive-dark);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.back-link:hover {
    transform: translateX(-4px);
}

/* Review Summary */
.review-summary {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-md);
}

.review-summary p {
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.6;
}

.review-summary strong {
    color: var(--olive-dark);
    font-weight: 600;
}

/* Submit Button Enhancement */
.submit-button {
    width: 100%;
    background: var(--olive-green);
    color: var(--white);
    padding: 20px;
    border-radius: 16px;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.submit-button:hover {
    background: var(--olive-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.submit-button:active {
    transform: translateY(-1px);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .conversation-wrapper {
        padding-top: 80px;
    }

    .message {
        max-width: 90%;
        padding: 16px 20px;
        font-size: 1rem;
    }

    .bot-message {
        font-size: 1.2rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    textarea.chat-input {
        min-height: 100px;
    }
}