:root {
    --pvfd-primary: #8b6914;
    --pvfd-primary-dark: #6e5210;
    --pvfd-primary-light: #d4a847;
    --pvfd-bg: #faf6ec;
    --pvfd-text: #2c1810;
    --pvfd-success: #d4edda;
    --pvfd-success-text: #155724;
    --pvfd-error: #f8d7da;
    --pvfd-error-text: #721c24;
}

.pvfd-card {
    max-width: 520px;
    margin: 40px auto;
    padding: 40px 30px;
    background: linear-gradient(135deg, #faf6ec 0%, #f5ebd0 100%);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(139, 105, 20, 0.15);
    border: 2px solid rgba(139, 105, 20, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pvfd-card-icon { font-size: 48px; margin-bottom: 15px; }

.pvfd-card-title {
    color: var(--pvfd-primary-dark);
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.pvfd-card-subtitle {
    color: var(--pvfd-text);
    font-size: 16px;
    margin: 0 0 25px;
    opacity: 0.85;
}

.pvfd-form { display: flex; flex-direction: column; gap: 12px; }

.pvfd-form input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(139, 105, 20, 0.2);
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
    color: var(--pvfd-text);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pvfd-form input:focus {
    outline: none;
    border-color: var(--pvfd-primary);
    box-shadow: 0 0 0 4px rgba(139, 105, 20, 0.1);
}

.pvfd-form button {
    background: linear-gradient(135deg, var(--pvfd-primary) 0%, var(--pvfd-primary-dark) 100%);
    color: #fff;
    padding: 16px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 105, 20, 0.3);
}

.pvfd-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 105, 20, 0.4);
}

.pvfd-form button:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.pvfd-card-footer { margin-top: 20px; color: var(--pvfd-text); opacity: 0.6; font-size: 13px; }

.pvfd-banner {
    background: linear-gradient(135deg, var(--pvfd-primary-dark) 0%, var(--pvfd-primary) 100%);
    padding: 40px 30px;
    border-radius: 16px;
    margin: 40px 0;
    color: #fff;
    box-shadow: 0 10px 40px rgba(139, 105, 20, 0.3);
}

.pvfd-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.pvfd-banner-text h3 { color: #fff; font-size: 26px; margin: 0 0 8px; font-weight: 700; }
.pvfd-banner-text p { color: rgba(255, 255, 255, 0.9); margin: 0; font-size: 16px; }

.pvfd-form-banner {
    display: flex !important;
    flex-direction: row !important;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    gap: 10px;
}

.pvfd-form-banner input { flex: 1; background: rgba(255, 255, 255, 0.95); }

.pvfd-form-banner button {
    background: #fff;
    color: var(--pvfd-primary-dark);
    white-space: nowrap;
    padding: 14px 25px;
}

.pvfd-form-banner button:hover { background: #f5ebd0; }

.pvfd-inline {
    background: var(--pvfd-bg);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--pvfd-primary);
}

.pvfd-inline h4 { margin: 0 0 12px; color: var(--pvfd-primary-dark); font-size: 16px; }

.pvfd-form-inline { display: flex !important; flex-direction: row !important; gap: 8px; }
.pvfd-form-inline input { flex: 1; padding: 10px 14px; font-size: 14px; }
.pvfd-form-inline button { padding: 10px 18px; font-size: 18px; min-width: 50px; }

.pvfd-msg {
    margin-top: 15px;
    padding: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    animation: pvfdFade 0.3s ease;
}

.pvfd-msg.success {
    display: block;
    padding: 14px 18px;
    background: var(--pvfd-success);
    color: var(--pvfd-success-text);
    border-left: 4px solid #28a745;
}

.pvfd-msg.error {
    display: block;
    padding: 14px 18px;
    background: var(--pvfd-error);
    color: var(--pvfd-error-text);
    border-left: 4px solid #dc3545;
}

@keyframes pvfdFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .pvfd-card { margin: 20px 15px; padding: 30px 20px; }
    .pvfd-card-title { font-size: 22px; }
    .pvfd-banner { padding: 30px 20px; }
    .pvfd-banner-content { flex-direction: column; text-align: center; }
    .pvfd-form-banner { flex-direction: column !important; width: 100%; max-width: 100%; }
}

/* ============================================
   v1.2.0 - BOTAO + CTA + MODAL
   ============================================ */

.pvfd-botao-wrap {
    text-align: center;
    margin: 30px 0;
}

.pvfd-botao-abrir {
    display: inline-block;
    background: linear-gradient(135deg, #8b6914 0%, #6e5210 100%);
    color: #fff;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(139, 105, 20, 0.4);
    animation: pvfdPulse 2s infinite;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pvfd-botao-abrir:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 105, 20, 0.5);
    animation: none;
}

@keyframes pvfdPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(139, 105, 20, 0.4); }
    50%      { box-shadow: 0 6px 30px rgba(139, 105, 20, 0.7); }
}

