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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #000000;
}

/* Countdown Banner */
.countdown-banner {
    background-color: #ff0000;
    color: #ffffff;
    padding: 15px 0;
    text-align: center;
}

.banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.banner-text {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.6px;
    text-transform: none;
}

.countdown-timer {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-family: 'Courier New', monospace;
}

/* Main Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Headline Banner */
.headline-banner {
    background-color: #ffffff;
    padding: 30px 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 5px solid #ff0000;
}

.main-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: #000000;
    line-height: 1.3;
}

.subtitle {
    text-align: center;
    font-size: 15px;
    color: #ff0000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Chat Container */
.chat-container {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 0;
    min-height: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

/* Chat Header */
.chat-header {
    background-color: #f8f8f8;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.agent-info {
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-weight: 600;
    font-size: 16px;
    color: #000000;
}

.agent-status {
    font-size: 13px;
    color: #666;
}

.messages {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    min-height: 350px;
    max-height: 600px;
    overflow-y: auto;
}

/* iPhone-style Message Bubbles */
.message {
    display: flex;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    60% {
        transform: translateY(-2px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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

.message-bubble {
    max-width: 75%;
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 17px;
    line-height: 1.5;
    word-wrap: break-word;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.message.incoming .message-bubble {
    background-color: #e9e9eb;
    color: #000000;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message.outgoing .message-bubble {
    background: linear-gradient(135deg, #0084ff, #0066ff);
    color: #ffffff;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

/* Answer Buttons - Now Inline */
.answer-buttons {
    display: none;
}

.inline-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 16px 0;
    padding: 0 12px;
    animation: slideIn 0.4s ease-out;
}

.answer-btn {
    background: linear-gradient(135deg, #0084ff 0%, #0066ff 100%);
    border: none;
    color: #ffffff;
    padding: 18px 28px;
    border-radius: 16px;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 132, 255, 0.3), 
                0 2px 8px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.answer-btn::before {
    content: '✓';
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.answer-btn::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 20px;
    color: #ffffff;
}

.answer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 132, 255, 0.4), 
                0 4px 12px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #0091ff 0%, #0073ff 100%);
}

.answer-btn:hover::before {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.answer-btn:hover::after {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

.answer-btn:active {
    background: linear-gradient(135deg, #0066ff 0%, #0051d5 100%);
    color: #ffffff;
    transform: scale(0.98) translateY(0);
    box-shadow: 0 2px 12px rgba(0, 122, 255, 0.5),
                inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.answer-btn:active::before {
    transform: scale(0.9);
}

.answer-btn:active::after {
    color: #ffffff;
}

/* State Picker Container */
.state-picker-container {
    margin: 16px 0;
    padding: 0;
    animation: slideIn 0.4s ease-out;
}

.state-picker-list {
    max-height: 400px;
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: 16px;
    border: 2px solid #e8e8e8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.state-picker-list::-webkit-scrollbar {
    width: 12px;
}

.state-picker-list::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.state-picker-list::-webkit-scrollbar-thumb {
    background: #0084ff;
    border-radius: 6px;
    border: 3px solid #f5f5f5;
}

.state-picker-list::-webkit-scrollbar-thumb:hover {
    background: #0066ff;
}

.state-picker-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.state-picker-item:last-child {
    border-bottom: none;
}

.state-picker-item:hover {
    background-color: #f8f9ff;
    padding-left: 24px;
}

.state-picker-item:active {
    background-color: #e8f0ff;
}

.state-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.state-name {
    flex: 1;
    font-size: 17px;
    font-weight: 500;
    color: #1a1a1a;
}

.state-arrow {
    font-size: 24px;
    color: #0084ff;
    font-weight: 300;
}

/* Negative Answer Button (Red) */
.answer-btn.negative-answer {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    box-shadow: 0 4px 16px rgba(255, 68, 68, 0.3), 
                0 2px 8px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.answer-btn.negative-answer::before {
    content: '✕';
    font-size: 22px;
}

.answer-btn.negative-answer:hover {
    background: linear-gradient(135deg, #ff5555 0%, #dd0000 100%);
    box-shadow: 0 8px 24px rgba(255, 68, 68, 0.4), 
                0 4px 12px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.answer-btn.negative-answer:active {
    background: linear-gradient(135deg, #cc0000 0%, #aa0000 100%);
    box-shadow: 0 2px 12px rgba(255, 68, 68, 0.5),
                inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 16px 20px;
    background-color: #e9e9eb;
    border-radius: 20px;
    border-bottom-left-radius: 5px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.typing-dot {
    width: 10px;
    height: 10px;
    background-color: #8e8e93;
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

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

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

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

/* Processing Animation with Loading Bar */
.processing-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 30px;
    animation: fadeIn 0.4s ease-out;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

.processing-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0084ff, #0066ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ffffff;
    animation: scaleIn 0.5s ease-out;
    box-shadow: 0 4px 20px rgba(0, 132, 255, 0.3);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.processing-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.loading-bar-container {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background-color: #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0084ff, #00c6ff);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 132, 255, 0.5);
    position: relative;
}

.loading-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: shimmer 1.5s infinite;
}

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

.processing-status {
    font-size: 15px;
    color: #666;
    font-weight: 500;
    min-height: 20px;
    transition: all 0.3s ease;
}

/* Final Screen */
.final-screen {
    text-align: center;
    padding: 40px 20px;
}

.congratulations {
    animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    60% {
        transform: scale(1.02) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.congratulations h2 {
    font-size: 36px;
    color: #000000;
    margin-bottom: 15px;
}

.congratulations p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.qualify-text {
    font-size: 20px !important;
    font-weight: 600;
    color: #333 !important;
}

/* Info Points */
.info-points {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.info-item {
    font-size: 16px;
    font-weight: 500;
    color: #2e7d32;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Agents Available Indicator */
.agents-available {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    padding: 12px 24px;
    background-color: #e8f5e9;
    border-radius: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.status-dot {
    width: 12px;
    height: 12px;
    background-color: #4caf50;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.status-text {
    font-size: 16px;
    font-weight: 600;
    color: #2e7d32;
    letter-spacing: 0.3px;
}

.call-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(145deg, #ffd700, #ffed4e);
    color: #000000;
    padding: 22px 50px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s ease-in-out infinite;
    margin-bottom: 25px;
    max-width: 100%;
    white-space: nowrap;
}

.call-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.call-button:active::before {
    width: 400px;
    height: 400px;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 12px 32px rgba(255, 215, 0, 0.6), 0 6px 16px rgba(0, 0, 0, 0.15);
    }
}

.call-button:active {
    transform: scale(0.96);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.call-icon {
    font-size: 24px;
    flex-shrink: 0;
}

#phoneNumberDisplay {
    white-space: nowrap;
}

/* Countdown Urgency */
.countdown-urgency {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff5f5;
    border-radius: 16px;
    border: 2px solid #ffebee;
}

.urgency-text {
    font-size: 16px;
    font-weight: 600;
    color: #ff0000;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.urgency-timer {
    font-size: 32px;
    font-weight: 700;
    color: #ff0000;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(255, 0, 0, 0.2);
    animation: timer-pulse 1s ease-in-out infinite;
}

.final-disclaimer {
    font-size: 15px;
    color: #666;
    margin-top: 20px;
    line-height: 1.5;
    font-style: italic;
}

@keyframes timer-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Footer */
.footer {
    margin-top: 400px;
    background-color: #f5f5f5;
    padding: 50px 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-disclaimer {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-link {
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #0084ff;
    text-decoration: underline;
}

.footer-divider {
    color: #ccc;
    font-size: 13px;
}

.footer-copyright {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

/* Social Proof Notification */
.social-proof-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 350px;
    opacity: 0;
    transform: translateX(-100px);
    pointer-events: none;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e8e8e8;
}

.social-proof-notification.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.social-proof-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.social-proof-content {
    flex: 1;
}

.social-proof-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.social-proof-location {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.social-proof-message {
    font-size: 13px;
    color: #2e7d32;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 10px;
    }

    .main-title {
        font-size: 22px;
    }

    .headline-banner {
        padding: 20px 15px;
    }

    .message-bubble {
        max-width: 85%;
        font-size: 18px;
        padding: 18px 22px;
    }
    
    .chat-container {
        border-radius: 20px;
    }

    .countdown-timer {
        font-size: 18px;
    }

    .banner-text {
        font-size: 14px;
        text-align: center;
    }

    .answer-btn {
        font-size: 18px;
        padding: 20px 28px;
        gap: 12px;
    }
    
    .answer-btn::before {
        width: 32px;
        height: 32px;
        font-size: 22px;
    }
    
    .answer-btn::after {
        right: 16px;
        font-size: 22px;
    }
    
    .state-picker-list {
        max-height: 350px;
    }
    
    .state-picker-item {
        padding: 18px 16px;
    }
    
    .state-name {
        font-size: 18px;
    }

    .agent-name {
        font-size: 15px;
    }

    .agent-status {
        font-size: 12px;
    }
    
    .congratulations h2 {
        font-size: 30px;
    }
    
    .congratulations p {
        font-size: 16px;
    }
    
    .qualify-text {
        font-size: 18px !important;
    }
    
    .agents-available {
        padding: 10px 20px;
    }
    
    .status-text {
        font-size: 15px;
    }
    
    .info-points {
        padding: 16px;
    }
    
    .info-item {
        font-size: 15px;
    }
    
    .urgency-text {
        font-size: 14px;
    }
    
    .urgency-timer {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .final-disclaimer {
        font-size: 14px;
    }
    
    .call-button {
        font-size: 18px;
        padding: 20px 35px;
        flex-wrap: nowrap;
    }
    
    .call-icon {
        font-size: 22px;
    }
    
    .processing-animation {
        padding: 30px 20px;
    }
    
    .processing-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .processing-title {
        font-size: 18px;
    }
    
    .loading-bar-container {
        max-width: 300px;
    }
    
    .processing-status {
        font-size: 14px;
    }
    
    .social-proof-notification {
        left: 10px;
        bottom: 10px;
        max-width: 320px;
        padding: 14px 16px;
    }
    
    .social-proof-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .social-proof-name {
        font-size: 14px;
    }
    
    .social-proof-location {
        font-size: 12px;
    }
    
    .social-proof-message {
        font-size: 12px;
    }
    
    .footer {
        margin-top: 300px;
        padding: 40px 15px;
    }
    
    .footer-disclaimer {
        font-size: 12px;
    }
    
    .footer-links {
        gap: 10px;
    }
    
    .footer-link {
        font-size: 12px;
    }
    
    .footer-divider {
        font-size: 12px;
    }
}

