/* ============================================
   TAX RELIEF EXPERTS - CHAT PAGE STYLES
   Based on Design Analysis
   ============================================ */

/* CSS Variables */
:root {
    --primary-blue: #0273c5;
    --primary-blue-hover: #0264ac;
    --accent-yellow: #eac344;
    --text-primary: #11181c;
    --text-secondary: #494949;
    --text-light: #888;
    --text-input: #636363;
    --bg-white: #fff;
    --bg-light: #f6f6f6;
    --bg-section: #f5f5f5;
    --bg-footer: #11181c;
    --error-red: #ed1f24;
    --focus-ring: #0273C5;
    --border-gray: #707070;
    --chat-bubble-user: #0273c5;
    --chat-bubble-agent: #e5e5e5;
    --chat-text-agent: #11181c;
    --chat-text-user: #fff;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Poppins, sans-serif;
    overflow-x: hidden;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.4;
    /* Prevent zoom on input focus on iOS */
    -webkit-text-size-adjust: 100%;
}

/* Ensure proper viewport handling on mobile */
@supports (padding: max(0px)) {
    /* Safe area insets handled by container */
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: 400;
    font-family: Poppins, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--accent-yellow);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    line-height: 1.4;
    margin-bottom: 1.2em;
}

/* Utility Classes */
.flex-block {
    display: flex;
}

.flex-block--row {
    flex-direction: row;
}

.flex-block--col {
    flex-direction: column;
}

.flex-block--wrap {
    flex-wrap: wrap;
}

.flex-block--aic {
    align-items: center;
}

.flex-block--aife {
    align-items: flex-end;
}

.flex-block--aifs {
    align-items: flex-start;
}

.flex-block--jcc {
    justify-content: center;
}

.flex-block--jcfe {
    justify-content: flex-end;
}

.flex-block--jcfs {
    justify-content: flex-start;
}

