@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@200;300;400;500;600;700&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Readex Pro', sans-serif;
}

.debitcard-img {
	border-radius: 5px;
	max-width: 500px;
	width: 100%;
}

.elbtnFull {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #529f3b;
    text-decoration: none;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 15px auto;
    font-size: 20px;
    font-weight: 600;
    min-height: 80px;
    position: relative;
    overflow: visible;
}

.elbtnMain {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    display: block;
    width: 100%;
    text-align: center;
}

.elbtnFull:hover {
	box-shadow: inset 0 2px 2px 0 rgb(255 255 255 / 22%), 0 233px 233px 0 rgb(255 255 255 / 12%) inset;
	color: #fff;
	transform: translateY(-2px);
}

.elbtnSub {
    opacity: .7;
}

.middle-box {
	background: #224082;
}

/* Upper section button styling */
.upper-box .elbtnFull {
    max-width: 500px !important;
    width: 100% !important;
    padding: 25px 20px !important;
    white-space: nowrap;
}

.upper-box .elbtnMain {
    font-size: 36px !important;
    white-space: nowrap;
}

.upper-box .elbtnSub {
    font-size: 16px;
    margin-top: 5px;
}

/* Medicare Button Styles */
.btn-green {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: 2px solid #28a745 !important;
}

.btn-green:hover {
    background: linear-gradient(135deg, #218838, #1e7e34) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-red {
    background: linear-gradient(135deg, #dc3545, #e74c3c) !important;
    border: 2px solid #dc3545 !important;
}

.btn-red:hover {
    background: linear-gradient(135deg, #c82333, #bd2130) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Congratulations Box */
.congratulations-box {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: 3px solid #28a745;
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.2);
    text-align: center;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.congratulations-title {
    color: #28a745;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.phone-number {
    font-size: 32px;
    font-weight: 700;
    color: #007bff;
    margin: 15px 0;
    letter-spacing: 1px;
}

.eligibility-text {
    color: #28a745;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Call Button Styles */
.call-button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 45px;
    font-size: 26px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    position: relative;
    overflow: hidden;
    margin: 15px 0;
    width: 100%;
    max-width: 300px;
}

.call-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.5);
}

.animated-call {
    animation: callPulse 1.5s infinite, callGlow 2s ease-in-out infinite alternate;
}

@keyframes callPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes callGlow {
    from {
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.6);
    }
    to {
        box-shadow: 0 0 35px rgba(0, 123, 255, 0.9);
    }
}

/* Timer Styles */
.timer-display {
    font-size: 38px;
    font-weight: 700;
    color: #dc3545;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: 3px solid #dc3545;
    border-radius: 15px;
    padding: 15px 30px;
    display: inline-block;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    animation: timerPulse 1s infinite;
}

@keyframes timerPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.timer-text {
    color: #dc3545;
    font-weight: 600;
    font-size: 16px;
    margin: 5px 0;
}

/* Agents Available Styles */
.agents-available {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    animation: agentsBlink 2s infinite;
    margin: 10px 0;
}

@keyframes agentsBlink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.8;
    }
}

.agents-text {
    font-size: 16px;
}

/* Professional Loading Section */
.loading-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #007bff;
    border-radius: 15px;
    padding: 40px 30px;
    margin: 30px auto;
    max-width: 600px;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.loading-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.loading-header {
    color: #007bff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.loading-subheader {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
}

/* Enhanced Loading Messages */
.loading-text {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
    margin: 15px 0;
    padding: 15px 25px;
    background: rgba(0, 123, 255, 0.05);
    border-left: 4px solid #007bff;
    border-radius: 8px;
    opacity: 0;
    animation: slideInSequential 2s ease-in-out forwards;
    position: relative;
}

.loading-text::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.loading-text-content {
    margin-left: 25px;
}

@keyframes slideInSequential {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.loading-text:nth-child(4) {
    animation-delay: 1s;
}

.loading-text:nth-child(5) {
    animation-delay: 2s;
}

.loading-text:nth-child(6) {
    animation-delay: 3s;
}

/* Progress Bar - Updated to 5 seconds */
.progress-container {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 3px;
    width: 0%;
    animation: fillProgressSlow 5s ease-in-out;
}

@keyframes fillProgressSlow {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Responsive Styles */
@media screen and (max-width: 991.98px) {
	.elbtnMain {
	    font-size: 36px;
	}
	
	.call-button {
	    font-size: 22px;
	    padding: 15px 35px;
	}
	
	.timer-display {
	    font-size: 32px;
	    padding: 12px 25px;
	}
	
	.congratulations-title {
	    font-size: 24px;
	}
	
	.phone-number {
	    font-size: 28px;
	}
}

@media screen and (max-width: 767.98px) {
	.elbtnMain {
	    font-size: 32px;
	}
	
	.call-button {
	    font-size: 20px;
	    padding: 12px 30px;
	}
	
	.timer-display {
	    font-size: 28px;
	    padding: 10px 20px;
	}
	
	.congratulations-title {
	    font-size: 22px;
	}
	
	.phone-number {
	    font-size: 24px;
	}
	
	.congratulations-box {
	    padding: 20px;
	    margin: 15px;
	}
}

/* Button Container Spacing */
.d-flex.flex-column.align-items-center {
    gap: 15px;
    margin: 20px 0;
}

/* Enhanced Pulse Animation for Loading Dots */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Highlight the Medicare question when scrolled to */
#medicare-question {
    scroll-margin-top: 20px;
    transition: all 0.3s ease;
}

/* Optional: Add a subtle highlight effect when scrolled to */
#medicare-question.highlight {
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

/* Hide class for smooth transitions - Enhanced */
.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.medicare-question-section {
    transition: all 0.3s ease;
}

.medicare-question-section.hidden {
    display: none !important;
}