/* css/cta.css */
.cta-section {
    padding: 6rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-color);
    width: 100%;
    position: relative;
    z-index: 10;
}

.cta-container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

/* TOP SECTION */
.cta-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.cta-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.cta-image-wrapper img {
    max-width: 140%;
    width: 120%;
    height: auto;
    object-fit: contain;
    transform: translateX(-10%);
}

.cta-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 480px;
}

.cta-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.1;
    margin: 0;
}

.cta-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cta-badges {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    align-items: center;
}

.cta-icon-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f0f7ed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #65AA51;
    box-shadow: 0 4px 12px rgba(101, 170, 81, 0.15), inset 0 -2px 6px rgba(101, 170, 81, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

[data-theme="dark"] .cta-icon-btn {
    background: #1a3a2a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-icon-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(101, 170, 81, 0.2), inset 0 -2px 6px rgba(101, 170, 81, 0.1);
}

.cta-icon-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.cta-btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0 48px;
    height: 64px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(101, 170, 81, 0.3);
    transition: all 0.3s ease;
}

.cta-btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(101, 170, 81, 0.4);
}

/* BOTTOM SECTION (Newsletter) */
.cta-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.cta-newsletter-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
}

.cta-newsletter-form {
    display: flex;
    flex-direction: row;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.35rem 0.35rem 0.35rem 1.5rem;
    width: 100%;
    max-width: 480px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-newsletter-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(101, 170, 81, 0.1);
}

.cta-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
}

.cta-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.cta-submit-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    height: 48px;
    padding: 0 1.5rem;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-submit-btn:hover {
    background-color: var(--primary-hover);
}

@media (max-width: 900px) {
    .cta-top {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    .cta-image-wrapper {
        justify-content: center;
    }
    .cta-image-wrapper img {
        transform: none;
        width: 100%;
    }
    .cta-content {
        align-items: center;
    }
    .cta-badges {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .cta-title {
        font-size: 2.5rem;
    }
    .cta-newsletter-form {
        flex-direction: column;
        border-radius: 16px;
        padding: 1rem;
        gap: 1rem;
    }
    .cta-input {
        padding: 0 0.5rem;
        text-align: center;
    }
    .cta-submit-btn {
        width: 100%;
        border-radius: 8px;
    }
}
