/* AI Chat Component Styles - Modern & Sophisticated */

/* Goedly Brand Colors */
:root {
    --business-primary: #086E92;
    --business-secondary: #E4E264;
    --business-accent: #58B748;
}

.ai-chat-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    pointer-events: none;
}

.ai-chat-container.active {
    pointer-events: auto;
}

/* Backdrop with blur */
.ai-chat-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.ai-chat-container.active .ai-chat-backdrop {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
}

/* Main Chat Panel - No box, just content */
.ai-chat-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.ai-chat-container.active .ai-chat-panel {
    pointer-events: auto;
}

/* Close button - Floating top right */
.ai-chat-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.4s ease-out 0.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.ai-chat-close:hover {
    background: rgba(255, 255, 255, 1);
    color: #334155;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.ai-chat-close i {
    width: 20px;
    height: 20px;
}

/* Credits display - Floating top left */
.ai-chat-credits {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    font-size: 13px;
    color: var(--business-primary);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.4s ease-out 0.3s forwards;
}

.ai-chat-credits i {
    width: 14px;
    height: 14px;
}

/* Messages Area - Push from bottom */
.ai-chat-messages {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 120px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.ai-chat-messages::-webkit-scrollbar {
    width: 0;
    display: none;
}

/* Inner container for messages */
.ai-chat-messages-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 0 20px;
}

/* Message Styles - Solid and sophisticated */
.ai-chat-message {
    width: 100%;
    max-width: 700px;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: messageIn 0.4s ease-out forwards;
}

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

.ai-chat-message-assistant {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

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

.ai-chat-message-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--business-primary) 0%, var(--business-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(8, 110, 146, 0.25);
}

.ai-chat-message-avatar i {
    width: 16px;
    height: 16px;
}

.ai-chat-message-content {
    flex: 1;
    max-width: 100%;
}

.ai-chat-message-bubble {
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ai-chat-message-assistant .ai-chat-message-bubble {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06),
                0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.ai-chat-message-user .ai-chat-message-bubble {
    background: linear-gradient(135deg, var(--business-primary) 0%, var(--business-accent) 100%);
    color: white;
    box-shadow: 0 4px 24px rgba(8, 110, 146, 0.25),
                0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    margin-left: auto;
}

/* Add subtle animation to assistant messages */
.ai-chat-message-assistant .ai-chat-message-bubble::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--business-primary), var(--business-accent));
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
}

.ai-chat-message-assistant:hover .ai-chat-message-bubble::before {
    opacity: 0.1;
}

/* Typing Indicator - Centered and elegant */
.ai-chat-typing {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 20px;
    padding: 0 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ai-chat-typing-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--business-primary) 0%, var(--business-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(8, 110, 146, 0.25);
}

.ai-chat-typing-avatar i {
    width: 16px;
    height: 16px;
}

.ai-chat-typing-dots {
    display: flex;
    gap: 6px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06),
                0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ai-chat-typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--business-primary), var(--business-accent));
    animation: typing-dot 1.4s infinite;
}

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

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

@keyframes typing-dot {
    0%, 60%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-12px) scale(1.2);
        opacity: 1;
    }
}

/* Input Area - Fixed at bottom, fancy like landing page */
.ai-chat-input-area {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    padding: 20px;
    z-index: 100;
}

/* Magic glow effect container */
.ai-chat-input-area::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -50%;
    right: -50%;
    height: 200px;
    background: radial-gradient(ellipse at center bottom, 
                rgba(8, 110, 146, 0.15) 0%, 
                rgba(88, 183, 72, 0.1) 25%,
                transparent 70%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Dropzone - Glassmorphic */
.ai-chat-dropzone {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    height: 150px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px dashed rgba(8, 110, 146, 0.5);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--business-primary);
    z-index: 10;
    box-shadow: 0 8px 32px rgba(8, 110, 146, 0.15);
}

