/* ══════════════════════════════════════════════════════════
   GLOBAL FORM STYLES — Zoho CRM Web-to-Lead Forms
   Matches Mefron Design System (--mfr-* tokens)
   ══════════════════════════════════════════════════════════ */

/* ── Form Container ── */
#crmWebToEntityForm.zcwf_lblLeft {
    width: 100%;
    box-sizing: border-box;
}

#crmWebToEntityForm.zcwf_lblLeft *,
#crmWebToEntityForm.zcwf_lblLeft *::before,
#crmWebToEntityForm.zcwf_lblLeft *::after {
    box-sizing: border-box;
}

#crmWebToEntityForm {
    text-align: left;
}

#crmWebToEntityForm * {
    direction: ltr;
}

/* ── Form Title ── */
.zcwf_lblLeft .zcwf_title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--mfr-shade-8, #1a1a2e);
    padding: 0 0 8px;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    display: none;
    /* Title handled by outer card header */
}

/* ── Form Rows ── */
.zcwf_lblLeft .zcwf_row {
    margin: 0 0 18px;
    animation: formRowFadeIn 0.4s ease both;
}

.zcwf_lblLeft .zcwf_row:nth-child(1) {
    animation-delay: 0.05s;
}

.zcwf_lblLeft .zcwf_row:nth-child(2) {
    animation-delay: 0.10s;
}

.zcwf_lblLeft .zcwf_row:nth-child(3) {
    animation-delay: 0.15s;
}

.zcwf_lblLeft .zcwf_row:nth-child(4) {
    animation-delay: 0.20s;
}

.zcwf_lblLeft .zcwf_row:nth-child(5) {
    animation-delay: 0.25s;
}

.zcwf_lblLeft .zcwf_row:nth-child(6) {
    animation-delay: 0.30s;
}

.zcwf_lblLeft .zcwf_row:nth-child(7) {
    animation-delay: 0.35s;
}

.zcwf_lblLeft .zcwf_row:nth-child(8) {
    animation-delay: 0.40s;
}

@keyframes formRowFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zcwf_lblLeft .zcwf_row:after {
    content: '';
    display: table;
    clear: both;
}

/* ── Labels — Stacked Layout ── */
.zcwf_lblLeft .zcwf_col_lab {
    display: block;
    width: 100% !important;
    float: none !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--mfr-shade-6, #374151);
    margin-bottom: 6px;
    margin-right: 0;
    padding: 0;
    letter-spacing: 0.01em;
}

