/**
 * Paycre AI - Modern, Professional, Institutional Design
 * No emojis - Clean, trustworthy, premium
 * Version: 2.1 - Enhanced with property placeholders
 */

/* ========================================
   Reset & Base
   ======================================== */

:root {
    --color-primary: #1a2a6c;
    --color-primary-light: #2d4373;
    --color-primary-dark: #0f1a45;
    --color-secondary: #2c3e50;
    --color-accent: #c9a84c;
    --color-success: #2d7d46;
    --color-warning: #b8860b;
    --color-info: #2c6b8f;
    --color-danger: #a83232;
    
    --color-text: #1a1a1a;
    --color-text-secondary: #4a4a4a;
    --color-text-muted: #6c757d;
    
    --color-bg: #f7f8fa;
    --color-bg-white: #ffffff;
    --color-border: #e2e4e8;
    --color-border-light: #f0f1f3;
    --color-placeholder-bg: #f0f4f8;
    
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-size-xl: 24px;
    
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   Chatbot Container
   ======================================== */

.chatbot-main-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px 60px;
    min-height: 80vh;
}

#chatbot-container {
    width: 100%;
    max-width: 900px;
}

.chatbot-wrapper {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

/* ========================================
   Header
   ======================================== */

.chatbot-header {
    padding: 24px 32px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.chatbot-title h1 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0;
}

.chatbot-title .subtitle {
    font-size: var(--font-size-small);
    opacity: 0.8;
    margin: 4px 0 0;
    font-weight: 400;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-small);
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.status-text {
    font-weight: 500;
}

/* ========================================
   Messages Area
   ======================================== */

.chatbot-messages {
    height: 520px;
    overflow-y: auto;
    padding: 24px 28px;
    background: var(--color-bg);
    scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
    width: 5px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: var(--color-border-light);
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

/* ========================================
   Message Styles
   ======================================== */

.message {
    margin-bottom: 20px;
    display: flex;
    animation: fadeIn 0.4s ease-out;
}

.message.user {
    justify-content: flex-end;
}

.message.assistant {
    justify-content: flex-start;
}

.message-content {
    max-width: 85%;
    padding: 16px 22px;
    border-radius: var(--radius);
    line-height: 1.7;
    word-wrap: break-word;
    font-size: var(--font-size-base);
}

.message.user .message-content {
    background: var(--color-primary);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.message.assistant .message-content {
    background: var(--color-bg-white);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow);
}

/* Message content formatting */
.message-content p {
    margin: 0 0 10px 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul, 
.message-content ol {
    margin: 10px 0;
    padding-left: 24px;
}

.message-content li {
    margin-bottom: 6px;
}

.message-content h3 {
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--color-primary);
    margin: 18px 0 10px;
}

.message-content h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-primary);
    margin: 14px 0 8px;
}

.message-content strong {
    color: var(--color-primary-dark);
}

.message-content a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.message-content a:hover {
    border-bottom-color: var(--color-primary);
}

/* ========================================
   Typing Indicator
   ======================================== */

.typing-indicator .typing-dots {
    display: inline-flex;
    gap: 5px;
    padding: 4px 0;
}

.typing-indicator .typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--color-text-muted);
    border-radius: 50%;
    animation: typingDot 1.4s infinite both;
}

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

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

@keyframes typingDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

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

/* ========================================
   Property Cards - Enhanced with Placeholders
   ======================================== */

.property-search-results {
    margin: 12px 0;
}

.property-search-results h3 {
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 16px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.property-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.property-card-image {
    position: relative;
    height: 200px;
    background: var(--color-placeholder-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Placeholder */
.property-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #8a9ba8;
    background: linear-gradient(135deg, #f0f4f8, #e8edf2);
}

.property-card-placeholder .placeholder-icon {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.5;
    line-height: 1;
}

.property-card-placeholder .placeholder-text {
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 12px;
    color: #9aabb8;
}

/* Property Source Badge */
.property-source-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-primary);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.property-card-body {
    padding: 16px 20px;
    flex: 1;
}

.property-card-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--color-text);
    line-height: 1.3;
}

.property-card-location {
    color: var(--color-text-secondary);
    font-size: var(--font-size-small);
    margin-bottom: 6px;
}

.property-card-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary);
    margin: 6px 0;
}

.property-card-details {
    color: var(--color-text-secondary);
    font-size: 13px;
    margin: 4px 0;
}

.property-card-details span {
    display: inline-block;
    margin-right: 12px;
}

.property-card-details span:last-child {
    margin-right: 0;
}

.property-card-description {
    color: var(--color-text-muted);
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.5;
}

