/*--------------------------------------------------------------
# PLANOS.CSS — Planos & Modal de Contato · CoudFy Ecossistema Digital
# Cards de planos · Modal split · Modal simples (preencha rápido)
--------------------------------------------------------------*/


/* ========================================
   01 — PLANOS COUDFY
   ======================================== */
.cf-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1100px; margin: 0 auto 90px; align-items: start; }

.cf-plan-card {
    position: relative; background: rgba(255,255,255,0.02); border: 1.5px solid var(--color-gray-900);
    border-radius: 24px; padding: 36px 30px 32px;
    display: flex; flex-direction: column; gap: 24px;
    opacity: 0; transform: translateY(40px);
    transition:
        opacity      0.8s cubic-bezier(0.16,1,0.3,1),
        transform    0.8s cubic-bezier(0.16,1,0.3,1),
        border-color 0.3s ease,
        box-shadow   0.3s ease;
}
.cf-plan-card.visible         { opacity: 1; transform: translateY(0); }
.cf-plan-card:nth-child(1)    { transition-delay: 0s; }
.cf-plan-card:nth-child(2)    { transition-delay: 0.12s; }
.cf-plan-card:nth-child(3)    { transition-delay: 0.22s; }
.cf-plan-card:hover           { border-color: var(--color-orange); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(59,130,246,0.18); }

.cf-plan-featured             { border-color: rgba(59,130,246,0.5); box-shadow: 0 12px 40px rgba(59,130,246,0.14); background: rgba(59,130,246,0.03); }
.cf-plan-featured:hover       { border-color: var(--color-orange); box-shadow: 0 24px 60px rgba(59,130,246,0.3); }

.cf-plan-popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--color-orange), var(--color-orange-dark)); color: var(--color-white); font-size: 11px; font-weight: 700; padding: 5px 20px; border-radius: 20px; white-space: nowrap; box-shadow: 0 4px 16px rgba(59,130,246,0.45); letter-spacing: 0.5px; }

.cf-plan-icon-wrap { width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.cf-icon-blue   { background: rgba(59,130,246,0.12); color: #3b82f6; border: 1px solid rgba(59,130,246,0.25); }
.cf-icon-orange { background: rgba(251,146,60,0.1);  color: #fb923c; border: 1px solid rgba(251,146,60,0.25); }
.cf-icon-green  { background: rgba(34,197,94,0.08);  color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }

.cf-plan-header { display: flex; flex-direction: column; gap: 6px; }
.cf-plan-label  { font-size: 11px; font-weight: 700; color: var(--color-gray-700); letter-spacing: 1.5px; text-transform: uppercase; }
.cf-plan-name   { font-size: 24px; font-weight: 800; color: var(--color-white); line-height: 1.2; }
.cf-plan-desc   { font-size: 14px; color: var(--color-gray-600); line-height: 1.6; }

.cf-plan-features { list-style: none; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.cf-plan-features li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--color-white); }

.cf-plan-features li i { width: 18px; height: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 9px; }
.cf-plan-features li:not(.cf-feature-muted) i { background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }

.cf-feature-muted   { opacity: 0.3; }
.cf-feature-muted i { background: rgba(255,255,255,0.04); color: var(--color-gray-700); border: 1px solid rgba(255,255,255,0.08); }

.cf-plan-cta { width: 100%; padding: 15px 20px; border-radius: 50px; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; transition: all 0.3s ease; font-family: inherit; }

.cf-cta-outline { background: transparent; border: 1.5px solid var(--color-orange); color: var(--color-orange); }
.cf-cta-outline:hover { background: var(--color-orange); color: var(--color-white); box-shadow: 0 8px 28px rgba(59,130,246,0.4); transform: translateY(-2px); }

.cf-cta-solid { background: linear-gradient(135deg, var(--color-orange), var(--color-orange-dark)); border: none; color: var(--color-white); box-shadow: 0 8px 24px rgba(59,130,246,0.38); }
.cf-cta-solid:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(59,130,246,0.55); }


/* ========================================
   02 — MODAL DE PLANO — SPLIT LAYOUT
   ======================================== */
.pm-overlay {
    position: fixed; inset: 0;
    background: rgba(5,8,15,0.88); backdrop-filter: blur(12px);
    z-index: 9997; opacity: 0; visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.pm-overlay.active { opacity: 1; visibility: visible; }

.pm-modal {
    position: relative;
    width: 100%; max-width: 860px; max-height: 88vh;
    background: var(--color-dark);
    border: 1px solid rgba(59,130,246,0.22);
    border-radius: 24px;
    display: flex; flex-direction: column;
    transform: scale(0.93) translateY(18px);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 0 1px rgba(59,130,246,0.04);
    overflow: hidden;
}
.pm-overlay.active .pm-modal { transform: scale(1) translateY(0); }

.pm-close {
    position: absolute; top: 14px; right: 14px; z-index: 10;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
    color: var(--color-gray-500); font-size: 13px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease;
}
.pm-close:hover { background: var(--color-orange); border-color: var(--color-orange); color: #fff; transform: rotate(90deg); }

.pm-split { display: flex; flex: 1; overflow: hidden; min-height: 0; }

.pm-left {
    width: 42%; flex-shrink: 0;
    background: linear-gradient(160deg, #080f1f 0%, #050b17 100%);
    border-right: 1px solid rgba(59,130,246,0.1);
    display: flex; flex-direction: column;
    overflow-y: auto; padding: 34px 26px 28px;
    scrollbar-width: thin; scrollbar-color: rgba(59,130,246,0.25) transparent;
}
.pm-left::-webkit-scrollbar       { width: 4px; }
.pm-left::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.3); border-radius: 4px; }

.pm-left-header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 26px; padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pm-left-icon {
    width: 50px; height: 50px; border-radius: 15px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 21px;
    background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.22);
    color: var(--color-orange); transition: background 0.3s;
}

.pm-left-tag {
    display: block; font-size: 10px; font-weight: 700;
    color: var(--color-orange); letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 4px;
}

.pm-left-name { font-size: 19px; font-weight: 800; color: var(--color-white); line-height: 1.2; margin: 0; }

.pm-left-features { flex: 1; }

.pm-feature-item {
    display: flex; align-items: center; gap: 13px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: padding-left 0.2s ease;
}
.pm-feature-item:first-child { padding-top: 4px; }
.pm-feature-item:last-child  { border-bottom: none; }
.pm-feature-item:hover       { padding-left: 4px; }

.pm-feature-icon {
    width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; border: 1px solid rgba(59,130,246,0.18);
}

.pm-feature-text { font-size: 13px; color: var(--color-gray-500); line-height: 1.35; }

.pm-right {
    flex: 1; display: flex; flex-direction: column;
    padding: 34px 30px 28px;
    overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: rgba(59,130,246,0.25) transparent;
}
.pm-right::-webkit-scrollbar       { width: 4px; }
.pm-right::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.3); border-radius: 4px; }

