.contact_experience_container {
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding-dek);
    z-index: 1;
    min-height: 100vh;
}

/* Initial Screen */
.contact_initial {
    text-align: center;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.cont_title {
    font-size: 68px;
    font-family: 'Copper03';
    color: var(--dark-text);
    margin: 0;
}

/* Conversation Screen - Open Space, No Background */
.contact_conversation {
    display: none;
    flex-direction: column;
    max-width: 750px;
    width: 100%;
    background: transparent;
    height: 85vh;
    position: relative;
}

.header_cont {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
    background-color: var(--light-bg);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Chat Header */
.chat_header {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-text);
    text-align: center;
    font-family: 'Copper03';
}

/* Messages area */
.messages_area {
    flex: 1;
    overflow-y: auto;
    padding: 24px 0;
    position: relative;
}

.messages_area::-webkit-scrollbar {
    width: 4px;
}

.messages_area::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

#messages-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Alis Message */
.alis_message_bubble {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    animation: messageSlideIn 0.4s ease;
    align-self: flex-start;
    max-width: 90%;
}

.nathalie_avatar {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.nathalie_message {
    background-color: var(--dark-text);
    padding: 14px 18px;
    border-radius: 22px;
    border-bottom-left-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--light-bg);
}

/* User Message */
.user_message_bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: messageSlideIn 0.4s ease;
    align-self: flex-end;
    max-width: 70%;
    position: relative;
}

.user_message {
    background-color: var(--accent);
    padding: 14px 18px;
    border-radius: 22px;
    border-bottom-right-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
}

/* Edit button for user messages */
.edit_message_btn {
    width: 28px;
    height: 28px;
    background-color: rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    opacity: 0;
    transform: scale(0.8);
    animation: editBtnFadeIn 0.3s ease forwards 0.2s;
}

.edit_message_btn:hover {
    background-color: rgba(0, 0, 0, 0.15);
    transform: scale(1);
}

.edit_message_btn svg {
    width: 14px;
    height: 14px;
    stroke: var(--dark-text);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes editBtnFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Alis Typing */
.typing_indicator {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    animation: messageSlideIn 0.4s ease;
    align-self: flex-start;
}

.typing_bubble {
    background-color: var(--dark-text);
    padding: 14px 18px;
    border-radius: 22px;
    border-bottom-left-radius: 4px;
    display: flex;
    gap: 5px;
}

.typing_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    animation: typingDot 1.4s infinite;
}

.typing_dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing_dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* User Typing */
.user_typing_indicator {
    display: flex;
    animation: messageSlideIn 0.4s ease;
    align-self: flex-end;
}

.user_typing_bubble {
    background-color: var(--accent);
    padding: 14px 18px;
    border-radius: 22px;
    border-bottom-right-radius: 4px;
    display: flex;
    gap: 5px;
}

.user_typing_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    animation: typingDot 1.4s infinite;
}

.user_typing_dot:nth-child(2) {
    animation-delay: 0.2s;
}

.user_typing_dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Options - Button Style at Bottom */
.contact_options {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0 0 0;
    margin-bottom: -25px;
    background-color: var(--light-bg);
    position: sticky;
    bottom: 0;
    z-index: 10;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.contact_option_btn {
    font-size: 16px;
    font-family: var(--body-font);
    padding: 10px 10px;
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    animation: slideUpBtn 0.3s ease backwards;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Letter animations for contact buttons */
.contact_option_btn .letter {
    display: inline-block;
    position: relative;
    transform: rotateY(0deg);
    transform-origin: center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.contact_option_btn .letter::before {
    content: attr(data-letter);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

.contact_option_btn:hover .letter {
    animation: flipLetter360 0.55s var(--nav-letter-ease) forwards;
}

/* Individual letter delays for contact buttons */
.contact_option_btn:hover .letter:nth-child(1) { animation-delay: 0.03s; }
.contact_option_btn:hover .letter:nth-child(2) { animation-delay: 0.06s; }
.contact_option_btn:hover .letter:nth-child(3) { animation-delay: 0.12s; }
.contact_option_btn:hover .letter:nth-child(4) { animation-delay: 0.15s; }
.contact_option_btn:hover .letter:nth-child(5) { animation-delay: 0.18s; }
.contact_option_btn:hover .letter:nth-child(6) { animation-delay: 0.21s; }
.contact_option_btn:hover .letter:nth-child(7) { animation-delay: 0.24s; }
.contact_option_btn:hover .letter:nth-child(8) { animation-delay: 0.27s; }
.contact_option_btn:hover .letter:nth-child(9) { animation-delay: 0.30s; }
.contact_option_btn:hover .letter:nth-child(10) { animation-delay: 0.33s; }
.contact_option_btn:hover .letter:nth-child(11) { animation-delay: 0.36s; }
.contact_option_btn:hover .letter:nth-child(12) { animation-delay: 0.39s; }
.contact_option_btn:hover .letter:nth-child(13) { animation-delay: 0.42s; }
.contact_option_btn:hover .letter:nth-child(14) { animation-delay: 0.45s; }
.contact_option_btn:hover .letter:nth-child(15) { animation-delay: 0.48s; }
.contact_option_btn:hover .letter:nth-child(16) { animation-delay: 0.51s; }
.contact_option_btn:hover .letter:nth-child(17) { animation-delay: 0.54s; }
.contact_option_btn:hover .letter:nth-child(18) { animation-delay: 0.57s; }
.contact_option_btn:hover .letter:nth-child(19) { animation-delay: 0.60s; }
.contact_option_btn:hover .letter:nth-child(20) { animation-delay: 0.61s; }

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

/* Input Container */
.contact_input_container {
    display: flex;
    gap: 12px;
    animation: slideUpBtn 0.3s ease;
    padding: 20px 0;
    background-color: var(--light-bg);
    position: sticky;
    bottom: 0;
    z-index: 10;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.contact_input {
    flex: 1;
    font-family: inherit;
    font-size: 16px;
    padding: 16px 20px;
    background-color: #f5f5f5;
    color: var(--dark-text);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact_input:focus {
    outline: none;
    border-color: var(--accent);
    background-color: #fff;
}

.contact_input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.contact_input.input-error {
    border-color: #ff4444;
    background-color: #fff5f5;
    animation: shake 0.4s ease;
}

.contact_input.input-error::placeholder {
    color: #ff4444;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.contact_send_btn {
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact_send_btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Form */
.contact_form_container {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contact_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form_group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form_group label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dark-text);
    opacity: 0.6;
}

.form_group input,
.form_group textarea {
    font-family: inherit;
    font-size: 16px;
    padding: 14px 18px;
    background-color: #f5f5f5;
    color: var(--dark-text);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form_group input:focus,
.form_group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: #fff;
}

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

.contact_submit_btn {
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact_submit_btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

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

@media (max-width: 976px) {
    .contact_experience_container {
        padding: var(--section-padding-mob);
        min-height: 100svh;
    }

    .cont_title {
        font-size: 48px;
    }

    .contact_conversation {
        height: 75vh;
    }

    .header_cont {
        margin-bottom: 18px;
    }
}