.property-card-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid var(--color-border-light);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Property Next Steps */
.property-next-steps {
    margin-top: 16px;
    padding: 16px 20px;
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.property-next-steps p {
    margin: 0 0 10px 0;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.property-next-steps ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.property-next-steps ul li {
    margin: 0;
}

.property-next-steps .btn {
    font-size: 13px;
    padding: 8px 16px;
}

/* ========================================
   Cost Calculator
   ======================================== */

.cost-calculator {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 12px 0;
}

.cost-title {
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border-light);
}

.cost-summary {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: var(--font-size-base);
}

.cost-row:last-child {
    border-bottom: none;
}

.cost-row .price {
    font-weight: 500;
}

.cost-row.total {
    font-weight: 700;
    font-size: var(--font-size-large);
    color: var(--color-primary);
    border-top: 2px solid var(--color-primary);
    padding-top: 10px;
    margin-top: 4px;
}

.cost-breakdown {
    margin: 8px 0 16px;
    padding: 12px 16px;
    background: var(--color-bg);
    border-radius: var(--radius);
}

.cost-note {
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
    padding-left: 20px;
    margin-bottom: 4px;
}

.cost-disclaimer {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fef8e7;
    border-left: 4px solid var(--color-warning);
    border-radius: 4px;
    font-size: var(--font-size-small);
    color: var(--color-text-secondary);
}

.cost-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ========================================
   Country Comparison
   ======================================== */

.country-comparison {
    margin: 12px 0;
}

.comparison-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 12px 0;
}

.comparison-card h4 {
    color: var(--color-primary);
    margin: 0 0 12px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-small);
}

.comparison-table th,
.comparison-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.comparison-table th {
    font-weight: 600;
    color: var(--color-text-secondary);
    background: var(--color-bg);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-advantage {
    margin-top: 10px;
    padding: 8px 14px;
    background: #e8f5e9;
    border-radius: 4px;
    font-size: var(--font-size-small);
    color: var(--color-success);
}

/* ========================================
   Country Info
   ======================================== */

.country-info {
    margin: 12px 0;
}

.country-info h3 {
    color: var(--color-primary);
    margin: 0 0 12px;
}

.info-section {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 10px 0;
}

.info-section h4 {
    color: var(--color-primary);
    margin: 0 0 10px;
    font-size: var(--font-size-base);
}

.info-section ul {
    margin: 0;
    padding-left: 20px;
}

.info-section ul li {
    margin-bottom: 6px;
    font-size: var(--font-size-small);
    line-height: 1.5;
}

.info-section ul li:last-child {
    margin-bottom: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: var(--font-size-small);
}

.info-row:last-child {
    border-bottom: none;
}

.visa-option {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.visa-option:last-child {
    border-bottom: none;
}

.visa-option strong {
    color: var(--color-primary);
}

.visa-option p {
    margin: 4px 0 0;
    font-size: var(--font-size-small);
    color: var(--color-text-secondary);
}

.info-disclaimer {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fef8e7;
    border-radius: 4px;
    font-size: var(--font-size-small);
    color: var(--color-text-secondary);
    border-left: 3px solid var(--color-warning);
}

/* ========================================
   Transaction Timeline
   ======================================== */

.transaction-timeline {
    margin: 16px 0;
    padding: 4px 0;
}

.timeline-stage {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    position: relative;
}

.timeline-stage:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-stage.completed:not(:last-child)::after {
    background: var(--color-success);
}

.timeline-marker {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-small);
    font-weight: 600;
    z-index: 1;
}

.timeline-stage.completed .timeline-marker {
    background: var(--color-success);
    color: #ffffff;
}

.timeline-stage.active .timeline-marker {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(26, 42, 108, 0.2);
}

.timeline-stage.future .timeline-marker {
    background: var(--color-border);
    color: var(--color-text-muted);
}

.timeline-stage.future .timeline-marker .marker-number {
    font-size: 12px;
}

.timeline-content {
    flex: 1;
    padding-top: 2px;
}

.timeline-stage-name {
    font-weight: 500;
    font-size: var(--font-size-base);
}

.timeline-stage-status {
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
}

.timeline-stage-status.completed {
    color: var(--color-success);
}

.timeline-stage-status.future {
    color: var(--color-text-muted);
}

/* ========================================
   Transaction Guidance
   ======================================== */

.transaction-guidance {
    margin: 12px 0;
}

.transaction-guidance h3 {
    color: var(--color-primary);
    margin: 0 0 12px;
}

.progress-bar {
    background: var(--color-border-light);
    border-radius: 20px;
    height: 24px;
    position: relative;
    overflow: hidden;
    margin: 8px 0 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 20px;
    transition: width 0.6s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--font-size-small);
    font-weight: 600;
    color: var(--color-text);
}

.current-stage {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 12px 0;
}

.current-stage h4 {
    color: var(--color-primary);
    margin: 0 0 8px;
}

.current-stage p {
    margin: 4px 0;
    font-size: var(--font-size-base);
}

.current-stage strong {
    color: var(--color-primary);
}

/* ========================================
   Transaction Progress Mini
   ======================================== */

.transaction-progress-mini {
    margin: 12px 0 8px;
    padding: 10px 16px;
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    font-size: var(--font-size-small);
    color: var(--color-text-secondary);
}

.transaction-progress-mini p {
    margin: 2px 0;
}

/* ========================================
   Next Steps
   ======================================== */

.next-steps {
    margin-top: 16px;
    padding: 16px 20px;
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.next-steps h4 {
    margin: 0 0 12px;
    color: var(--color-primary);
    font-size: var(--font-size-base);
}

.next-steps-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-size-small);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    font-family: var(--font-family);
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--color-border-light);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-border);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--color-success);
    color: #ffffff;
}