.flex-block--jcsb {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.bold-text {
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 549px) {
    .container {
        padding: 0;
    }

    .chat-hero .container {
        padding: 0 0.5rem;
    }

    .chat-hero__text {
        padding: 0 0.5rem;
    }

    /* Minimize hero section on mobile to maximize chat space */
    .chat-hero {
        padding: 0.25rem 0;
    }

    .chat-hero__content {
        gap: 0.25rem;
        padding: 0;
    }

    /* Make chat window fill available viewport height on mobile */
    /* Use flexible sizing that adapts to keyboard showing/hiding */
    .chat-window {
        width: 100%;
        margin: 0;
        /* Use flexible height that works with mobile keyboards */
        height: auto !important;
        max-height: none !important;
        min-height: 500px;
        /* Flex sizing to fill available space */
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        position: relative;
        border-radius: 0.5rem;
    }

    /* Make the hero content use flex to give chat window available space */
    .chat-hero__content {
        min-height: calc(100vh - 8rem);
        min-height: calc(100svh - 8rem); /* Small viewport height - excludes browser chrome */
        display: flex;
        flex-direction: column;
    }
    
    /* Minimize hero text on mobile - just a small title */
    .chat-hero__title {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }
    
    /* Hide description on mobile to save space */
    .chat-hero__description {
        display: none;
    }
    
    /* Ensure header is fixed height and doesn't shrink */
    .chat-window__header {
        flex-shrink: 0;
        flex-grow: 0;
        min-height: auto;
        padding: 0.75rem 1rem;
    }
    
    /* Make messages area scrollable and fill remaining space */
    .chat-window__messages {
        flex: 1 1 auto;
        min-height: 0;
        max-height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        /* Prevent scroll chaining - stops nested scroll conflicts */
        overscroll-behavior: contain;
        /* Modern smooth scrolling */
        -webkit-overflow-scrolling: touch;
        padding: 1rem;
        /* Add extra padding bottom to prevent buttons from being cut off */
        padding-bottom: 8rem;
    }
    
    /* Ensure buttons and quick responses aren't clipped */
    .quick-response-buttons,
    .question-buttons-wrapper {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }

    /* Additional padding for the last quick response button to ensure it's not cut off */
    .quick-response-buttons .quick-response-btn:last-child {
        margin-bottom: 1rem;
    }

    /* Ensure question buttons wrapper has enough space at bottom */
    .question-buttons {
        padding-bottom: 2rem;
    }
    
    /* Ensure input area is fixed height and doesn't shrink */
    .chat-window__input-area {
        flex-shrink: 0;
        flex-grow: 0;
        min-height: auto;
        max-height: 14rem; /* Constrain input area height */
        padding: 0.75rem 1rem;
        overflow: hidden;
    }
    
    /* Ensure typing indicator doesn't affect layout */
    .chat-window__typing-indicator {
        flex-shrink: 0;
        flex-grow: 0;
    }
}

/* Header Styles */
.header {
    background-color: var(--bg-white);
    transition: none;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header__content {
    justify-content: center;
    align-items: center;
    padding: 0.75rem 0;
}

.header__logo {
    background-image: url('img/brands/taxreliefexperts/logo.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 3rem;
    width: 10rem;
    display: block;
}

@media (min-width: 1080px) {
    .header__logo {
        height: 3.5rem;
        width: 11rem;
    }
}

.header__logo-container {
    justify-content: center;
    padding: 0.75rem 0;
    width: auto;
}

.header__ctc-container {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
    padding: 0 0 0.75rem;
    width: 100%;
}

.header__ctc-text {
    color: #1a3a42;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
    letter-spacing: -0.05rem;
}

.header__ctc-link {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.3;
    letter-spacing: -0.05rem;
}

.header__ctc-link:hover {
    text-decoration: none;
}

@media (min-width: 550px) {
    .header__content {
        justify-content: space-between;
        padding: 0.75rem 1rem;
    }

    .header__logo-container {
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }

    .header__ctc-container {
        flex-direction: column;
        gap: 0.3rem;
        width: auto;
        padding: 0;
    }

    .header__ctc-text {
        font-size: 1rem;
    }

    .header__ctc-link {
        font-size: 1.2rem;
    }
}

@media (min-width: 1080px) {
    .header__content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
    }

    .header__logo-container {
        justify-content: flex-start;
        padding: 1rem 0;
    }

    .header__ctc-container {
        gap: 0.2rem;
    }

    .header__ctc-text {
        font-size: 1rem;
    }

    .header__ctc-link {
        font-size: 1.3rem;
    }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Chat Hero Section */
.chat-hero {
    background-color: var(--bg-light);
    padding: 1rem 0;
    min-height: auto;
}

.chat-hero__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
}

.chat-hero__text {
    text-align: center;
    padding: 0 1.25rem;
}

.chat-hero__title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.chat-hero__text-highlight {
    color: var(--primary-blue);
    font-weight: 700;
}

.chat-hero__description {
    font-size: 1.3rem;
    line-height: 1.2;
    margin-bottom: 0;
    color: var(--text-primary);
}

/* Chat Window */
.chat-window {
    background: var(--bg-white);
    border-radius: 1rem;
    border: 1px solid var(--accent-yellow);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 55rem;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 60rem;
    max-height: 60rem;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    align-items: stretch;
}

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

.chat-window__header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-hover) 100%);
    padding: 1rem 1.5rem;
    border-radius: 1rem 1rem 0 0;
    color: var(--bg-white);
    flex-shrink: 0;
}

.chat-window__agent-info {
    gap: 1rem;
}

.chat-window__agent-avatar {
    font-size: 1.68rem;
    color: var(--bg-white);
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.chat-window__agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chat-window__agent-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.chat-window__agent-name {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--bg-white);
    line-height: 1.2;
}

.chat-window__agent-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.77rem;
}

.status-indicator {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.status-indicator--online {
    background-color: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.status-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.77rem;
    line-height: 1.2;
}

/* Chat Messages Area */
.chat-window__messages {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    /* Prevent scroll chaining on nested scrollable elements */
    overscroll-behavior: contain;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--bg-section);
    min-height: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-anchor: none;
}

.chat-window__messages::-webkit-scrollbar {
    width: 8px;
}

.chat-window__messages::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.chat-window__messages::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
}

.chat-window__messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Message Bubbles */
.message {
    display: flex;
    gap: 1rem;
    animation: slideIn 0.3s ease-out;
    max-width: 85%;
    width: 100%;
    box-sizing: border-box;
}

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

.message--agent {
    align-self: flex-start;
}

.message--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message__avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.12rem;
    flex-shrink: 0;
    overflow: hidden;
}

.message__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.message--agent .message__avatar {
    background: var(--primary-blue);
    color: var(--bg-white);
}

