/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    background-color: #4CAF50;
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: #4CAF50;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    cursor: pointer;
    font-size: 18px;
}

.cta-btn:hover {
    background-color: #45a049;
    color: white;
}

/* Progress Section */
.progress-section {
    background-color: #f5f5f5;
    padding: 50px 20px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    max-width: 600px;
    height: 25px;
    background-color: #f0f0f0;
    border-radius: 12px;
    margin: 20px auto;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    background-color: #4CAF50;
    border-radius: 12px;
    transition: width 0.4s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.0) 100%);
    animation: progressShimmer 1s linear infinite;
}

@keyframes progressShimmer {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

/* Error Section */
.error-section {
    background-color: #ffdddd;
    color: #a94442;
    padding: 50px 20px;
    text-align: center;
    border: 1px solid #ebccd1;
    border-radius: 4px;
    margin: 20px 0;
}

#errorMessage {
    font-size: 1.2em;
    margin: 0;
}

/* Preview Section */
.preview-section {
    background-color: #e8f5e9;
    /* Light green background to match the theme */
    padding: 50px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 20px 0;
}

.preview-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #4CAF50;
}

.preview-section #fileDuration {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 20px;
}

.preview-audio {
    margin-bottom: 20px;
}

.preview-audio h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 10px;
}

audio {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.data-info {
    font-size: 0.9em;
    color: #666;
    margin-top: 20px;
    padding: 10px;
    border-top: 1px dashed #ccc;
}

/* Payment Section */
.payment-section {
    background-color: #ffffff;
    padding: 50px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.payment-section h2 {
    font-size: 2em;
    color: #4CAF50;
    margin-bottom: 20px;
}

.payment-section p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 30px;
}

.payment-section .cta-btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.payment-section .cta-btn:hover {
    background-color: #45a049;
}

.payment-section .cta-btn:active {
    background-color: #3e8e41;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
    padding: 50px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.download-section h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #00796b;
}

.download-section .cta-btn {
    background-color: #00796b;
    color: #ffffff;
    padding: 15px 35px;
    font-size: 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.download-section .cta-btn:hover {
    background-color: #004d40;
    transform: scale(1.05);
}

.download-section .data-info {
    font-size: 1em;
    color: #555;
    margin-top: 20px;
    padding: 10px;
    border-top: 1px dashed #ccc;
}

/* Features Section */
.features {
    background-color: white;
    padding: 50px 20px;
    text-align: center;
}

.features .feature {
    margin-bottom: 30px;
}

.features .feature h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Mini inline links under Secure & Private */
.mini-links {
    margin-top: 20px;
    font-size: 0.9em;
}

.mini-links a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

.mini-links a:hover {
    text-decoration: underline;
}

/* How It Works Section */
.how-it-works {
    background-color: #f0f0f0;
    padding: 50px 20px;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.how-it-works .step {
    margin-bottom: 20px;
}

.how-it-works .step h3 {
    font-size: 1.3em;
    color: #4CAF50;
    margin-bottom: 10px;
}

/* Testimonials Section */
.testimonials {
    background-color: white;
    padding: 50px 20px;
    text-align: center;
}

.testimonials h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.testimonials blockquote {
    font-size: 1.2em;
    font-style: italic;
    margin: 20px auto;
    max-width: 600px;
}

/* Pricing Section */
.pricing {
    background-color: #f0f0f0;
    padding: 50px 20px;
    text-align: center;
}

.pricing h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.pricing .price-plan {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pricing ul li {
    font-size: 1.1em;
    margin: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #333;
}

.pricing ul li:before {
    content: "\2713";
    /* Unicode check mark */
    position: absolute;
    left: 0;
    top: 0;
    color: #4CAF50;
    font-size: 1.2em;
    line-height: 1.1;
}

.pricing table {
    margin: 0 auto;
    /* center table horizontally */
    border-collapse: collapse;
    width: 100%;
    max-width: 500px;
}

.pricing table th,
.pricing table td {
    text-align: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.pricing table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.pricing table tr:hover {
    background-color: #f9f9f9;
}

/* Footer Section */
.footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

.footer .footer-nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-weight: 600;
}

.footer .footer-nav a:hover {
    text-decoration: underline;
}

/* Clear Data Button */
.clear-data-btn {
    background-color: #ff6666;
    color: white;
}

.clear-data-btn:hover {
    background-color: #ff4d4d;
}

/* Return to Service link */
.return-to-service {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.return-to-service:hover {
    background-color: #45a049;
}