.btn-success:hover {
    background: #1e6b3a;
    transform: translateY(-1px);
}

/* ========================================
   Input Area
   ======================================== */

.chatbot-input-area {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-white);
}

.chatbot-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

#chatInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    resize: none;
    min-height: 52px;
    max-height: 120px;
    transition: var(--transition);
    line-height: 1.5;
}

#chatInput:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1);
}

#chatInput::placeholder {
    color: var(--color-text-muted);
}

.send-btn {
    padding: 12px 28px;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    white-space: nowrap;
    align-self: flex-end;
    min-height: 52px;
}

.send-btn:hover {
    background: var(--color-primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.send-btn:disabled {
    background: var(--color-border);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.chatbot-input-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
}

/* ========================================
   Modal (Registration/Login)
   ======================================== */

.registration-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.registration-modal.active {
    display: flex;
}

.registration-modal-content {
    background: var(--color-bg-white);
    padding: 32px 36px;
    border-radius: var(--radius-lg);
    max-width: 420px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.registration-modal-content h2 {
    margin: 0 0 4px;
    color: var(--color-primary);
    font-size: var(--font-size-xl);
}

.registration-modal-content p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-small);
    margin: 0 0 16px;
}

.registration-modal-content input {
    width: 100%;
    padding: 10px 14px;
    margin: 8px 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: var(--transition);
    box-sizing: border-box;
}

.registration-modal-content input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1);
}

.registration-modal-content button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    font-family: var(--font-family);
}

.registration-modal-content button[type="submit"]:hover {
    background: var(--color-primary-light);
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    color: var(--color-text-muted);
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: var(--color-text);
}

.modal-divider {
    text-align: center;
    margin: 14px 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-small);
    position: relative;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--color-border);
}

.modal-divider::before {
    left: 0;
}

.modal-divider::after {
    right: 0;
}

.btn-secondary-modal {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    cursor: pointer;
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: var(--transition);
    color: var(--color-text);
}

.btn-secondary-modal:hover {
    background: var(--color-border-light);
}

/* ========================================
   Legal Advice Styling
   ======================================== */

.legal-advice {
    margin-bottom: 12px;
}

.legal-advice h4 {
    margin: 14px 0 8px;
    color: var(--color-primary);
    font-size: var(--font-size-base);
}

.legal-advice ul {
    margin: 8px 0;
    padding-left: 22px;
}

.legal-advice li {
    margin-bottom: 4px;
}

/* ========================================
   Error States
   ======================================== */

.error-message {
    color: var(--color-danger);
    background: #fdf2f2;
    border: 1px solid #f5c6c6;
    border-radius: var(--radius);
    padding: 12px 16px;
    margin: 8px 0;
    font-size: var(--font-size-small);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .chatbot-main-wrapper {
        padding: 20px 12px 40px;
    }
    
    .chatbot-header {
        padding: 16px 20px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .chatbot-title h1 {
        font-size: 20px;
    }
    
    .chatbot-messages {
        height: 380px;
        padding: 16px;
    }
    
    .message-content {
        max-width: 92%;
        font-size: var(--font-size-base);
        padding: 12px 16px;
    }
    
    .chatbot-input-area {
        padding: 12px 16px 16px;
    }
    
    .chatbot-input-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .send-btn {
        width: 100%;
        min-height: 44px;
    }
    
    #chatInput {
        min-height: 44px;
    }
    
    .next-steps-buttons {
        flex-direction: column;
    }
    
    .next-steps-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .registration-modal-content {
        padding: 24px 20px;
        margin: 16px;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .property-card-image {
        height: 160px;
    }
    
    .property-card-price {
        font-size: 20px;
    }
    
    .property-next-steps ul {
        flex-direction: column;
    }
    
    .property-next-steps .btn {
        width: 100%;
        text-align: center;
    }
    
    .cost-summary {
        padding: 12px 14px;
    }
    
    .comparison-table {
        font-size: 12px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 6px 8px;
    }
    
    .timeline-stage {
        gap: 12px;
        padding: 8px 0;
    }
    
    .timeline-marker {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .timeline-stage:not(:last-child)::after {
        left: 13px;
        top: 32px;
    }
}

@media (max-width: 480px) {
    .chatbot-messages {
        height: 320px;
        padding: 12px;
    }
    
    .message-content {
        max-width: 96%;
        font-size: 15px;
        padding: 10px 14px;
    }
    
    .property-card-title {
        font-size: 15px;
    }
    
    .property-card-price {
        font-size: 18px;
    }
    
    .cost-row.total {
        font-size: var(--font-size-base);
    }
}

/* ========================================
   Utilities
   ======================================== */

.text-muted {
    color: var(--color-text-muted);
}

.text-primary {
    color: var(--color-primary);
}

.text-success {
    color: var(--color-success);
}

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

/* ========================================
   Loading States
   ======================================== */

.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: var(--color-text-muted);
    border-radius: 50%;
    animation: loadingDot 1.2s infinite both;
}

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

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

@keyframes loadingDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}