.message--user .message__avatar {
    background: var(--accent-yellow);
    color: var(--text-primary);
}

.message__bubble {
    padding: 1rem 1.2rem;
    border-radius: 1.2rem;
    font-size: 0.91rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message--agent .message__bubble {
    background: var(--chat-bubble-agent);
    color: var(--chat-text-agent);
    border-bottom-left-radius: 0.3rem;
}

.message--user .message__bubble {
    background: var(--chat-bubble-user);
    color: var(--chat-text-user);
    border-bottom-right-radius: 0.3rem;
}

.message__time {
    font-size: 0.63rem;
    color: var(--text-light);
    margin-top: 0.4rem;
    opacity: 0.7;
}

.message--user .message__time {
    text-align: right;
}

/* Clickable phone link in chat messages */
.chat-phone-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: underline;
    display: inline-block;
    margin-top: 0.5rem;
}

.chat-phone-link:hover {
    color: var(--primary-blue-hover);
    text-decoration: underline;
}

.message--agent .chat-phone-link {
    color: var(--primary-blue);
}

.message--agent .chat-phone-link:active {
    color: var(--primary-blue-hover);
}

/* TCPA Consent Text Styling */
.tcpa-consent-text {
    font-size: 0.7rem;
    line-height: 1.4;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-blue);
    color: var(--text-secondary);
}

.tcpa-consent-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.tcpa-consent-text a {
    color: #0066cc;
    text-decoration: underline;
}

.tcpa-consent-text a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.tcpa-consent-text a:visited {
    color: #551a8b;
}

/* Mobile TCPA text */
@media (max-width: 549px) {
    .tcpa-consent-text {
        font-size: 0.65rem;
        line-height: 1.3;
        padding: 0.6rem;
        margin-top: 0.8rem;
    }
}

/* Quick Response Buttons (in messages area) */
.quick-response-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 0;
    margin: 0.5rem 0;
    animation: fadeInUp 0.4s ease-out;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Grid layout for amount and state questions */
.quick-response-buttons--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    flex-direction: row;
}

.quick-response-btn {
    padding: 1rem 1.5rem;
    border: 2px solid var(--primary-blue);
    border-radius: 0.8rem;
    background: var(--bg-white);
    color: var(--primary-blue);
    font-family: Poppins, sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.quick-response-buttons--grid .quick-response-btn {
    width: 100%;
    min-width: 0;
}

.quick-response-btn:hover {
    background: var(--primary-blue);
    color: var(--bg-white);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(2, 115, 197, 0.25);
}

.quick-response-btn:active {
    transform: translateX(2px);
}

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

/* Mobile quick response buttons */
@media (max-width: 549px) {
    .quick-response-buttons {
        gap: 0.6rem;
        padding: 0rem 0;
        padding-bottom: 0;
        margin: 0rem 0;
        margin-bottom: 0;
        overflow: visible;
        position: relative;
    }
    
    /* Keep 2-column grid for debt amount questions on mobile */
    .quick-response-buttons--grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .quick-response-btn {
        padding: 0.25rem 0.25rem;
        font-size: 0.9rem;
        border-radius: 0.6rem;
        word-wrap: break-word;
        white-space: normal;
        overflow-wrap: break-word;
        min-height: 3rem;
        text-align: center;
    }
    
    /* Keep 2-column grid for question buttons on mobile */
    .question-buttons--grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: min-content; /* Use min-content to prevent row stretching */
        gap: 0.6rem;
        align-items: start; /* Align items to start, don't stretch */
        align-content: start; /* Align grid content to start */
    }
    
    /* Ensure state buttons maintain consistent size when filtered */
    .question-buttons--grid .question-btn {
        min-height: 3rem; /* Consistent minimum height */
        height: auto; /* Natural height based on content */
        max-height: none; /* Don't limit max height */
    }
    
    /* Ensure state filter input is visible */
    .question-buttons-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }
    
    .state-filter-input {
        display: block;
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 0.98rem;
        flex: 0 0 auto;
        visibility: visible;
        opacity: 1;
    }
    
    /* Make the wrapper take available space and allow natural scrolling */
    .question-buttons-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
        max-height: 50vh; /* Use viewport-based max height for flexibility */
        min-height: 0;
    }

    /* Make the scrollable container use flexible height that adapts */
    .question-buttons-wrapper .question-buttons--scrollable {
        /* Remove fixed heights - use flexible sizing instead */
        height: auto !important;
        max-height: 40vh !important; /* Flexible max height based on viewport */
        min-height: 250px;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        /* Modern smooth scrolling (works on all modern browsers) */
        overflow-anchor: none;
        overscroll-behavior: contain;
        /* Ensure scrollbar is visible */
        scrollbar-width: thin;
        /* Add padding to bottom to ensure last buttons are fully visible */
        padding-bottom: 2rem;
        /* Natural flex sizing */
        flex: 1 1 auto;
        /* Smooth momentum scrolling on iOS */
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure all state buttons are accessible by scrolling */
    .question-buttons-wrapper .question-buttons--scrollable .question-btn {
        flex-shrink: 0; /* Prevent buttons from shrinking */
    }
}

