/* =============================================
   Lead Form Module – Frontend Styles
   ============================================= */

/* Container */
.leadform-container {
    
    margin-top: 50px;
   
}

/* Plan Info Banner */
.leadform-plan-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: none;
}

.leadform-plan-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leadform-plan-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

/* Form Wrapper */
.leadform-form-wrapper {
    background: #e2dfdf;
    border: none;
    border-radius: 8px;
    padding: 32px 26px;
    box-shadow: none;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(460px, 640px);
    gap: 30px 38px;
    align-items: start;
}

.leadform-form-wrapper h3 {
    margin: 2px 0 0;
    max-width: 540px;
    font-size: 0;
    line-height: 1.35;
    color: #2f2f2f;
    font-weight: 400;
    text-align: left;
}

.leadform-form-wrapper h3::before {
    content: "Užpildykite trumpą formą nurodydami savo kontaktus.";
    display: block;
    font-size: 18px;
}

.leadform-form-wrapper h3::after {
    content: "Susisieksime su Jumis artimiausią darbo dieną.";
    display: block;
    font-size: 18px;
}

.leadform-form-wrapper > form {
    width: 100%;
    max-width: 640px;
    margin-left: auto;
}

/* Form Fields */
.leadform-field {
    margin-bottom: 14px;
}

.leadform-field .form-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.leadform-field .form-control {
    width: 100%;
    min-height: 42px;
    padding: 0 26px;
    border: 1px solid #f7f7f7;
    border-radius: 999px;
    font-size: 16px;
    color: #565656;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.leadform-field .form-control::placeholder {
    color: #666;
    opacity: 1;
}

.leadform-field .form-control:focus {
    border-color: #cfcfcf;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
    outline: none;
}

.leadform-field .required {
    color: #e74c3c;
}

/* Consent Checkbox */
.leadform-consent {
    margin-top: 4px;
}

.leadform-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 400 !important;
    line-height: 1.35;
    gap: 14px;
}

.leadform-checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    margin-top: 1px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
}

.leadform-checkbox-label input[type="checkbox"]:checked {
    background: #3f6c37;
    border-color: #3f6c37;
}

.leadform-checkbox-label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.leadform-checkmark {
    display: none;
}

.leadform-consent-text {
    font-size: 15px;
    color: #5f5f5f;
    max-width: 560px;
    text-align: left!important;
}

.leadform-consent-text .required {
    display: none;
}

/* Submit Button */
.leadform-submit-wrap {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.leadform-submit-btn.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    max-width: none;
    min-width: 220px;
    height: 44px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #3f6c37 !important;
    border-radius: 999px;
    background: #3f6c37 !important;
    color: #fff !important;
    cursor: pointer;
    transition: background-color 0.15s;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1;
    box-shadow: none !important;
}

.leadform-submit-btn.btn.btn-primary::after {
    content: "\2192";
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}

.leadform-submit-btn.btn.btn-primary:hover,
.leadform-submit-btn.btn.btn-primary:focus,
.leadform-submit-btn.btn.btn-primary:active {
    background: #355d2f !important;
    border-color: #355d2f !important;
    color: #fff !important;
    box-shadow: none !important;
}

.leadform-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.leadform-btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Success State */
.leadform-success {
    text-align: center;
    padding: 50px 20px;
}

.leadform-success-icon {
    margin-bottom: 20px;
}

.leadform-success h2 {
    font-size: 24px;
    color: #2ecc71;
    margin-bottom: 15px;
}

.leadform-success p {
    font-size: 15px;
    color: #666;
    max-width: 400px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.leadform-btn-home.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 30px;
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.15s;
}

.leadform-btn-home.btn.btn-primary::after {
    content: "\2192";
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}

.leadform-btn-home.btn.btn-primary:hover,
.leadform-btn-home.btn.btn-primary:focus,
.leadform-btn-home.btn.btn-primary:active {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Product Page Button */
.leadform-product-btn-wrap {
    margin: 15px 0;
    display: flex;
    justify-content: start;
}

.leadform-product-btn.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 270px;
    height: 44px;
    padding: 0 26px;
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
    border-radius: 999px;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    text-transform: none;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: background-color 0.15s;
}

.leadform-product-btn svg {
    display: none;
}

.leadform-product-btn::after {
    content: "\2192";
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}

.leadform-product-btn.btn.btn-primary:hover,
.leadform-product-btn.btn.btn-primary:focus,
.leadform-product-btn.btn.btn-primary:active {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Error Alert */
.leadform-container .alert-danger {
    border-radius: 8px;
    margin-bottom: 20px;
}

.leadform-container .alert-danger ul {
    margin: 0;
    padding-left: 20px;
}

/* Responsive */
@media (max-width: 991px) {
    .leadform-container {
        margin: 24px auto 30px;
        padding: 0 16px;
    }

    .leadform-form-wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px 16px;
        border-radius: 10px;
    }

    .leadform-form-wrapper h3 {
        margin-top: 0;
        max-width: none;
    }

    .leadform-form-wrapper h3::before,
    .leadform-form-wrapper h3::after {
        font-size: 17px;
    }

    .leadform-form-wrapper > form {
        max-width: none;
        margin-left: 0;
    }

    .leadform-field {
        margin-bottom: 14px;
    }

    .leadform-field .form-control {
        min-height: 46px;
        padding: 0 18px;
        font-size: 16px;
    }

    .leadform-consent {
        margin-top: 14px;
    }

    .leadform-checkbox-label {
        gap: 8px;
    }

    .leadform-checkbox-label input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }

    .leadform-consent-text {
        font-size: 14px;
        line-height: 1.45;
    }

    .leadform-submit-wrap {
        margin-top: 20px;
        justify-content: flex-start;
    }

    .leadform-submit-btn.btn.btn-primary {
        width: 100%;
        min-width: 0;
        min-height: 48px;
    }

    .leadform-success {
        padding: 34px 12px;
    }

    .leadform-success h2 {
        font-size: 22px;
    }

    .leadform-success p {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .leadform-container {
        margin: 18px auto 24px;
        padding: 0 10px;
    }

    .leadform-form-wrapper {
        padding: 16px 12px;
    }

    .leadform-form-wrapper h3::before,
    .leadform-form-wrapper h3::after {
        font-size: 16px;
    }

    .leadform-field .form-control {
        min-height: 44px;
        font-size: 16px;
        padding: 0 16px;
    }

    .leadform-checkbox-label {
        gap: 10px;
    }

    .leadform-checkbox-label input[type="checkbox"] {
        width: 22px;
        height: 22px;
    }

    .leadform-checkbox-label input[type="checkbox"]:checked::after {
        left: 7px;
        top: 3px;
    }

    .leadform-consent-text {
        font-size: 13px;
    }

    .leadform-submit-btn.btn.btn-primary {
        min-height: 46px;
        padding: 0 20px;
        font-size: 15px;
    }

    .leadform-submit-btn.btn.btn-primary::after {
        font-size: 18px;
    }
}
