:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #f39c12;
    --background-color: #f9f9f9;
    --text-color: #333;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --hint-color: #7f8c8d;
    --border-radius: 8px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --price-text-color: #2c3e50; /* New variable for darker price text color */
    --price-highlight-color: #27ae60; /* New variable for price highlight color */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--box-shadow);
    flex-shrink: 0;
    margin-bottom: 0.2rem;
    padding-top: 0.6rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo a {
    text-decoration: none;
    color: white;
}

.logo a:hover {
    color: white;
}

.subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.4;
}

main {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-grow: 1;
    padding: 1rem 0;
}

.form-section,
.info-section {
    flex: 1 1 400px;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: var(--box-shadow);
    max-width: 500px;
}

.form-section {
    order: -1;
}

h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

h1 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 0.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius) / 2;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

textarea::placeholder {
    color: var(--hint-color);
}

button {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
    width: 100%;
    box-shadow: var(--box-shadow);
}

button:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#loadingIcon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

#loadingIcon img {
    width: 40px;
    height: 40px;
}

#loadingIcon span {
    font-size: 0.9rem;
    color: var(--text-color);
}

#successMessage {
    text-align: center;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 1rem;
}

.form-hint {
    font-size: 0.9rem;
    color: var(--hint-color);
    margin-top: 0.25rem;
    font-style: italic;
}

.introduction {
    margin-top: 0.5rem;
}

.introduction p, .introduction ul {
    margin-bottom: 1rem;
    font-size: 0.8rem; 
    color: var(--text-color);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .subtitle {
        margin-top: 0.5rem;
    }

    main {
        flex-direction: column-reverse; /* Form first, then info */
    }

    .form-section,
    .info-section {
        flex: 1 0 100%;
    }
}

/* Navigation Link Styles */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    display: inline-block;
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #f1c40f;
}

/* Contact Form Input Styles */
#contactSection input[type="text"],
#contactSection input[type="email"],
#contactSection textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease;
}

#contactSection input[type="text"]:focus,
#contactSection input[type="email"]:focus,
#contactSection textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.meditation-disabled-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

.cf-turnstile {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.form-section {
    flex: 2;
}

.info-section {
    flex: 1;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
}

.hidden {
    display: none;
}

.status-icon {
    width: 30px; /* Decreased by 50% from 60px */
    height: 30px; /* Decreased by 50% from 60px */
    vertical-align: middle;
    margin-left: 5px;
}

.status-section,
.info-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem;
    padding-top: 0.5rem; 
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.status-section h2,
.info-section h2 {
    margin-top: 0.5rem; 
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.status-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.status-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.status-text {
    font-size: 0.8rem;
    color: var(--text-color);
}

#paymentStatusDone, #textGenerationStatusDone, #textToAudioStatusDone, 
#soundtrackStatusDone, #uploadStatusDone, #deletedStatusDone {
    color: var(--secondary-color);
    font-weight: 600;
}

#paymentStatusFailed, #textGenerationStatusFailed, #textToAudioStatusFailed, 
#soundtrackStatusFailed, #uploadStatusFailed {
    color: #f39c12; /* Yellow color */
    font-weight: 600;
}

@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
}

.footer {
    background-color: #007BFF;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}

.footer-nav li {
    display: inline;
    margin: 0 10px;
}

.footer-nav a {
    color: white;
    font-weight: normal;
    text-decoration: none;
}

.price-info {
    background-color: var(--light-gray);
    color: var(--text-color);
    padding: 10px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--box-shadow);
}

.price-text {
    color: var(--price-text-color);
}

.price-highlight {
    color: var(--price-highlight-color); /* Apply the new color */
}

.faq {
    margin-top: 1rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.4;
}

.thank-you-section {
    text-align: center;
    padding: 2rem;
}

.thank-you-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.thank-you-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.thank-you-title {
    font-size: 2rem;
    color: var(--price-highlight-color);
    margin-bottom: 0.5rem;
}