/* Typing Indicator */
.chat-window__typing-indicator {
    display: none;
    padding: 0.8rem 1.5rem;
    align-items: center;
    gap: 0.8rem;
    background: var(--bg-section);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.chat-window__typing-indicator.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

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

.typing-dots {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.typing-dots span {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: var(--text-light);
    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);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.typing-text {
    font-size: 0.77rem;
    color: var(--text-light);
    font-style: italic;
}

/* Chat Input Area */
.chat-window__input-area {
    padding: 1rem 1.5rem;
    background: var(--bg-white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 0 1rem 1rem;
    flex-shrink: 0;
    flex-grow: 0;
    width: 100%;
}

.chat-input-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.chat-input {
    flex: 1;
    padding: 1rem 1.2rem;
    border: 1px solid var(--primary-blue);
    border-radius: 2rem;
    font-family: Poppins, sans-serif;
    font-size: 1.12rem; /* Reduced by 30% from 1.6rem, still above 16px minimum to prevent iOS zoom */
    color: var(--text-input);
    background: var(--bg-white);
    outline: none;
    transition: all 0.3s ease;
    min-width: 0;
    width: 0;
    resize: none;
    overflow-y: auto;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
    height: auto;
    min-height: 4.5rem;
}

.chat-input:focus {
    outline: solid 0.3rem rgba(2, 115, 197, 0.6);
    outline-offset: 0.2rem;
    border-color: var(--primary-blue);
}

.chat-input::placeholder {
    color: var(--text-light);
}

.chat-send-btn {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--primary-blue);
    border: none;
    color: var(--bg-white);
    font-size: 0.98rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--primary-blue-hover);
    transform: scale(1.05);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn:disabled {
    background: #bbb;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Question Buttons */
.question-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}

.question-buttons--yesno {
    justify-content: center;
    gap: 1rem;
}

.question-buttons--multiple {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.6rem;
}

/* Grid layout for state question buttons */
.question-buttons--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: min-content; /* Use min-content to prevent row stretching */
    gap: 0.6rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: start; /* Align items to start, don't stretch */
    align-content: start; /* Align grid content to start */
}

.question-buttons--grid .question-btn {
    width: 100%;
    min-width: 0;
    height: auto; /* Allow natural height based on content */
    min-height: 3rem; /* Ensure minimum height consistency */
    max-height: none; /* Don't limit max height */
}

.question-buttons--multiple .question-btn {
    width: 100%;
    flex: 0 0 auto;
}

.question-buttons--scrollable {
    max-height: 20rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    flex-wrap: nowrap;
}

.question-buttons--scrollable .question-btn {
    width: 100%;
    flex: 0 0 auto;
}

/* Wrapper for state question with filter */
.question-buttons-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 0.8rem;
    box-sizing: border-box;
}

.question-buttons-wrapper .question-buttons--scrollable {
    flex: 1 1 auto;
    min-height: 0;
}

.state-filter-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--primary-blue);
    border-radius: 0.5rem;
    font-family: Poppins, sans-serif;
    font-size: 0.98rem;
    color: var(--text-dark);
    background: var(--bg-white);
    flex: 0 0 auto;
    outline: none;
    transition: all 0.3s ease;
}

.state-filter-input:focus {
    border-color: var(--primary-blue-hover);
    box-shadow: 0 0 0 3px rgba(2, 115, 197, 0.1);
}

.state-filter-input::placeholder {
    color: var(--text-light);
}

.question-buttons--scrollable::-webkit-scrollbar {
    width: 0.6rem;
}

.question-buttons--scrollable::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.3rem;
}

