@media only screen and (max-width: 350px) {
    h1 { font-size: 22px; }
    .container, header { width: 100%; padding: 0 10px; }
    .qa-container { margin: 10px; }
    .qa-item { padding: 15px; }
    .question {
        flex-direction: column;
    }
}

body {
    margin: 0;
    background: linear-gradient(to bottom, #fff5f7, #ffffff);
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    font-family: Montserrat, sans-serif;
    font-size: 85%;
    box-sizing: border-box;
    padding: 120px 10px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 16px 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

header {
    width: 95%;
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.header-image {
    display: block;
    height: auto;
    width: 300px;
    margin: 0 auto;
    padding: 10px 0;
}

.verification-badge {
    width: 22px;
    height: 22px;
    margin-left: 6px;
}

.image-container {
    height: 128px;
    width: 128px;
    border-radius: 96px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

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

.location-badge {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    margin: 8px 0 0 0;
    display: inline-block;
    letter-spacing: 0.2px;
}

.insta-message {
    background: #f8f9fa;
    color: #495057;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 20px 0 24px 0;
    font-size: 0.95em;
    text-align: center;
    border: 1px solid #e9ecef;
}

.qa-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 24px 0 20px 0;
    text-align: center;
}

/* Q&A specific styles */
.qa-container {
    max-width: 600px;
    margin: 20px auto;
    text-align: left;
    width: 100%;
}

.qa-item {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    background-color: #fafafa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.question-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.question {
    font-weight: bold;
    color: #333;
    font-size: 17px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.asked-by {
    font-size: 12px;
    font-weight: normal;
    color: #999;
    font-style: italic;
    margin-top: 4px;
    white-space: nowrap;
}

.answer {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-left: 44px; /* Align with question text, accounting for avatar */
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.loading-content p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* Main content fade-in animation */
.content-wrapper {
    animation: fadeIn 0.8s ease-in;
}

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

/* Instagram CTA Button Styles */
.instagram-cta {
    margin: 40px 0 20px 0;
    text-align: center;
}

.cta-header {
    margin-bottom: 12px;
}

.urgency-text {
    color: #dc2626;
    font-weight: 700;
    font-size: 16px;
    animation: blink 1.5s infinite;
}

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

.instagram-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-decoration: none;
    padding: 18px 36px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
    border: none;
    cursor: pointer;
    min-width: 250px;
    position: relative;
    overflow: hidden;
}

.instagram-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.instagram-button:hover::before {
    left: 100%;
}

.instagram-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.5);
    text-decoration: none;
    color: white;
}

.instagram-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}

.cta-footer {
    margin-top: 12px;
}

.typing-indicator {
    color: #666;
    font-size: 14px;
    font-style: italic;
    animation: typing 2s infinite;
}

@keyframes typing {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.instagram-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Mobile responsiveness for Instagram button */
@media only screen and (max-width: 480px) {
    .instagram-button {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 180px;
    }
    
    .instagram-icon {
        width: 18px;
        height: 18px;
    }
}

/* Social Proof Stats */
.social-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 12px 0 16px 0;
    flex-wrap: wrap;
}

.follower-count, .engagement-rate, .online-status {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.online-status {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    animation: pulse 2s infinite;
}

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

/* Floating Action Button */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

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

.floating-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #dc2743, #bc1888);
    color: white;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.floating-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(220, 39, 67, 0.5);
    text-decoration: none;
    color: white;
}

.floating-icon {
    width: 20px;
    height: 20px;
}

.floating-text {
    white-space: nowrap;
}

/* Mobile responsiveness for floating button */
@media only screen and (max-width: 768px) {
    .floating-cta {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-button {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .floating-text {
        display: none;
    }
    
    .floating-button {
        border-radius: 50%;
        width: 56px;
        height: 56px;
        justify-content: center;
    }
}

#mainContent .qa-container {
  visibility: hidden;
}
#mainContent.ready .qa-container {
  visibility: visible;
}