/* ========================================
   Flextem BioPharma Brasil - Styles for Area Profissionais and Modal
   ======================================== */

/* === VARIÁVEIS (Replicadas do style.css para garantir consistência) === */
:root {
    --primary-purple: #664C80;
    --primary-green: #39B980;
    --text-gray: #6b7280;
    --text-dark: #1f2937;
    --bg-gray: #f9fafb;
    --border-gray: #e5e7eb;
}

/* === PAGE HERO PROFISSIONAL === */
.page-hero-profissional {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #7d5c99 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    color: #fff;
}

.hero-content-profissional {
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* === AVISO ANVISA SECTION === */
.aviso-anvisa-section {
    padding: 2rem 0;
    background: #fff;
}

.aviso-anvisa {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    background: #fffbe6; /* Cor amarela clara */
    border-left: 5px solid #f6e05e; /* Cor amarela */
    border-radius: 0.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #744210; /* Cor do texto */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.aviso-anvisa i {
    font-size: 1.5rem;
    color: #f6e05e;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.aviso-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #744210;
}

.aviso-description {
    margin: 0;
    line-height: 1.5;
    font-size: 1rem;
}

/* === PORTAL CONTENT SECTION === */
.portal-content-section {
    padding: 4rem 0;
    background: var(--bg-gray);
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portal-card {
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.portal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.portal-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 auto 1rem auto;
}

.portal-purple-bg {
    background: var(--primary-purple);
}

.portal-green-bg {
    background: var(--primary-green);
}

.portal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    align-self: flex-start;
    width: 100%;
}

.portal-description {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1rem;
    align-self: flex-start;
    width: 100%;
}

/* === CTA PROFISSIONAL SECTION (Replicado do style3.css) === */
.cta-profissional-section {
    padding: 4rem 0;
    background: #fff;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #7d5c99 100%);
    color: #fff;
    padding: 3rem;
    border-radius: 0.5rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(102, 76, 128, 0.3);
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-btn {
    background: var(--primary-green);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.cta-btn:hover {
    background: #2d9467;
    transform: translateY(-2px);
}

.cta-small-text {
    font-size: 0.875rem;
    margin-top: 1rem;
    opacity: 0.7;
}

/* === MODAL STYLES (Baseado no padrão do site) === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none; /* Escondido por padrão, controlado pelo JS */
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0.5rem;
    border-radius: 0.5rem;
    max-width: 800px;
    width: 85%;
    height: 90vh !important;
    max-height: 90vh;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 3001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header-fixed {
    position: relative;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    z-index: 10;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary-purple);
}

.modal-body-iframe {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.modal-body-iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 0.3rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(102, 76, 128, 0.2);
    outline: none;
}

.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.checkbox-group a {
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: underline;
}

.btn-submit {
    background: var(--primary-green);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: background 0.3s ease, transform 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #2d9467;
    transform: translateY(-1px);
}

.modal-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
}

.modal-footer p {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* RESPONSIVE MODAL */
@media (max-width: 550px) {
    .modal-content {
        width: 95%;
        height: 90vh;
        padding: 0.25rem;
    }
    
    .modal-header-fixed {
        padding: 0.5rem 0.75rem;
    }
    
    .modal-close {
        font-size: 1.25rem;
        padding: 0.25rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .btn-submit {
        font-size: 1rem;
    }
}

/* MEDIA QUERIES PARA A PÁGINA */
@media (max-width: 768px) {
    .page-hero-title {
        font-size: 2.5rem;
    }
    
    .aviso-anvisa {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .aviso-anvisa i {
        margin-bottom: 0.5rem;
    }
    
    .portal-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
}
