@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Saira+Stencil+One&display=swap');

body,
html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.container {
    position: relative;
    margin: max(10px, 2%) auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    justify-content: center;
    align-items: center;
    max-width: 90%;
}

h1 {
    color: #2E4258;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

input[type="number"] {
    width: 60px;
    margin: 10px;
    padding-left: 15px;
    padding-right: 4px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    color: #2E4258;
    transition: all 0.3s ease;
}

input[type="text"] {
    width: 280px;
    margin-left: 10px;
    padding: 12px 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    color: #2E4258;
    transition: all 0.3s ease;
}

textarea {
    width: 610px;
    resize: vertical;
    min-height: 100px;
    box-shadow: inset -1px 2px 12px rgba(0, 0, 0, 0.1), 0 0 0 rgba(46, 66, 88, 0);
    background-color: #fcfcfc;
    border: 0px solid #f0f0f0;
    border-radius: 8px;
    padding: 12px 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #2E4258;
    transition: background-color 0.3s ease, box-shadow 0.5s ease;
}

input[type="number"]:hover,
input[type="text"]:hover {
    border-color: #2E4258;
    box-shadow: inset -1px 2px 10px rgba(0, 0, 0, 0.05), 0 0 5px rgba(46, 66, 88, 0.1);
    background-color: #ffffff;
}


textarea:hover {
    border-color: #2E4258;
    box-shadow: inset -1px 2px 10px rgba(0, 0, 0, 0.25), 0 0 5px rgba(46, 66, 88, 0.1);
    background-color: #ffffff;
}

textarea:focus {
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 0 10px rgba(46, 66, 88, 0.4);
    background-color: #ffffff;
    outline: none;
}

#download-button,
#start-button {
    background-color: #2E4258;
    color: white;
    border: none;
    outline: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(46, 66, 88, 0.1);
}

#download-button:hover,
#start-button:hover {
    border: none;
    outline: none;
    background-color: #0861c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(46, 66, 88, 0.15);
}

#download-button:focus,
#start-button:focus {
    border: none;
    outline: none;
}

#download-button:active,
#start-button:active {
    border: none;
    outline: none;
    background-color: #0861c7;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(46, 66, 88, 0.1);
}

#status-message {
    margin-top: 20px;
    font-weight: 600;
    color: #2E4258;
}

#result-container {
    margin-top: 30px;
    text-align: left;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

#result-container pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 20px 10px;
        justify-content: center;
        align-items: center;
    }

    .input-group {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        align-items: center;
    }

    input[type="text"],
    textarea {
        width: 100%;
        margin-left: 1vw;
        margin-right: 1vw;
        margin-bottom: 2vh;
        margin-top: 2vh;
        box-sizing: border-box;
    }

    input[type="number"] {
        width: 30%;
        margin-left: 1vw;
        margin-right: 1vw;
        margin-bottom: 2vh;
        margin-top: 2vh;
        padding-right: 3vw;
        box-sizing: border-box;
        text-align: center;
    }
}

.input-wrapper {
    position: relative;
    display: inline-block;
    justify-content: center;
    align-items: center;
}

.clear-icon {
    position: absolute;
    right: 13%;
    top: 55%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #c52525;
    font-size: 28px;
    display: none;
    /* Initially hidden */
}

.input-wrapper input:valid+.clear-icon {
    display: inline;
    /* Show the icon when the input is not empty */
}

#section-checklist {
    justify-content: center;
    align-items: center;
    text-align: center; /* Change from left to center */
    margin-top: 20px;
    display: flex; /* Change from inline-block to flex */
    flex-direction: column; /* Add this to stack items vertically */
    width: 100%;
}

#section-checklist ul {
    list-style-type: none;
    padding: 0;
    margin: 0 auto; /* Center the ul horizontally */
    width: 100%; /* Ensure full width */
    max-width: 600px; /* Match the max-width of .section-item */
}