.zcwf_lblLeft .zcwf_col_lab label {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Required asterisk */
.zcwf_lblLeft .zcwf_col_lab span[style*="color:red"],
.zcwf_lblLeft .zcwf_col_lab span[style*="color: red"] {
    color: #ef4444 !important;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
}

/* ── Input Fields ── */
.zcwf_lblLeft .zcwf_col_fld {
    width: 100% !important;
    float: none !important;
    position: relative;
    padding: 0;
}

.zcwf_lblLeft .zcwf_col_fld:after {
    content: '';
    display: table;
    clear: both;
}

.zcwf_lblLeft .zcwf_col_fld input[type="text"],
.zcwf_lblLeft .zcwf_col_fld input[type="password"],
.zcwf_lblLeft .zcwf_col_fld textarea {
    width: 100% !important;
    height: 46px;
    padding: 0 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--mfr-shade-8, #1a1a2e);
    background: #f8fafc;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px;
    outline: none;
    float: none !important;
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
}

/* Textarea-specific overrides */
.zcwf_lblLeft .zcwf_col_fld textarea {
    height: auto;
    min-height: 110px;
    padding: 12px 16px;
    resize: vertical;
}

.zcwf_lblLeft .zcwf_col_fld input[type="text"]:hover,
.zcwf_lblLeft .zcwf_col_fld input[type="password"]:hover,
.zcwf_lblLeft .zcwf_col_fld textarea:hover {
    border-color: #cbd5e1 !important;
    background: #fff;
}

.zcwf_lblLeft .zcwf_col_fld input[type="text"]:focus,
.zcwf_lblLeft .zcwf_col_fld input[type="password"]:focus,
.zcwf_lblLeft .zcwf_col_fld textarea:focus {
    border-color: var(--mfr-base, #000067) !important;
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(0, 0, 103, 0.08);
    transform: translateY(-1px);
}

.zcwf_lblLeft .zcwf_col_fld input[type="text"]:active,
.zcwf_lblLeft .zcwf_col_fld input[type="password"]:active,
.zcwf_lblLeft .zcwf_col_fld textarea:active {
    transform: translateY(0);
}

/* Placeholder */
.zcwf_lblLeft .zcwf_col_fld input::placeholder,
.zcwf_lblLeft .zcwf_col_fld textarea::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* ── Select Fields ── */
.zcwf_lblLeft .zcwf_col_fld_slt {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--mfr-shade-8, #1a1a2e);
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    float: none;
}

/* ── Help / hidden ── */
.zcwf_lblLeft .zcwf_col_help {
    display: none;
}

.zcwf_lblLeft .wfrm_fld_dpNn {
    display: none;
}

.dIB {
    display: inline-block;
}

/* ── Captcha Section ── */
#reCaptchaField {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--mfr-shade-6, #374151) !important;
}

.zcwf_lblLeft .zcwf_col_fld img {
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    height: 38px;
    vertical-align: middle;
    transition: opacity 0.3s ease;
}

.zcwf_lblLeft .zcwf_col_fld img:hover {
    opacity: 0.85;
}

.zcwf_lblLeft .zcwf_col_fld a {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--mfr-base, #000067);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    vertical-align: middle;
}

.zcwf_lblLeft .zcwf_col_fld a:hover {
    color: var(--mfr-tint-3, #3333a0);
    transform: scale(1.04);
}

.zcwf_lblLeft .zcwf_col_fld a:active {
    transform: scale(0.97);
}

/* ── Captcha Error ── */
.zcwf_lblLeft .zcwf_col_fld div[id^="captchaErr"] {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px !important;
    font-weight: 500;
    color: #ef4444 !important;
    margin-top: 4px;
}

/* ── Buttons Container ── */
.zcwf_lblLeft .zcwf_button {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 10px;
    cursor: pointer;
    outline: none;
    letter-spacing: 0.01em;
    border: 1.5px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Submit button */
.zcwf_lblLeft .formsubmit.zcwf_button {
    background: linear-gradient(135deg, var(--mfr-base, #000067) 0%, var(--mfr-tint-4, #4d4db8) 100%);
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 103, 0.2);
    min-width: 140px;
    text-align: center;
}

.zcwf_lblLeft .formsubmit.zcwf_button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.zcwf_lblLeft .formsubmit.zcwf_button:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 103, 0.3);
    transform: translateY(-2px);
}

.zcwf_lblLeft .formsubmit.zcwf_button:hover::after {
    opacity: 1;
}

.zcwf_lblLeft .formsubmit.zcwf_button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 103, 0.2);
}