.question-buttons--scrollable::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 0.3rem;
}

.question-buttons--scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue-hover);
}

.question-btn {
    padding: 0.9rem 1.5rem;
    border: 2px solid var(--primary-blue);
    border-radius: 0.5rem;
    background: var(--bg-white);
    color: var(--primary-blue);
    font-family: Poppins, sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
    white-space: nowrap;
    box-sizing: border-box;
    max-width: 100%;
}

.question-btn:hover {
    background: var(--primary-blue);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 115, 197, 0.3);
}

.question-btn:active {
    transform: translateY(0);
}

.question-btn--yes {
    border-color: #28a745;
    color: #28a745;
}

.question-btn--yes:hover {
    background: #28a745;
    color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.question-btn--no {
    border-color: #dc3545;
    color: #dc3545;
}

.question-btn--no:hover {
    background: #dc3545;
    color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.question-btn--choice {
    text-align: left;
    justify-content: flex-start;
    padding: 1rem 1.2rem;
    border-color: var(--primary-blue);
    color: var(--text-dark);
}

.question-btn--choice:hover {
    background: var(--primary-blue);
    color: var(--bg-white);
}

.question-btn i {
    font-size: 0.84rem;
}

/* Mobile-specific input styles - must come after base styles */
@media (max-width: 549px) {
    .chat-window__input-area {
        padding: 0.5rem 1rem;
    }
    
    .chat-input-wrapper {
        gap: 0.5rem;
    }
    
    .chat-input {
        padding: 0.5rem 0.9rem !important;
        font-size: 1rem !important; /* Reduced by 30% from 0.8rem, but kept at 1rem minimum for iOS */
        min-height: 2.5rem !important;
        line-height: 1.3;
        height: auto;
    }
    
    .chat-send-btn {
        width: 3rem !important;
        height: 3rem !important;
        font-size: 0.77rem !important;
        flex-shrink: 0;
    }
    
    .question-buttons {
        gap: 0.6rem;
    }
    
    .question-buttons--yesno {
        gap: 0.8rem;
    }
    
    .question-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.84rem;
    }
    
    .question-btn--choice {
        padding: 0.8rem 1rem;
        font-size: 0.77rem;
    }
    
    .question-buttons--scrollable {
        max-height: 25rem; /* Increased from 15rem for better visibility */
        min-height: 15rem;
    }
    
    .state-filter-input {
        display: block !important; /* Ensure it's visible */
        padding: 0.5rem 1rem;
        font-size: 0.98rem;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .question-btn i {
        font-size: 0.7rem;
    }
}

/* Features Section */
.debt-features {
    padding: 4rem 1rem;
    background: var(--bg-white);
}

.debt-features__title {
    color: var(--text-primary);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.debt-features__list {
    gap: 6rem;
    width: 100%;
    list-style: none;
}

.debt-features__list-item {
    display: flex;
    justify-content: center;
    text-align: center;
    flex: 1;
    min-width: 20rem;
}

.debt-features__list-item-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    width: 19rem;
}

.debt-features__icon {
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.debt-features__list-item:nth-child(2) .debt-features__icon {
    animation-delay: 0.5s;
}

.debt-features__list-item:nth-child(3) .debt-features__icon {
    animation-delay: 1s;
}

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

.debt-features__item-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.debt-features__item-text {
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 0;
}

@media (min-width: 800px) {
    .debt-features {
        padding: 3rem 1rem;
    }

    .debt-features__list {
        gap: 0;
    }
}

@media (min-width: 1080px) {
    .debt-features__title {
        font-size: 2rem;
    }

    .debt-features__list-item-content {
        width: 17rem;
    }
}

/* Footer */
.footer {
    background: var(--bg-footer);
    border-top: solid 0.1rem var(--border-gray);
    color: var(--bg-white);
    font-size: 1.2rem;
    line-height: 1.7;
    padding: 3.5rem 0;
    width: 100%;
}

.footer__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer__disclaimer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer__links {
    gap: 1rem;
}

.footer-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-block__link {
    color: var(--bg-white);
    font-size: 1.2rem;
}

.footer-block__link:hover {
    text-decoration: underline;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-size: 1.2rem;
}

@media (min-width: 550px) {
    .footer__links {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1080px) {
    .footer {
        padding: 4.5rem 0;
    }
}

/* Responsive Chat Window */
@media (min-width: 550px) {
    .chat-hero {
        padding: 2rem 0;
    }

    .chat-hero__content {
        align-items: center;
        gap: 2.5rem;
        padding: 1.5rem 0;
    }

    .chat-hero__text {
        width: 48rem;
        padding: 0 2rem;
    }

    .chat-hero__title {
        font-size: 2rem;
    }

    .chat-hero__description {
        font-size: 1.4rem;
    }

    .chat-hero .container {
        padding: 0 2rem;
    }
    
    .chat-window {
        width: 100%;
        max-width: 55rem;
        height: 60rem;
        max-height: 60rem;
        border-radius: 1rem;
    }

    .chat-window__header {
        padding: 1.2rem 1.8rem;
        border-radius: 1.2rem 1.2rem 0 0;
    }

    .chat-window__agent-avatar {
        font-size: 1.82rem;
        width: 3.5rem;
        height: 3.5rem;
    }

    .chat-window__agent-name {
        font-size: 1.05rem;
    }

    .chat-window__messages {
        padding: 1.8rem;
    }

    .message__avatar {
        width: 3.2rem;
        height: 3.2rem;
        font-size: 1.26rem;
    }

    .message__bubble {
        font-size: 0.945rem;
        padding: 1.1rem 1.4rem;
    }

    .chat-window__input-area {
        padding: 1.2rem 1.8rem;
    }

    .chat-input {
        font-size: 1.12rem; /* Reduced by 30% from 1.6rem, still above 16px minimum to prevent iOS zoom */
        padding: 1.1rem 1.4rem;
    }

    .chat-send-btn {
        width: 4.2rem;
        height: 4.2rem;
        font-size: 1.05rem;
    }
}

@media (min-width: 1080px) {
    .chat-hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .chat-hero__content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 0;
    }

    .chat-hero__text {
        text-align: center;
        padding: 0;
        width: 100%;
        max-width: 60rem;
    }

    .chat-hero__title {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .chat-hero__description {
        font-size: 1.6rem;
        margin-bottom: 0;
    }

    .chat-window {
        width: 55rem;
        height: 60rem;
        max-height: 60rem;
        margin: 0 auto;
        border-radius: 1rem;
    }

    .chat-window__header {
        padding: 1.2rem 1.5rem;
        border-radius: 1rem 1rem 0 0;
    }

    .chat-window__agent-avatar {
        font-size: 1.68rem;
        width: 3.2rem;
        height: 3.2rem;
    }

    .chat-window__agent-name {
        font-size: 0.98rem;
    }

    .chat-window__messages {
        padding: 1.5rem;
    }

    .message__avatar {
        width: 3rem;
        height: 3rem;
        font-size: 1.12rem;
    }

    .message__bubble {
        font-size: 0.91rem;
        padding: 1rem 1.2rem;
    }

    .chat-window__input-area {
        padding: 1.2rem 1.5rem;
        border-radius: 0 0 1rem 1rem;
    }

    .chat-input {
        font-size: 0.98rem;
        padding: 1rem 1.2rem;
    }

    .chat-send-btn {
        width: 4rem;
        height: 4rem;
        font-size: 0.98rem;
    }
}

@media (min-width: 1240px) {
    .chat-window {
        width: 60rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Chat Window Collapse Animation */
.chat-window--collapsed {
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden;
    opacity: 0;
    transition: height 0.8s ease-out, max-height 0.8s ease-out, opacity 0.8s ease-out, margin 0.8s ease-out, padding 0.8s ease-out;
    margin: 0;
    padding: 0;
    border: none;
}

/* Call to Action Container */
.cta-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 4rem 2.5rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    max-width: 60rem;
    width: 100%;
    margin: 3rem auto 0;
    background: var(--bg-white);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.cta-container--visible {
    display: flex;
}

.cta-message {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 52rem;
    margin: 1rem 0 1rem 0;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.7;
    font-weight: 400;
}

.cta-description strong {
    font-weight: 700;
    color: var(--text-primary);
}

.cta-description u {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.cta-warning {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
    font-style: italic;
}

.cta-call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: var(--bg-white);
    padding: 2rem 4rem;
    border-radius: 1.2rem;
    font-size: 1.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(40, 167, 69, 0.35), 0 2px 8px rgba(40, 167, 69, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 32rem;
    position: relative;
    overflow: hidden;
    animation: pulseGlow 2s ease-in-out infinite;
}

.cta-call-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;
}

.cta-call-button:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea87a 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(40, 167, 69, 0.45), 0 4px 12px rgba(40, 167, 69, 0.3);
    text-decoration: none;
    animation-play-state: paused;
}

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

.cta-call-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
}

.cta-phone-icon {
    font-size: 2.2rem;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.cta-phone-number {
    font-size: 1.9rem;
    letter-spacing: 0.08rem;
    font-weight: 600;
}

/* Shake Animation for Phone Icon */
@keyframes shake {
    0% {
        -webkit-transform: rotate(-15deg);
        transform: rotate(-15deg);
    }
    4% {
        -webkit-transform: rotate(15deg);
        transform: rotate(15deg);
    }
    8%, 24% {
        -webkit-transform: rotate(-18deg);
        transform: rotate(-18deg);
    }
    12%, 28% {
        -webkit-transform: rotate(18deg);
        transform: rotate(18deg);
    }
    16% {
        -webkit-transform: rotate(-22deg);
        transform: rotate(-22deg);
    }
    20% {
        -webkit-transform: rotate(22deg);
        transform: rotate(22deg);
    }
    32% {
        -webkit-transform: rotate(-12deg);
        transform: rotate(-12deg);
    }
    36% {
        -webkit-transform: rotate(12deg);
        transform: rotate(12deg);
    }
    40%, 100% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

.shake {
    animation: shake 1.5s ease-in-out infinite;
}

/* Pulsating Glow Animation for Call Button */
@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 24px rgba(40, 167, 69, 0.2), 0 2px 8px rgba(40, 167, 69, 0.1), 0 0 0 0 rgba(40, 167, 69, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 40px rgba(40, 167, 69, 0.4), 0 4px 16px rgba(40, 167, 69, 0.35), 0 0 30px rgba(40, 167, 69, 0.6);
    }
}

/* Incoming Call CTA Styles */
.cta-container--incoming-call {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 3px solid #28a745;
    box-shadow: 0 12px 48px rgba(40, 167, 69, 0.25), 0 4px 16px rgba(40, 167, 69, 0.15);
    position: relative;
    overflow: visible;
}

.incoming-call-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.incoming-call-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.incoming-call-icon {
    font-size: 5rem;
    color: #28a745;
    z-index: 10;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(40, 167, 69, 0.3));
}

.incoming-call-icon.ringing {
    animation: phoneRing 0.6s ease-in-out infinite;
}

.ring-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 3px solid #28a745;
    border-radius: 50%;
    opacity: 0;
}

.ring-ripple-1 {
    animation: ripple 2s ease-out infinite;
}

.ring-ripple-2 {
    animation: ripple 2s ease-out infinite 0.5s;
}

.ring-ripple-3 {
    animation: ripple 2s ease-out infinite 1s;
}

.incoming-call-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.4);
    position: relative;
    overflow: hidden;
}

.badge-pulse {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: badgePulse 1.5s ease-in-out infinite;
}

.badge-text {
    position: relative;
    z-index: 1;
}

.cta-title--urgent {
    color: #dc3545;
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.urgent-highlight {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: urgentPulse 2s ease-in-out infinite;
}

.cta-description--emphasized {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #2c3e50;
}

.call-instructions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 50rem;
    margin: 2rem 0;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-left: 4px solid #28a745;
    border-radius: 0.8rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.instruction-icon {
    font-size: 2rem;
    color: #28a745;
    flex-shrink: 0;
}

.instruction-text {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0;
    line-height: 1.6;
}

.instruction-text strong {
    color: #28a745;
    font-weight: 700;
}

.urgent-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border: 3px solid #ffc107;
    border-radius: 1rem;
    box-shadow: 0 6px 24px rgba(255, 193, 7, 0.3);
    max-width: 55rem;
    width: 100%;
    animation: warningPulse 3s ease-in-out infinite;
}

.warning-icon {
    font-size: 2.5rem;
    color: #ff9800;
    flex-shrink: 0;
    margin-top: 0.2rem;
    animation: warningShake 2s ease-in-out infinite;
}

.warning-text {
    font-size: 1.5rem;
    color: #856404;
    margin: 0;
    line-height: 1.7;
    font-weight: 500;
}

.warning-text strong {
    color: #d32f2f;
    font-weight: 700;
}

.call-status {
    margin-top: 1rem;
}

.status-indicator-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    animation: statusPulse 1.5s ease-in-out infinite;
}