.section-item {
    margin-bottom: 10px;
    width: 100%; /* Change from min(600px, 90%) to 100% */
    max-width: 600px; /* Add max-width instead */
    transition: transform 0.5s ease, opacity 0.5s ease;
    margin-left: auto; /* Center the item */
    margin-right: auto; /* Center the item */
}

.section-box {
    padding: 10px 15px;
    background-color: rgba(31, 38, 135, 0.2);
    color: #2E4258;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(46, 66, 88, 0.2);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.section-item.completed {
    animation: fillBackground 23s ease-out forwards;
    transform: translateX(-120%);
    opacity: 0;
    background-size: 200% 100%;
    background-position: right bottom;
    background-image: linear-gradient(to right, #98d7ff 50%, transparent 50%);
}

.section-item.slide-up {
    transform: translateY(-100%);
    transition: transform 1s ease;
}

#pricing-plans {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.plan {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.plan h2 {
    margin-top: 0;
    color: #333;
}

.plan ul {
    padding-left: 20px;
    flex-grow: 1;
}

.plan .price {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.plan-btn {
    width: 100%;
    padding: 10px;
    margin-top: auto;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.plan-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.subscribe-text {
    font-family: 'Saira Stencil One', sans-serif;
    background: linear-gradient(43deg, #6aa7e0 0%, #2E4258 30%, #021a31 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: absolute;
    bottom: 20%;
    left: 3%;
    right: 0;
    background-color: rgba(0, 0, 25, 0.9);
    padding: 20px;
    text-align: center;
    width: 94%;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(49, 96, 143, 0.7);
    background-size: 200% 200%;
    animation: gradientAnimation 2s ease infinite;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.subscribe-container {
    position: relative;
    backdrop-filter: blur(15px); /* Increased blur for a smoother effect */
    position: absolute;
    bottom: 7%;
    left: 7%;
    right: 0;
    text-align: center;
    width: 86%;
    height: 40%;
    justify-content: center;
    align-items: center;
}

@keyframes fillBackground {
    0% {
        background-position: 100% 0%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.section-box.animating {
    animation: fillBackground 23s ease-out forwards;
    background-size: 200% 100%;
    background-position: right bottom;
    background-image: linear-gradient(to right, #98d7ff 50%, transparent 50%);
}

@keyframes ellipsis {
    0% { content: ''; }
    20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80% { content: '....'; }
    100% { content: ''; }
}

.animate-ellipsis::after {
    display: inline-block;
    animation: ellipsis 1.5s infinite;
    content: '';
    width: 20px;
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #custom-instruction {
        width: 100%;
        margin-left: 1vw;
        margin-right: 1vw;
        margin-bottom: 2vh;
        margin-top: 2vh;
        box-sizing: border-box;
    }
}

.region-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.region-btn {
    padding: 8px 20px;
    border: 2px solid #2E4258;
    background: transparent;
    color: #2E4258;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.region-btn.active {
    background: #2E4258;
    color: white;
}

.region-btn:hover:not(.active) {
    background: rgba(46, 66, 88, 0.1);
}

.title-container {
    position: relative;
    height: 50px;
    margin-bottom: 30px;
}

.region-title {
    position: absolute;
    width: 100%;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.region-title.active {
    opacity: 1;
    transform: translateY(0);
}

/* .region-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    width: 200px;
    height: 40px;
    margin: 0 auto 30px;
    background: #f0f0f0;
    border-radius: 20px;
    padding: 3px;
}

.region-btn {
    width: 50%;
    border: none;
    border-radius: 17px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    color: #666;
}

.region-btn.active {
    background: #2E4258;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.container {
    transition: filter 0.3s ease;
}

.container.blur {
    filter: blur(5px);
}

.coming-soon {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: bold;
    color: #2E4258;
    text-align: center;
    z-index: 1000;
    background: rgba(255,255,255,0.9);
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
} */