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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Gradient now ends exactly where footer starts with no gap */
    background: linear-gradient(180deg, #00D4D4 0%, #1a5f5f 50%, #000000 100%) no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background-color: #000000;
    position: relative;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: white;
    border-bottom: 3px solid #C5E617;
    padding-bottom: 5px;
}

.logo .logo-az {
    color: #C5E617;
}

.logo .logo-pul {
    color: #C5E617;
}

.logo .logo-mat {
    color: #00D4D4;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.8;
}

.lang-switch {
    color: white;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
}

.lang-switch span {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.lang-switch span.active {
    opacity: 1;
}

.mobile-lang-switch {
    display: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    gap: 8px;
    margin: 0 10px;
    z-index: 102;
}

.mobile-lang-switch span {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.mobile-lang-switch span.active {
    opacity: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 60px;
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
    align-items: start;
}

.left-section {
    padding-top: 20px;
}

.hotline {
    /* Made hotline text bolder and background black with 85% opacity */
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    display: inline-block;
    font-size: 14px;
    margin-bottom: 40px;
    font-weight: 600;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.step {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
    cursor: pointer;
}

.step:hover {
    transform: translateX(10px);
}

.step.completed {
    background-color: rgba(255, 255, 255, 0.25);
}

.step-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    background: rgba(100, 220, 210, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon {
    width: 50px;
    height: 50px;
    color: #000;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #C5E617;
    color: #000;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.step-content {
    flex: 1;
}

.step-content .step-title {
    color: white;
    font-size: 18px;
    margin-bottom: 5px;
}

.step-content .step-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.main-title {
    color: white;
    font-size: 52px;
    font-weight: bold;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.calculator {
    background: linear-gradient(135deg, #6B5CE7 0%, #8B7AFF 100%);
    /* Improved calculator padding for better spacing */
    padding: 45px 40px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 20px;
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calc-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.month-label {
    color: white;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
}

.amount-display {
    color: white;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.period-display {
    color: white;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
}

.slider-container {
    margin-bottom: 40px;
}

.slider-label {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.slider-wrapper {
    position: relative;
    margin-bottom: 15px;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: linear-gradient(90deg, #4ECDC4 0%, rgba(255, 255, 255, 0.3) 50%);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    border: 4px solid #4ECDC4;
}

input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 4px solid #4ECDC4;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.slider-limits {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 13px;
    opacity: 0.9;
    /* Made slider values bolder with more spacing */
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0 5px;
}

.summary {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: white;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-label {
    font-size: 14px;
    opacity: 0.9;
}

.summary-value {
    font-size: 18px;
    font-weight: bold;
}

.summary-value.highlight {
    color: #C5E617;
}

.promo-text {
    text-align: center;
    color: #C5E617;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn {
    width: 100%;
    background-color: #C5E617;
    color: #000;
    border: none;
    /* Made button bigger */
    padding: 22px;
    border-radius: 30px;
    /* Increased font size */
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    /* Slowed down pulse animation */
    animation: pulse 2s ease-in-out infinite;
}

/* Updated pulse animation to use new button color */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(197, 230, 23, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(197, 230, 23, 0);
    }
}

.submit-btn:hover {
    background-color: #D4F040;
}

/* Added debt check button styling */
.debt-check-btn {
    width: 100%;
    background-color: #00D4D4;
    color: #000;
    border: none;
    padding: 22px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.debt-check-btn:hover {
    background-color: #00E6E6;
    transform: translateY(-2px);
}

.form-container {
    max-width: 600px;
    margin: 60px auto;
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-container h1 {
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
    max-width: 100%;
}

.form-group input:focus {
    outline: none;
    border-color: #7B68EE;
}

.form-group input[type="date"] {
    max-height: 400px;
    overflow-y: auto;
}

.form-group input.error {
    border-color: #ff4444;
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-btn {
    width: 100%;
    /* Changed form button color to AZPUL color */
    background-color: #00D4D4;
    color: #000;
    border: none;
    padding: 18px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 30px;
}

.form-btn:hover {
    background-color: #00E6E6;
    transform: translateY(-2px);
}

.waiting-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 40px 0 40px;
}

.waiting-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    /* Made both cards the same width */
    width: 100%;
    max-width: 600px;
}

.waiting-fields-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.waiting-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.waiting-label {
    color: #888;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
    margin-bottom: 8px;
}

.waiting-value {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
}

.waiting-status {
    text-align: center;
    padding: 45px 30px;
}

.waiting-spinner {
    width: 56px;
    height: 56px;
    border: 5px solid #e8e8e8;
    border-top: 5px solid #00D4D4;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 22px auto;
}

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

.waiting-status h2 {
    color: #1a1a1a;
    font-size: 23px;
    margin-bottom: 12px;
    font-weight: 600;
}

.waiting-status p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.form-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.form-popup-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-popup-content {
    position: relative;
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    animation: slideUp 0.4s;
    max-height: 90vh;
    overflow-y: auto;
}

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

.form-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.form-popup-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.form-heading {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    /* Changed hamburger background to turquoise */
    background: #00D4D4;
    border-radius: 6px;
    transition: all 0.3s;
    z-index: 102;
}

.hamburger:hover {
    background: #00E6E6;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    /* Kept hamburger lines white */
    background: white;
    transition: all 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    position: fixed;
    /* Changed menu to not be full height with rounded corners */
    top: 80px;
    right: -100%;
    width: 300px;
    height: auto;
    max-height: calc(100vh - 100px);
    /* Added subtle gradient and rounded corners like in the image */
    background: linear-gradient(135deg, #00D4D4 0%, #00B8B8 100%);
    border-radius: 20px;
    z-index: 10000;
    transition: right 0.3s ease;
    padding: 30px 0;
    overflow-y: auto;
    box-shadow: -5px 5px 20px rgba(0,0,0,0.3);
    margin-right: 10px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-header {
    padding: 0 25px 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 15px;
}

.mobile-menu-logo {
    font-size: 26px;
    font-weight: bold;
    text-align: right;
}

.mobile-menu-logo .logo-az,
.mobile-menu-logo .logo-pul {
    color: white;
}

.mobile-menu-logo .logo-mat {
    color: #C5E617;
}

.mobile-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 16px 30px;
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    text-align: right;
    font-weight: 400;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    padding-right: 35px;
}

/* Added mobile-only CTA text styling */
.mobile-cta-text {
    display: none;
    color: white;
    /* Increased font size to 56px for more prominent display */
    font-size: 56px;
    font-weight: bold;
    text-align: center;
    margin: 30px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    /* Changed chat widget background to blue */
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
    z-index: 9998;
    transition: transform 0.3s, box-shadow 0.3s;
}

.chat-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(74, 144, 226, 0.6);
}

/* Updated chat widget SVG styling */
.chat-widget svg {
    width: 32px;
    height: 32px;
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    z-index: 9997;
    overflow: hidden;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #00D4D4 0%, #00B8B8 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 3px;
}

/* Added status line under header */
.chat-status {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chat-close:hover {
    transform: scale(1.1);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #F5F5F5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Redesigned message bubbles to match the image */
.chat-message {
    max-width: 85%;
    animation: fadeIn 0.3s;
}

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

.chat-message.bot {
    background: white;
    padding: 14px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    align-self: flex-start;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.chat-message.bot a {
    color: #00D4D4;
    text-decoration: none;
    font-weight: 500;
}

.chat-message.bot a:hover {
    text-decoration: underline;
}

.chat-message.user {
    background: #00D4D4;
    color: white;
    padding: 14px 16px;
    border-radius: 18px;
    align-self: flex-end;
    font-size: 14px;
    line-height: 1.5;
}

.chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #E8E8E8;
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input {
    flex: 1;
    border: 1px solid #E0E0E0;
    border-radius: 25px;
    padding: 12px 18px;
    font-size: 14px;
    outline: none;
    background: #F8F8F8;
    transition: all 0.3s;
}

.chat-input:focus {
    border-color: #00D4D4;
    background: white;
}

/* Added emoji and attachment buttons */
.chat-emoji-btn,
.chat-attach-btn {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: #666;
}

.chat-emoji-btn:hover,
.chat-attach-btn:hover {
    background: #F0F0F0;
}

.chat-emoji-btn svg,
.chat-attach-btn svg {
    width: 22px;
    height: 22px;
}

/* Removed send button as it's not in the design */
.chat-send-btn {
    display: none;
}

/* Added footer to chat window */
.chat-footer {
    padding: 10px;
    text-align: center;
    font-size: 11px;
    color: #999;
    background: #FAFAFA;
    border-top: 1px solid #E8E8E8;
}

.footer {
    background: #000000;
    color: white;
    padding: 50px 60px 30px 60px;
    /* Removed margin-top so footer touches gradient */
    margin-top: 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    /* Made footer vertical layout */
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    /* Ensured footer content doesn't overflow */
    max-width: 100%;
    word-wrap: break-word;
}

.footer-section h3 {
    color: #C5E617;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #C5E617;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    color: white;
    font-size: 18px;
}

.social-links a:hover {
    background: #4ECDC4;
}

/* Hide social networks section on main and waiting pages */
.footer-section:last-child {
    display: none;
}

/* Made hotline section background transparent black */
.footer-hotline {
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
    border-radius: 10px;
}

.footer-hotline h3,
.footer-hotline ul li a {
    /* Made hotline text bolder */
    font-weight: 700;
}

/* Added complete mobile media queries */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .logo {
        font-size: 24px;
    }

    .nav {
        display: none;
    }

    .lang-switch {
        display: none;
    }

    .mobile-lang-switch {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }

    .left-section {
        order: 1;
    }

    .calculator {
        order: 2;
        position: static;
        padding: 30px 25px;
    }

    .mobile-cta-text {
        display: block;
    }

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

    .steps {
        margin-bottom: 30px;
    }

    .step {
        padding: 20px;
        gap: 15px;
    }

    .step-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .step-icon {
        width: 35px;
        height: 35px;
    }

    .step-number {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .step-content .step-title {
        font-size: 16px;
    }

    .step-content .step-desc {
        font-size: 12px;
    }

    .form-popup-content {
        padding: 30px 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }

    .form-heading {
        font-size: 20px;
    }

    .chat-window {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 100px;
        height: 500px;
    }

    .chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .footer {
        padding: 40px 20px 20px 20px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-section h3 {
        font-size: 16px;
    }

    .waiting-container {
        padding: 20px 20px 0 20px;
    }

    .waiting-card {
        padding: 20px;
    }

    .waiting-fields-row {
        flex-direction: column;
        gap: 20px;
    }

    .amount-display {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .mobile-cta-text {
        font-size: 48px;
    }

    .calculator {
        padding: 25px 20px;
    }

    .amount-display {
        font-size: 36px;
    }

    .period-display {
        font-size: 28px;
    }

    .submit-btn {
        padding: 18px;
        font-size: 16px;
    }
}
