body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
 
}
.container2 {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    background-color: #0074F0 ;
}

/* Header/Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/papel_ama.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ebook-cover {
    max-width: 250px;
    height: auto;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: 400;
}

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

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #28a745;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #218838;
}

/* Sections */
.section {
    padding: 60px 0;
    text-align: center;
}

.section:nth-child(even) {
    background-color: #f9f9f9;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
}

.section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.sobre-ebook ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.sobre-ebook ul li {
    background-color: #e9ecef;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    flex: 1 1 calc(33% - 40px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.sobre-ebook ul li:hover {
    transform: translateY(-5px);
}

/* Autor Section */
.sobre-autor .autor-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.sobre-autor .autor-foto {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #007bff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.sobre-autor p {
    max-width: 600px;
    text-align: left;
}

/* Depoimentos Section */
.depoimentos .depoimento-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    margin: 20px auto;
    max-width: 700px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.depoimentos .depoimento-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
    font-size: 1.1em;
}

.depoimentos .depoimento-card span {
    font-weight: bold;
    color: #007bff;
}

/* Call to Action / Cadastro Section */
.call-to-action {
    background-color: #007bff;
    color: #3F43EF;
    padding: 80px 0;
}

.call-to-action h2 {
    color: #fff;
    font-size: 3em;
    margin-bottom: 20px;
}

.call-to-action .price {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 30px;
    color: #ffc107; /* Highlighted color for price */
}

.cadastro-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: left;
}

.cadastro-form .form-group {
    margin-bottom: 20px;
}

.cadastro-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.cadastro-form input[type="text"],
.cadastro-form input[type="email"],
.cadastro-form input[type="tel"] {
    width: calc(100% - 20px);
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.cadastro-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-message {
    margin-top: 20px;
    font-weight: bold;
    color: #dc3545; /* Red for error, can be changed to green for success */
}

.disclaimer {
    margin-top: 30px;
    font-size: 0.9em;
    color: rgba(255,255,255,0.8);
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

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

/* Interactive Section Specific Styles */
.interactive-section {
    background-color: #f0f8ff;
    padding: 60px 0;
    text-align: center;
}

.interactive-block {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.interactive-block h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    margin-bottom: 20px;
    color: #007bff;
}

.interactive-block h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}

.interactive-block p {
    text-align: center;
    font-size: 1em;
    line-height: 1.5;
}

/* Bar Chart */
.bar-chart {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-end;
    height: 150px;
}

.bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.bar {
    width: 80px;
    background-color: #007bff;
    position: relative;
    transition: height 0.5s ease-in-out;
}

.bar.technical {
    height: 100px;
}

.bar.empathy {
    height: 140px;
    background-color: #28a745;
}

.bar::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-size: 0.9em;
    z-index: 10;
}

.bar:hover::after {
    opacity: 1;
    visibility: visible;
}

.bar .label {
    margin-top: 10px;
    font-weight: bold;
    font-size: 0.9em;
    color: #555;
}

/* Topic Selection */
.topic-selection {
    margin-top: 40px;
}

.topics-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.topic-item {
    background-color: #e9ecef;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    color: #495057;
    border: 1px solid #ced4da;
}

.topic-item:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
}

.topic-item.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.topic-description {
    background-color: #f8f9fa;
    border: 1px dashed #adb5bd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    min-height: 100px; /* Ensure some height even when empty */
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #6c757d;
}

/* Empathy Diagram */
.empathy-diagram {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 40px auto;
    border: 2px dashed #ccc;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.patient-node {
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.patient-facets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    position: relative;
    width: 100%;
}

.facet-node {
    background-color: #fff;
    border: 2px solid #ccc;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    transition: border-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.connection-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.connection-lines .line {
    position: absolute;
    background-color: #007bff; /* Default color */
    opacity: 0;
    transition: opacity 0.5s ease-out, background-color 0.3s ease;
    height: 2px;
    transform-origin: left center;
}

/* Dynamic line positioning (adjusted via JS) */

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }
    .hero h2 {
        font-size: 1.5em;
    }
    .sobre-ebook ul li {
        flex: 1 1 100%;
    }
    .sobre-autor .autor-info {
        flex-direction: column;
        text-align: center;
    }
    .sobre-autor p {
        text-align: center;
    }
    .cadastro-form {
        padding: 20px;
    }
    .bar-chart {
        flex-direction: column;
        height: auto;
    }
    .bar-container {
        margin-bottom: 30px;
    }
    .bar {
        width: 100px;
    }
    .empathy-diagram {
        height: auto;
        padding-bottom: 100px; /* More space for facet nodes */
    }
    .patient-facets {
        flex-direction: column;
        align-items: center;
    }
    .facet-node {
        width: 80%;
    }
}
