/* =====================================================
   JOHNSON CRM – Front-end Styles
   Matches the original Johnson Grime Fighters CTA section
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@700;800;900&display=swap');

/* ---- WRAPPER ---- */
#johnson-cta-wrapper,
.jcrm-section-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
#johnson-cta-wrapper *,
.jcrm-section-wrap * {
    box-sizing: border-box;
}

/* ---- SECTION ---- */
.jcrm-section {
    padding: 5rem 1rem;
    position: relative;
    background: #ffffff;
    overflow: hidden;
}
@media (min-width: 768px) {
    .jcrm-section { padding: 6rem 1.5rem; }
}

/* ---- BLOBS ---- */
.jcrm-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}
.jcrm-blob-tr {
    background: rgba(187, 247, 208, 0.35);
    top: -16rem;
    right: -16rem;
}
.jcrm-blob-bl {
    background: rgba(187, 247, 208, 0.22);
    bottom: -16rem;
    left: -16rem;
}

/* ---- CONTAINER / GRID ---- */
.jcrm-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.jcrm-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .jcrm-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* ---- REVEAL ANIMATIONS ---- */
.jcrm-reveal {
    opacity: 0;
    animation: jcrmFadeUp 0.8s ease forwards;
}
.jcrm-reveal-delay { animation-delay: 0.2s; }
@keyframes jcrmFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- LEFT CONTENT ---- */
.jcrm-content { display: flex; flex-direction: column; gap: 1.5rem; }
.jcrm-content-inner { display: flex; flex-direction: column; gap: 1rem; }

.jcrm-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    background-color: #16a34a;
    color: #fff;
    border-radius: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Montserrat', sans-serif;
}

.jcrm-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
    margin: 0;
}

.jcrm-gradient {
    background: linear-gradient(90deg, #16a34a, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jcrm-subtext {
    font-size: 1.0625rem;
    color: #475569;
    line-height: 1.75;
    max-width: 34rem;
    margin: 0;
}

/* ---- CTA BUTTONS ---- */
.jcrm-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.5rem;
}
.jcrm-btn-dark,
.jcrm-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.jcrm-btn-dark {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(15,23,42,0.22);
}
.jcrm-btn-dark svg { color: #22c55e; }
.jcrm-btn-dark:hover { background: #1e293b; color: #fff; }

.jcrm-btn-outline {
    background: transparent;
    color: #0f172a;
    border: 2px solid #e2e8f0;
    word-break: break-all;
    white-space: normal;
    font-size: 0.75rem;
}
.jcrm-btn-outline:hover { border-color: #22c55e; color: #16a34a; }

/* ---- CARD ---- */
.jcrm-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 2rem;
    padding: 2rem 1.75rem;
    box-shadow: 0 25px 60px rgba(15,23,42,0.12);
    position: relative;
}
@media (min-width: 768px) {
    .jcrm-card { padding: 2.5rem; }
}

.jcrm-card-badge {
    position: absolute;
    top: -0.9rem;
    right: 2rem;
    background: #22c55e;
    color: #fff;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    box-shadow: 0 4px 12px rgba(34,197,94,0.4);
    font-family: 'Montserrat', sans-serif;
}

.jcrm-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.375rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 1.5rem;
}
@media (min-width: 768px) { .jcrm-card-title { font-size: 1.625rem; } }

/* ---- FORM ---- */
.jcrm-form { display: flex; flex-direction: column; gap: 1rem; }

.jcrm-row-2 {
    display: grid;
    gap: 1rem;
}
@media (min-width: 640px) {
    .jcrm-row-2 { grid-template-columns: 1fr 1fr; }
}

.jcrm-field { display: flex; flex-direction: column; gap: 0.35rem; }

.jcrm-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    font-family: 'Montserrat', sans-serif;
}
.jcrm-req { color: #ef4444; }

.jcrm-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    font-family: 'Inter', sans-serif;
    -webkit-appearance: none;
    appearance: none;
}
.jcrm-input::placeholder { color: #94a3b8; }
.jcrm-input:focus {
    border-color: #22c55e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
}
.jcrm-input.jcrm-input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,0.1);
}

/* SELECT */
.jcrm-select-wrap { position: relative; }
.jcrm-select {
    padding-right: 2.5rem;
    cursor: pointer;
}
.jcrm-select-chevron {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* SUBMIT BUTTON */
.jcrm-btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 1.5rem;
    background: #16a34a;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8125rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(22,163,74,0.3);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 0.25rem;
}
.jcrm-btn-submit:hover {
    background: #15803d;
    box-shadow: 0 12px 30px rgba(22,163,74,0.4);
}
.jcrm-btn-submit:active { transform: scale(0.98); }
.jcrm-btn-submit:disabled { opacity: 0.75; cursor: not-allowed; }

.jcrm-btn-arrow { transition: transform 0.2s; }
.jcrm-btn-submit:hover .jcrm-btn-arrow { transform: translateX(4px); }

@keyframes jcrmSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.jcrm-spinning { animation: jcrmSpin 0.8s linear infinite; }

/* PRIVACY */
.jcrm-privacy {
    font-size: 0.6875rem;
    color: #94a3b8;
    text-align: center;
    margin: 0;
}

/* SUCCESS STATE */
.jcrm-success {
    text-align: center;
    padding: 2rem 1rem;
}
.jcrm-success-icon {
    width: 4rem;
    height: 4rem;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #16a34a;
}
.jcrm-success h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.375rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.5rem;
}
.jcrm-success p {
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}

/* ERROR */
.jcrm-error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #b91c1c;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
