/* ==========================================================================
   Lead Capture Form — Modal + Form Styles
   ========================================================================== */

/* ---------- Overlay ---------- */
.lcf__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lcf--open .lcf__overlay {
    opacity: 1;
    visibility: visible;
}

/* ---------- Modal ---------- */
.lcf__modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 9999;
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px 28px;
    width: 90%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
          .lcf__modal::-webkit-scrollbar {
            width: 2px;
          }

          .lcf__modal::-webkit-scrollbar-thumb {
            background: #004c8f;
          }
          

          .lcf__modal::-webkit-scrollbar-track {
            background: #e5e7eb;
          }

.lcf--open .lcf__modal {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* ---------- Close Button ---------- */
.lcf__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.lcf__close:hover {
    color: #000;
}

/* ---------- Title & Subtitle ---------- */
.lcf__title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 8px;
    line-height: 1.3;
    padding-right: 24px;
}

.lcf__subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0 0 20px;
    line-height: 1.4;
}

/* ---------- Form Fields ---------- */
.lcf__field {
    margin-bottom: 16px;
}

.lcf__label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

.lcf__required {
    color: #d32f2f;
}

.lcf__input {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-bottom: 2px solid #ccc;
    background: #f0f4fa;
    font-size: 15px;
    color: #1a1a1a;
    border-radius: 4px 4px 0 0;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.lcf__input::placeholder {
    color: #999;
    font-size: 14px;
}

.lcf__input:focus {
    border-bottom-color: #003d7a;
    background: #e8eef7;
}

/* ---------- Input Group (for prefix) ---------- */
.lcf__input-group {
    display: flex;
    align-items: stretch;
    background: #f0f4fa;
    border-radius: 4px 4px 0 0;
    border-bottom: 2px solid #ccc;
    transition: border-color 0.2s;
}

.lcf__input-group:focus-within {
    border-bottom-color: #003d7a;
    background: #e8eef7;
}

.lcf__prefix {
    display: flex;
    align-items: center;
    padding: 0 2px 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #003d7a;
    background: transparent;
    white-space: nowrap;
    user-select: none;
}

.lcf__input--prefixed {
    border-bottom: none;
    border-radius: 0;
    background: transparent;
    padding-left: 6px;
}

.lcf__input--prefixed:focus {
    border-bottom: none;
    background: transparent;
}

/* ---------- Validation States ---------- */
.lcf__input--invalid {
    border-bottom-color: #d32f2f;
    background: #fff5f5;
}

.lcf__input--valid {
    border-bottom-color: #2e7d32;
}
#lcf-mobileNumber{
    border-bottom: none;
}
.lcf__error-msg{
    font-size: 12px;
    color:#d32f2f;
    padding-left: 2px;
    display: none;
}
.lcf__field--error .lcf__input-group {
    border-bottom-color: #d32f2f;
    background: #fff5f5;
}

.lcf__field--error .lcf__input--prefixed {
    background: transparent;
}

/* ---------- Error Messages ---------- */
.lcf__error {
    display: none;
    font-size: 12px;
    color: #d32f2f;
    margin-top: 4px;
    padding-left: 2px;
}

.lcf__field--error .lcf__error,
.lcf__consent--error .lcf__error {
    display: block;
}

.lcf__field--error .lcf__input {
    border-bottom-color: #d32f2f;
}

/* ---------- Consent ---------- */
.lcf__consent {
    margin-bottom: 20px;
}

.lcf__consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.lcf__checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #003d7a;
}

.lcf__consent-text {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}
.lcf__error-banner{
    font-size: 14px;
    color: #d32f2f;
    margin-top: 8px;
    justify-content: center;
    text-align: center;
}
.lcf__success{
    font-size: 14px;
    color: #2e7d32;
    margin-top: 8px;
    text-align: center;
    justify-content: center;
}
/* ---------- Submit Button ---------- */
.lcf__submit {
    display: block;
    width: auto;
    min-width: 160px;
    margin: 0 auto;
    padding: 14px 32px;
    background: #003d7a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.lcf__submit:hover {
    background: #002d5e;
}

.lcf__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- Status Messages ---------- */
.lcf__message {
    text-align: center;
    padding: 20px;
}

.lcf__message--success p {
    color: #2e7d32;
    font-size: 16px;
    font-weight: 600;
}

.lcf__message--error p {
    color: #d32f2f;
    font-size: 16px;
    font-weight: 600;
}

/* ---------- Loading Spinner ---------- */
.lcf__submit--loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.lcf__submit--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lcf-spin 0.6s linear infinite;
}

@keyframes lcf-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .lcf__modal {
        width: 95%;
        padding: 24px 20px 20px;
    }

    .lcf__title {
        font-size: 17px;
    }

    .lcf__prefix {
        font-size: 14px;
        padding: 0 2px 0 10px;
    }
}