.ai-chat-dropzone i {
    width: 40px;
    height: 40px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ai-chat-dropzone p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--business-primary), var(--business-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Attachments - Floating pills */
.ai-chat-attachments {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 12px;
}

.ai-chat-attachment {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 24px;
    font-size: 13px;
    color: #334155;
    max-width: 250px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: slideUp 0.3s ease-out;
}

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

.ai-chat-attachment i {
    width: 16px;
    height: 16px;
    color: var(--business-primary);
    flex-shrink: 0;
}

.ai-chat-attachment-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.ai-chat-attachment-size {
    color: #94a3b8;
    font-size: 11px;
}

.ai-chat-attachment-remove {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.ai-chat-attachment-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

.ai-chat-attachment-remove i {
    width: 12px;
    height: 12px;
}

/* Input Bar - Fancy glassmorphic design */
.ai-chat-input-bar {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    animation: inputSlideUp 0.4s ease-out;
    isolation: isolate; /* Create stacking context to contain pseudo-elements */
}

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

/* Animated gradient border */
.ai-chat-input-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
                transparent,
                rgba(8, 110, 146, 0.3),
                rgba(88, 183, 72, 0.3),
                rgba(88, 183, 72, 0.3),
                transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    animation: gradientMove 3s linear infinite;
    border-radius: 24px; /* Match parent border radius */
    z-index: 0;
}

@keyframes gradientMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ai-chat-input-bar:focus-within::before {
    opacity: 1;
}

.ai-chat-attach {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: rgba(241, 245, 249, 0.8);
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    position: relative;
    z-index: 1; /* Above the gradient animation */
}

.ai-chat-attach:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(8, 110, 146, 0.1), rgba(88, 183, 72, 0.1));
    color: var(--business-primary);
    transform: scale(1.05);
}

.ai-chat-attach:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-chat-attach i {
    width: 20px;
    height: 20px;
}

.ai-chat-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.ai-chat-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    line-height: 1.5;
    resize: none;
    outline: none;
    padding: 8px 12px;
    min-height: 24px;
    max-height: 120px;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    color: #1e293b;
}

.ai-chat-input::-webkit-scrollbar {
    width: 0;
    display: none;
}

.ai-chat-input::placeholder {
    color: #94a3b8;
}

.ai-chat-send {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--business-primary) 0%, var(--business-accent) 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.ai-chat-send::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s;
}

.ai-chat-send:hover:not(:disabled)::before {
    transform: translate(-50%, -50%) scale(2);
}

.ai-chat-send:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(8, 110, 146, 0.4);
}

.ai-chat-send:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #e2e8f0;
}