.pm-right-header { margin-bottom: 22px; }

.pm-right-title { font-size: 17px; font-weight: 800; color: var(--color-white); margin-bottom: 5px; }

.pm-right-sub { font-size: 13px; color: var(--color-gray-600); line-height: 1.5; }

.pm-form { display: flex; flex-direction: column; gap: 14px; flex: 1; }

.pm-field { display: flex; flex-direction: column; gap: 6px; }

.pm-field label {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; color: var(--color-gray-500);
    letter-spacing: 0.4px; text-transform: uppercase;
}
.pm-field label i { color: var(--color-orange); font-size: 11px; }

.pm-field input, .pm-field textarea {
    width: 100%; padding: 12px 14px;
    background: rgba(5,15,40,0.5);
    border: 1.5px solid rgba(59,130,246,0.14);
    border-radius: 12px; color: var(--color-white);
    font-size: 14px; font-weight: 500; font-family: inherit;
    transition: all 0.25s ease; resize: none;
}
.pm-field input::placeholder, .pm-field textarea::placeholder { color: rgba(150,180,210,0.35); }

.pm-field input:focus, .pm-field textarea:focus {
    outline: none; border-color: var(--color-orange);
    background: rgba(59,130,246,0.1);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.pm-char-hint { font-size: 10.5px; color: var(--color-gray-700); transition: color 0.25s; }
.pm-char-hint.ok { color: #22c55e; }

.pm-submit {
    width: 100%; padding: 14px 20px; margin-top: 18px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff; border: none; border-radius: 50px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    transition: all 0.3s ease; font-family: inherit;
    box-shadow: 0 8px 24px rgba(37,211,102,0.28);
}
.pm-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(37,211,102,0.42); }

.pm-disclaimer {
    font-size: 11px; color: var(--color-gray-700);
    text-align: center; line-height: 1.5; margin-top: 10px;
}


/* ========================================
   03 — MODAL SIMPLES — "Preencha rapidamente"
   ======================================== */
.pm-modal-simples {
    max-width: 460px !important;
    width: 460px;
    display: flex !important;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
}
.pm-simples-inner {
    display: flex; flex-direction: column;
    padding: 40px 32px 32px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(59,130,246,0.2) transparent;
    gap: 20px;
}
.pm-simples-top { text-align: center; }
.pm-simples-icon {
    width: 56px; height: 56px; border-radius: 18px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}
.pm-simples-title {
    font-size: 22px; font-weight: 800;
    color: var(--color-white); margin: 0 0 8px;
    letter-spacing: -0.3px;
}
.pm-simples-sub {
    font-size: 13.5px; color: var(--color-gray-600);
    line-height: 1.55; margin: 0;
}
.pm-req { color: #ef4444; margin-left: 2px; }


/* ========================================
   04 — MEDIA QUERIES — MOBILE
   ======================================== */
@media (max-width: 768px) {
    /* ── Planos ── */
    .cf-plans-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 70px; }

    /* ── Modal split → bottom sheet ── */
    .pm-overlay { padding: 0; align-items: flex-end; }
    .pm-modal   { max-width: 100%; border-radius: 24px 24px 0 0; max-height: 94vh; transform: scale(1) translateY(100%); }
    .pm-overlay.active .pm-modal { transform: scale(1) translateY(0); }
    .pm-split   { flex-direction: column; overflow-y: auto; }
    .pm-left    { width: 100%; border-right: none; border-bottom: 1px solid rgba(59,130,246,0.1); padding: 22px 18px; overflow-y: visible; }
    .pm-right   { padding: 22px 18px; overflow-y: visible; }

    /* ── Modal simples ── */
    .pm-modal-simples {
        max-width: 100% !important;
        width: 100%;
        border-radius: 24px 24px 0 0 !important;
    }
    .pm-simples-inner { padding: 28px 20px 24px; gap: 16px; }
    .pm-simples-title { font-size: 19px; }
}