* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #10f585 0%, #0eb563 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    color: white;
    margin-bottom: 40px;
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-text {
    flex: 1;
    text-align: left;
}

.header-image {
    flex: 0 0 auto;
    max-width: 400px;
}

.header-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    border: 3px solid rgba(255,255,255,0.2);
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    font-weight: 700;
    letter-spacing: -0.5px;
}

header h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    font-weight: 300;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: start;
}

.chat-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    height: 600px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.5);
}

.chat-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.chat-header h3 {
    color: #333;
    margin-bottom: 5px;
}

.chat-header p {
    color: #666;
    font-size: 0.9rem;
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
}

.agent-message {
    background: #f0f2f5;
    align-self: flex-start;
    color: #333;
}

.user-message {
    background: #10f585;
    color: white;
    align-self: flex-end;
}

.chat-input-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

#chatInput {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
}

#chatInput:focus {
    border-color: #10f585;
}

#sendBtn {
    padding: 12px 20px;
    background: #10f585;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

#sendBtn:hover {
    background: #0eb563;
}

.form-section {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.5);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    background: white;
    border-color: #cbd5e0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #10f585;
}

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

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.rating-scale {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rating-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rating-inputs input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.rating-inputs label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #10f585 0%, #0eb563 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 245, 133, 0.4);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-style: italic;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #10f585;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
        min-height: 100vh;
        background: linear-gradient(135deg, #10f585 0%, #0eb563 50%);
        background-attachment: fixed;
    }
    
    .container {
        padding: 0;
        max-width: 100%;
        background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.1) 30%, white 30%);
        min-height: 100vh;
    }
    
    header {
        margin-bottom: 10px;
        padding: 15px 10px;
        background: transparent;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-text {
        text-align: center;
    }
    
    .header-image {
        max-width: 100%;
        width: 100%;
    }
    
    .header-image img {
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    header h1 {
        font-size: 1.25rem;
        margin-bottom: 4px;
        line-height: 1.1;
        font-weight: 600;
    }
    
    header h2 {
        font-size: 1rem;
        margin-bottom: 6px;
        line-height: 1.1;
        font-weight: 500;
    }
    
    .subtitle {
        font-size: 0.82rem;
        padding: 0 8px;
        line-height: 1.3;
        opacity: 0.95;
    }
    
    .main-content {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    .chat-section {
        height: auto;
        min-height: 300px;
        max-height: 40vh;
        padding: 12px;
        margin: 0 10px 15px 10px;
        border-radius: 12px;
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .chat-header h3 {
        font-size: 1.1rem;
    }
    
    .chat-header p {
        font-size: 0.85rem;
    }
    
    .chat-container {
        max-height: 180px;
        min-height: 120px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .chat-message {
        max-width: 90%;
        padding: 8px 12px;
        font-size: 0.88rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .chat-input-container {
        padding-top: 10px;
        margin-top: 10px;
    }
    
    #chatInput {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    #sendBtn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .form-section {
        padding: 20px 15px;
        margin: 0 10px;
        background: white;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .form-group small {
        font-size: 0.8rem;
    }
    
    .rating-scale {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .rating-scale > span {
        font-size: 0.85rem;
    }
    
    .rating-inputs {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        justify-content: space-between;
    }
    
    .rating-inputs label {
        font-size: 0.9rem;
        padding: 2px 4px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 1rem;
    }
}

.highlight {
    background-color: #fff3cd !important;
    border-color: #ffa000 !important;
    transition: all 0.3s ease;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
}