.ai-chat-send i {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-chat-messages {
        padding: 70px 0 20px;
    }
    
    .ai-chat-messages-inner {
        padding: 0 16px;
    }
    
    .ai-chat-message {
        max-width: 100%;
    }
    
    .ai-chat-input-area {
        width: 100%;
        padding: 16px;
    }
    
    .ai-chat-input-bar {
        border-radius: 20px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .ai-chat-credits {
        font-size: 11px;
        padding: 6px 10px;
        top: 15px;
        left: 15px;
    }
    
    .ai-chat-close {
        width: 36px;
        height: 36px;
        top: 15px;
        right: 15px;
    }
    
    .ai-chat-message-bubble {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .ai-chat-input {
        font-size: 14px;
    }
    
    .ai-chat-messages {
        bottom: 90px;
    }
}

/* Special Message Types */

/* Option Cards */
.ai-chat-message-options {
    width: 100%;
    max-width: 700px;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: messageIn 0.4s ease-out forwards;
}

.ai-chat-options-container {
    width: 100%;
}

.options-prompt {
    text-align: center;
    color: #475569;
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: 500;
}

.ai-chat-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.ai-chat-option-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(226, 232, 240, 0.5);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}

.ai-chat-option-card:hover {
    border-color: rgba(8, 110, 146, 0.5);
    background: rgba(8, 110, 146, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 110, 146, 0.15);
}

.ai-chat-option-card:active {
    transform: translateY(0);
}

.ai-chat-option-card.selected {
    border-color: var(--business-primary);
    background: linear-gradient(135deg, rgba(8, 110, 146, 0.1), rgba(88, 183, 72, 0.05));
    box-shadow: 0 8px 24px rgba(8, 110, 146, 0.2);
}

.option-icon {
    width: 32px;
    height: 32px;
    color: var(--business-primary);
    margin-bottom: 12px;
}

.option-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.option-description {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Form Input */
.ai-chat-message-form {
    width: 100%;
    max-width: 700px;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: messageIn 0.4s ease-out forwards;
}

.ai-chat-form-container {
    width: 100%;
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.form-prompt {
    color: #475569;
    font-size: 15px;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.ai-chat-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    padding: 12px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #1e293b;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--business-primary);
    box-shadow: 0 0 0 3px rgba(8, 110, 146, 0.1);
}

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

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.form-actions .btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.form-actions .btn-primary {
    background: linear-gradient(135deg, var(--business-primary) 0%, var(--business-accent) 100%);
    color: white;
}

.form-actions .btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(8, 110, 146, 0.4);
}

.form-actions .btn-secondary {
    background: #f1f5f9;
    color: #64748b;
}

.form-actions .btn-secondary:hover {
    background: #e2e8f0;
}

/* Consent Form */
.ai-chat-message-consent {
    width: 100%;
    max-width: 700px;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: messageIn 0.4s ease-out forwards;
}

.ai-chat-consent-container {
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.consent-icon {
    display: none;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.consent-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.consent-label {
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    user-select: none;
    line-height: 1.5;
}

.consent-label a {
    color: var(--business-primary);
    text-decoration: none;
}

.consent-label a:hover {
    text-decoration: underline;
}

.consent-actions {
    display: flex;
    justify-content: center;
}

.consent-actions .btn {
    width: 100%;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, var(--business-primary) 0%, var(--business-accent) 100%);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.consent-actions .btn i {
    width: 16px;
    height: 16px;
}

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

.consent-actions .btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(8, 110, 146, 0.4);
}

/* Subdomain Selection */
.ai-chat-message-subdomain {
    width: 100%;
    max-width: 700px;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: messageIn 0.4s ease-out forwards;
}

.ai-chat-subdomain-container {
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.subdomain-label {
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e293b;
    font-size: 15px;
}

.subdomain-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    background: white;
}

.subdomain-input-wrapper:focus-within {
    border-color: var(--business-primary);
    box-shadow: 0 0 0 3px rgba(8, 110, 146, 0.1);
}

.subdomain-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 15px;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.subdomain-suffix {
    padding: 12px 16px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
    border-left: 1px solid #e2e8f0;
    white-space: nowrap;
}

.subdomain-feedback {
    margin-top: 8px;
    font-size: 13px;
    min-height: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    transition: all 0.2s ease;
}

.subdomain-feedback i {
    width: 14px;
    height: 14px;
}

.subdomain-feedback.valid {
    color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.subdomain-feedback.invalid {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.subdomain-feedback.checking {
    color: #64748b;
    background: rgba(100, 116, 139, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.subdomain-preview {
    margin-top: 12px;
    padding: 12px;
    background: rgba(8, 110, 146, 0.05);
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
}

.subdomain-note {
    font-size: 13px;
    color: #64748b;
    margin: 12px 0 16px 0;
    line-height: 1.5;
}

/* Responsive adjustments for special messages */
@media (max-width: 768px) {
    .ai-chat-options-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-chat-form-container,
    .ai-chat-consent-container,
    .ai-chat-subdomain-container {
        padding: 20px;
    }
    
    .subdomain-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .subdomain-suffix {
        border-left: none;
        border-top: 1px solid #e2e8f0;
        text-align: center;
        padding: 8px 16px;
    }
}

/* Dark mode support (future) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here when needed */
}