/* Widget Styling */
.goal-setter-widget {
    max-width: 500px;
    /* Increased max-width for better readability */
    margin: 30px auto;
    padding: 25px;
    border: 1px solid #ddd;
    /* Softer border color */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    background-color: var(--background-color);
    display: none;
    /* Hidden by default */
}

.goal-setter-widget h3 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Question Styling */
.question-container label {
    font-family: 'Open Sans', Arial, sans-serif;
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: var(--secondary-color);
}

.question-container select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* Recommendation Output Styling */
.recommendation-output {
    margin-top: 25px;
    padding: 15px;
    border-radius: 5px;
    background-color: var(--accent-color);
    border-left: 4px solid var(--primary-color);
    color: var(--secondary-color);
}

.recommendation-output strong {
    color: var(--primary-color);
}

/* CTA Button Styling (inherits from main styles, but with some overrides) */
#cta-button.cta-button {
    display: block;
    /* Overriding display to be block by default */
    width: 100%;
    /* Full width */
    text-align: center;
    margin-top: 20px;
}

/* New Widget Toggle Banner Styling */
.widget-toggle-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffd740;
    /* Updated background color */
    border: none;
    /* Remove border */
    border-radius: 10px;
    padding: 25px 30px;
    /* Increased padding */
    margin: 20px auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    /* Stronger shadow */
    width: 100%;
    max-width: 500px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    /* Increased font size */
    font-weight: bold;
    /* Explicitly bold */
    color: var(--secondary-color);
    /* Text color */
    text-align: left;
}

.widget-toggle-banner:hover {
    transform: translateY(-3px);
    /* More pronounced lift */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    /* Stronger hover shadow */
    background-color: #ffc400;
    /* Slightly darker on hover */
}

.widget-toggle-banner::after {
    content: '\25BC';
    /* Down arrow icon */
    font-size: 1.8rem;
    /* Larger arrow */
    font-weight: bold;
    color: var(--secondary-color);
    /* Arrow color */
    transition: transform 0.3s ease;
}

.widget-toggle-banner:hover::after {
    transform: translateY(3px);
    /* Arrow moves down on hover */
}

/* Exit-Intent Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Ensure it's on top */
}

.modal-content {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: var(--secondary-color);
}

.modal-content p {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 0;
}

/* PDF Lead Magnet Widget Styling */
.freebie-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    border-radius: 15px;
    padding: 40px 20px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.freebie-image-wrapper {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    margin-right: 40px;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.freebie-image-wrapper:hover {
    transform: scale(1.02);
}

.freebie-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 438 / 656;
    border-radius: 5px;
    box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.2);
    transform: rotateY(-5deg);
    transition: transform 0.3s ease;
}

.freebie-image-wrapper:hover .freebie-cover {
    box-shadow: -15px 15px 30px rgba(0, 0, 0, 0.3);
    transform: rotateY(0deg);
}

.freebie-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.freebie-tag {
    background-color: var(--primary-color);
    color: #000;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.freebie-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.freebie-content p {
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.download-btn {
    background-color: var(--primary-color);
    color: #000;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
    background-color: #FFD740;
    transform: translateY(-2px);
}

.download-btn svg {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .freebie-container {
        flex-direction: column;
        text-align: center;
    }

    .freebie-image-wrapper {
        margin-right: 0;
        margin-bottom: 30px;
        max-width: 200px;
    }

    .freebie-content {
        text-align: center;
    }
}