/* CTA - Final de devocional */
.pvfd-cta {
    background: linear-gradient(135deg, #faf6ec 0%, #f5ebd0 100%);
    padding: 45px 30px;
    border-radius: 16px;
    text-align: center;
    margin: 40px 0;
    border: 2px solid rgba(139, 105, 20, 0.15);
    box-shadow: 0 10px 40px rgba(139, 105, 20, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pvfd-cta-icon {
    font-size: 56px;
    margin-bottom: 15px;
    animation: pvfdBounce 2s infinite;
}

@keyframes pvfdBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.pvfd-cta-title {
    color: #6e5210 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 0 12px !important;
}

.pvfd-cta-text {
    color: #2c1810;
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 25px;
    opacity: 0.9;
}

.pvfd-cta-botao {
    background: linear-gradient(135deg, #8b6914 0%, #6e5210 100%);
    color: #fff;
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(139, 105, 20, 0.4);
}

.pvfd-cta-botao:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 105, 20, 0.5);
}

.pvfd-cta-footer {
    margin: 20px 0 0;
    font-size: 13px;
    color: #6e5210;
    opacity: 0.7;
}

/* MODAL */
.pvfd-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.pvfd-modal.active {
    display: flex !important;
    animation: pvfdModalFade 0.3s ease;
}

.pvfd-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 24, 16, 0.85);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.pvfd-modal-content {
    position: relative;
    background: linear-gradient(135deg, #faf6ec 0%, #f5ebd0 100%);
    max-width: 480px;
    width: 100%;
    padding: 50px 35px 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: pvfdModalSlide 0.4s ease;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
}

.pvfd-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(139, 105, 20, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: #6e5210;
    transition: all 0.3s ease;
    line-height: 1;
}

.pvfd-modal-close:hover {
    background: rgba(139, 105, 20, 0.2);
    transform: rotate(90deg);
}

.pvfd-modal-icon {
    font-size: 56px;
    margin-bottom: 15px;
}

.pvfd-modal-title {
    color: #6e5210 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 0 8px !important;
}

.pvfd-modal-subtitle {
    color: #2c1810;
    margin: 0 0 25px;
    opacity: 0.85;
    font-size: 15px;
}

.pvfd-modal .pvfd-form input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 12px;
    border: 2px solid rgba(139, 105, 20, 0.2);
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
}

.pvfd-modal .pvfd-form input:focus {
    border-color: #8b6914;
    outline: none;
}

.pvfd-modal .pvfd-form button {
    width: 100%;
    background: linear-gradient(135deg, #8b6914 0%, #6e5210 100%);
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.pvfd-modal .pvfd-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 105, 20, 0.4);
}

.pvfd-modal-footer {
    margin: 15px 0 0 !important;
    font-size: 12px !important;
    color: #6e5210 !important;
    opacity: 0.7;
}

body.pvfd-modal-open {
    overflow: hidden;
}

@keyframes pvfdModalFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pvfdModalSlide {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
    .pvfd-modal-content { padding: 50px 25px 25px; }
    .pvfd-cta { padding: 35px 20px; }
    .pvfd-cta-title { font-size: 22px !important; }
    .pvfd-botao-abrir { padding: 15px 30px; font-size: 14px; }
}