.call-status .status-text {
    font-size: 1.3rem;
    color: #6c757d;
    font-weight: 500;
    font-style: italic;
}

/* Animations for Incoming Call CTA */
@keyframes phoneRing {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-10deg) scale(1.05);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(10deg) scale(1.05);
    }
}

@keyframes ripple {
    0% {
        width: 120px;
        height: 120px;
        opacity: 0.8;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

@keyframes badgePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

@keyframes urgentPulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(220, 53, 69, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(220, 53, 69, 0.8));
    }
}

@keyframes warningPulse {
    0%, 100% {
        box-shadow: 0 6px 24px rgba(255, 193, 7, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 32px rgba(255, 193, 7, 0.5);
        transform: scale(1.01);
    }
}

@keyframes warningShake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

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

/* Responsive CTA */
@media (max-width: 549px) {
    .cta-container {
        padding: 1.5rem 1.5rem;
        gap: 2rem;
        margin: 2rem auto 0;
        border-radius: 1rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .cta-description {
        font-size: 1.3rem;
        line-height: 1.5;
    }
    
    .cta-warning {
        font-size: 1.2rem;
        line-height: 1.5;
    }
    
    .cta-call-button {
        padding: 1.6rem 1.5rem;
        font-size: 1.6rem;
        min-width: auto;
        width: 100%;
        max-width: 32rem;
        border-radius: 1rem;
    }
    
    .cta-phone-icon {
        font-size: 1.8rem;
    }
    
    .cta-phone-number {
        font-size: 1.3rem;
        letter-spacing: 0.06rem;
    }
    
    /* Incoming Call CTA Mobile Styles */
    .cta-container--incoming-call {
        padding: 2.5rem 1.5rem;
        gap: 2rem;
        border-width: 2px;
    }
    
    .incoming-call-icon-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .incoming-call-icon {
        font-size: 4rem;
    }
    
    .ring-ripple {
        width: 100px;
        height: 100px;
    }
    
    .incoming-call-badge {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .cta-title--urgent {
        font-size: 2.2rem;
    }
    
    .cta-description--emphasized {
        font-size: 1.3rem;
        line-height: 1.6;
    }
    
    .call-instructions {
        gap: 1.2rem;
    }
    
    .instruction-item {
        padding: 1.2rem 1.5rem;
        gap: 1rem;
    }
    
    .instruction-icon {
        font-size: 1.6rem;
    }
    
    .instruction-text {
        font-size: 1.2rem;
    }
    
    .urgent-warning-box {
        padding: 1.5rem 1.8rem;
        gap: 1.2rem;
    }
    
    .warning-icon {
        font-size: 2rem;
    }
    
    .warning-text {
        font-size: 1.3rem;
        line-height: 1.6;
    }
    
    .status-text {
        font-size: 1.1rem;
    }
}

@media (min-width: 1080px) {
    .cta-container {
        padding: 5rem 3rem;
        gap: 3rem;
        border-radius: 2rem;
    }
    
    .cta-title {
        font-size: 3rem;
        line-height: 1.2;
    }
    
    .cta-description {
        font-size: 1.7rem;
        line-height: 1.6;
    }
    
    .cta-warning {
        font-size: 1.5rem;
        line-height: 1.6;
    }
    
    .cta-call-button {
        padding: 2.2rem 4.5rem;
        font-size: 2rem;
        min-width: 36rem;
        border-radius: 1.4rem;
    }
    
    .cta-phone-icon {
        font-size: 2.4rem;
    }
    
    .cta-phone-number {
        font-size: 2rem;
        letter-spacing: 0.1rem;
    }
    
    /* Incoming Call CTA Desktop Styles */
    .cta-container--incoming-call {
        padding: 5rem 4rem;
        gap: 3rem;
    }
    
    .incoming-call-icon-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .incoming-call-icon {
        font-size: 6rem;
    }
    
    .cta-title--urgent {
        font-size: 3.5rem;
    }
    
    .cta-description--emphasized {
        font-size: 1.8rem;
    }
    
    .instruction-text {
        font-size: 1.5rem;
    }
    
    .warning-text {
        font-size: 1.6rem;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.message--loading {
    opacity: 0.6;
    animation: shimmer 2s infinite;
}