.zcwf_lblLeft .formsubmit.zcwf_button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Reset button */
.zcwf_lblLeft input[type="reset"].zcwf_button {
    background: transparent;
    color: var(--mfr-shade-6, #64748b);
    border: 1.5px solid #e2e8f0;
    margin-left: 10px;
}

.zcwf_lblLeft input[type="reset"].zcwf_button:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.zcwf_lblLeft input[type="reset"].zcwf_button:active {
    transform: translateY(0);
    background: #e2e8f0;
}

/* ── Privacy Text ── */
.zcwf_lblLeft .zcwf_privacy {
    padding: 6px;
}

.zcwf_lblLeft .zcwf_privacy_txt {
    width: 90%;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #64748b;
    display: inline-block;
    vertical-align: top;
    padding-top: 2px;
    margin-left: 6px;
}

/* ── Tooltips ── */
.zcwf_lblLeft .zcwf_tooltip_over {
    position: relative;
}

.zcwf_lblLeft .zcwf_tooltip_ctn {
    position: absolute;
    background: var(--mfr-shade-8, #1e293b);
    color: #fff;
    padding: 6px 12px;
    top: -8px;
    left: 100%;
    margin-left: 8px;
    border-radius: 8px;
    word-break: break-word;
    min-width: 120px;
    max-width: 200px;
    font-size: 12px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-4px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Help Icon ── */
.zcwf_lblLeft .zcwf_help_icon {
    cursor: pointer;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.zcwf_lblLeft .zcwf_help_icon:hover {
    background: var(--mfr-surface, #e8e8f7);
    border-color: var(--mfr-tint-6, #9999cc);
    color: var(--mfr-base, #000067);
}

/* ── Checkbox ── */
.zcwf_lblLeft .zcwf_ckbox {
    float: left;
    accent-color: var(--mfr-base, #000067);
}

/* ── File Upload ── */
.zcwf_lblLeft .zcwf_file {
    width: 100%;
    box-sizing: border-box;
    float: left;
}

/* ── Clear Utility ── */
.cBoth:after {
    content: '';
    display: block;
    clear: both;
}

/* ══════════════════════════════════════════════════════════
   SUCCESS SPLASH MESSAGE (Fixed Toast)
   ══════════════════════════════════════════════════════════ */
.wf_customMessageBox {
    font-family: 'DM Sans', sans-serif;
    color: #065f46;
    background: #ecfdf5;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    max-width: 90%;
    width: max-content;
    word-break: break-word;
    z-index: 11000;
    border-radius: 14px;
    border: 1px solid #a7f3d0;
    min-width: 140px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate(-50%, 0);
    animation: splashSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

@keyframes splashSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.wf_customCircle {
    position: relative;
    background-color: #10b981;
    border-radius: 100%;
    width: 22px;
    height: 22px;
    flex: none;
    margin-right: 10px;
    animation: circlePopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes circlePopIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.wf_customCheckMark {
    box-sizing: unset !important;
    position: absolute;
    transform: rotate(45deg) translate(-50%, -50%);
    left: 6px;
    top: 9px;
    height: 8px;
    width: 3px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
}

.wf_customClose {
    box-sizing: border-box;
    position: relative;
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-left: 12px;
    transition: transform 0.2s ease;
}

.wf_customClose:hover {
    transform: scale(1.15);
}

.wf_customClose::after,
.wf_customClose::before {
    content: '';
    display: block;
    box-sizing: border-box;
    position: absolute;
    width: 12px;
    height: 1.5px;
    background: #6b7280;
    transform: rotate(45deg);
    border-radius: 5px;
    top: 8px;
    left: 3px;
}

.wf_customClose::after {
    transform: rotate(-45deg);
}

/* ── Splash Info Text ── */
#wf_splash_info {
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
    line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE ADJUSTMENTS
   ══════════════════════════════════════════════════════════ */
@media all and (max-width: 600px) {

    .zcwf_lblLeft .zcwf_col_lab,
    .zcwf_lblLeft .zcwf_col_fld {
        width: 100% !important;
        float: none !important;
    }

    .zcwf_lblLeft .zcwf_col_help {
        width: 100%;
    }

    .zcwf_lblLeft .zcwf_button {
        padding: 11px 22px;
        font-size: 13px;
    }

    .zcwf_lblLeft .formsubmit.zcwf_button {
        width: 100%;
        min-width: unset;
    }

    .zcwf_lblLeft input[type="reset"].zcwf_button {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
}

/* ══════════════════════════════════════════════════════════
   MICRO-INTERACTIONS & POLISH
   ══════════════════════════════════════════════════════════ */

/* Subtle label animation on sibling input focus */
.zcwf_lblLeft .zcwf_row:focus-within .zcwf_col_lab label {
    color: var(--mfr-base, #000067);
    transition: color 0.3s ease;
}

/* Input field subtle glow pulse on focus */
@keyframes focusGlow {

    0%,
    100% {
        box-shadow: 0 0 0 3.5px rgba(0, 0, 103, 0.08);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(0, 0, 103, 0.05);
    }
}

.zcwf_lblLeft .zcwf_col_fld input[type="text"]:focus,
.zcwf_lblLeft .zcwf_col_fld input[type="password"]:focus {
    animation: focusGlow 2s ease-in-out infinite;
}

/* Submit button shimmer */
@keyframes btnShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.zcwf_lblLeft .formsubmit.zcwf_button:not(:disabled):hover {
    background-size: 200% auto;
    background-image: linear-gradient(135deg,
            var(--mfr-base, #000067) 0%,
            var(--mfr-tint-4, #4d4db8) 40%,
            var(--mfr-tint-3, #3333a0) 60%,
            var(--mfr-base, #000067) 100%);
    animation: btnShimmer 1.8s linear infinite;
}

/* ─── Captcha Inline Layout ─── */
.captcha-inline-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.captcha-img-lg {
    height: 54px !important;
    min-width: 200px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    object-fit: contain;
    /* background: #f9fafb; */
    padding: 4px 10px;
}

.captcha-reload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    color: var(--mfr-base, #000067);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.captcha-reload-btn:hover {
    background: var(--mfr-surface, #f0f0ff);
    border-color: var(--mfr-base, #000067);
    transform: rotate(90deg);
}

.captcha-reload-btn:active {
    transform: rotate(180deg) scale(0.92);
}

/* ─── File Upload Field ─── */
.zcwf_lblLeft .zcwf_file {
    width: 100% !important;
    padding: 10px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--mfr-shade-8, #1a1a2e);
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1 !important;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
    float: none !important;
    box-sizing: border-box;
}

.zcwf_lblLeft .zcwf_file:hover {
    border-color: var(--mfr-base, #000067) !important;
    background: var(--mfr-surface, #f0f0ff);
}

.cBoth:after {
    content: '';
    display: block;
    clear: both;
}

/* ══════════════════════════════════════════════════════════
   MODAL SYSTEM — Entrance / Exit Animations
   ══════════════════════════════════════════════════════════ */

/* Card entrance animation */
.mfr-modal-card {
    animation: modalSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Open state — backdrop fade */
.mfr-modal-open > .absolute {
    animation: backdropFadeIn 0.3s ease both;
}

@keyframes backdropFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Modal Card Layout — flex column, scroll only inside form ── */
.mfr-modal-card {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;        /* card itself never scrolls */
}

/* Sticky header stays fixed at top */
.mfr-modal-card > .sticky {
    flex-shrink: 0;
}

/* Form body becomes the sole scrollable area */
.mfr-modal-card > .px-6.py-5 {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;                      /* flexbox scroll trick */
}

/* ── Custom Scrollbar — Mefron primary #000067 ── */
.mfr-modal-card > .px-6.py-5::-webkit-scrollbar {
    width: 6px;
}

.mfr-modal-card > .px-6.py-5::-webkit-scrollbar-track {
    background: var(--mfr-tint-9, #e6e6f0);
    border-radius: 3px;
}

.mfr-modal-card > .px-6.py-5::-webkit-scrollbar-thumb {
    background: var(--mfr-base, #000067);
    border-radius: 3px;
}

.mfr-modal-card > .px-6.py-5::-webkit-scrollbar-thumb:hover {
    background: var(--mfr-tint-2, #333385);
}

/* Firefox scrollbar */
.mfr-modal-card > .px-6.py-5 {
    scrollbar-width: thin;
    scrollbar-color: var(--mfr-base, #000067) var(--mfr-tint-9, #e6e6f0);
}

/* Mobile: full-screen modal */
@media (max-width: 639px) {
    .mfr-modal-card {
        max-width: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        height: 100vh;
    }
}