.thank-you-message {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.thank-you-details {
    font-size: 1rem;
    color: var(--hint-color);
    max-width: 600px;
    margin: 0 auto;
}

.status-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.status-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.custom-list {
    list-style-type: none;
    padding-left: 1.5em;
}

.custom-list li {
    position: relative;
    margin-bottom: 0.5em;
}

.custom-list li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.2em;
    position: absolute;
    left: -1em;
    top: -0.1em;
}

#feedbackContainer {
    display: none;
}

.feedback-form {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.feedback-label {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feedback-description {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

#feedbackText {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

#feedbackText:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background-color: #27ae60;
}

.zero-margin-top {
    margin-top: 0;
}

.error-content {
    text-align: center;
    padding: 2rem;
}

.error-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.error-action {
    margin-top: 2rem;
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #27ae60;
}

.deploy-banner {
    background-color: #ffeeba;
    color: #856404;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid #ffeeba;
}

.patreon-banner {
    background-color: #052D49;
    color: white;
    padding: 0.75rem 0;
    text-align: center;
    margin-bottom: 1rem;
}

.patreon-banner a {
    color: #FF424D;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.patreon-banner a:hover {
    color: #ff6b72;
    text-decoration: underline;
}

.meditation-example {
    text-align: left;
    margin-top: 1rem;
}

.meditation-example-link {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: var(--box-shadow);
}

.meditation-example-link-small {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}

.meditation-example-link:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

.meditation-example-link i {
    margin-right: 0.5rem;
}

.meditation-example-section {
    background-color: #f0f8ff; /* Light blue background */
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    text-align: center;
}

.meditation-example-section h2 {
    color: #333;
    margin-bottom: 1rem;
}

.meditation-example {
    margin-bottom: 1rem;
}

.meditation-example-link {
    display: inline-block;
    background-color: #27ae60;  /* Green */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.meditation-example-link:hover {
    background-color: #2ecc71;  /* Lighter green */
    transform: translateY(-2px);
}

.meditation-example-link i {
    margin-right: 0.5rem;
}

.meditation-example-description {
    color: #666;
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h2 {
    margin-bottom: 1rem;
    color: #333;
}

.meditation-example {
    text-align: center;
    margin-bottom: 1rem;
}

.meditation-example-link {
    display: inline-block;
    background-color: #27ae60;  /* Green */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.meditation-example-link:hover {
    background-color: #2ecc71;  /* Lighter green */
    transform: translateY(-2px);
}

.meditation-example-link i {
    margin-right: 0.5rem;
}

.meditation-example-description {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.info-sections-container {
    display: flex;
    flex-direction: column;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h2 {
    margin-bottom: 1rem;
    color: #333;
}

.meditation-example-section {
    order: 1;
}

.faq-section {
    order: 2;
}

.meditation-example {
    text-align: center;
    margin-bottom: 1rem;
}

.meditation-example-link {
    display: inline-block;
    background-color: #27ae60;  /* Green */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.meditation-example-link:hover {
    background-color: #2ecc71;  /* Lighter green */
    transform: translateY(-2px);
}

.meditation-example-link i {
    margin-right: 0.5rem;
}

.meditation-example-description {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.personalization-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.personalization-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

.personalization-item h2 {
    margin-bottom: 0.5rem;
}

.personalization-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.personalization-item a:hover {
    color: var(--accent-color);
}

.personalization-item p {
    color: var(--text-color);
    font-size: 0.9rem;
}

#coupon {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius) / 2;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

#coupon:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#coupon::placeholder {
    color: var(--hint-color);
}

#couponMessage {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.coupon-valid {
    color: var(--white);
    background-color: var(--secondary-color);
}

.coupon-invalid {
    color: var(--white);
    background-color: #e74c3c;
}

.promotion-code-valid {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#promotionCodeMessage {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

#invalidPromotionCodeMessage {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #e74c3c; /* Red color for invalid message */
}

#promotionCodeHint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--hint-color);
}