@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@600;700&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

.autofy-form-wrap{
    max-width: 480px;
    margin: 0 auto;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1a1a1a;
}
.autofy-form-wrap *{
    box-sizing: border-box;
}
.autofy-form-wrap h2{
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 6px;
}
.autofy-form-wrap p.autofy-sub{
    font-size: .9rem;
    color: #6b7280;
    margin: 0 0 20px;
}
.autofy-field{
    margin-bottom: 16px;
}
.autofy-field label{
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.autofy-field label .req{
    color: #d92d20;
    margin-left: 2px;
}
.autofy-field input,
.autofy-field select,
.autofy-field textarea{
    width: 100%;
    padding: 10px 12px;
    font-size: .92rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    background: #fff;
}
.autofy-field textarea{
    min-height: 90px;
    resize: vertical;
}
.autofy-field input:focus,
.autofy-field select:focus,
.autofy-field textarea:focus{
    border-color: #f7700b;
    box-shadow: 0 0 0 3px rgba(247,112,11,.15);
}
.autofy-field .autofy-error{
    color: #d92d20;
    font-size: .78rem;
    margin-top: 4px;
    display: none;
}
.autofy-field.autofy-invalid input,
.autofy-field.autofy-invalid select,
.autofy-field.autofy-invalid textarea{
    border-color: #d92d20;
}
.autofy-field.autofy-invalid .autofy-error{
    display: block;
}

.autofy-submit{
    width: 100%;
    background: #f7700b;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
}
.autofy-submit:hover{
    background: #d95f00;
}
.autofy-submit:disabled{
    opacity: .6;
    cursor: not-allowed;
}

.autofy-alert{
    padding: 12px 14px;
    border-radius: 8px;
    font-size: .88rem;
    margin-bottom: 16px;
    display: none;
}
.autofy-alert.success{
    background: #e6f7ee;
    color: #14532d;
    display: block;
}
.autofy-alert.error{
    background: #fdecea;
    color: #7f1d1d;
    display: block;
}
.autofy-alert.loading{
    background: #f3f4f6;
    color: #4b5563;
    display: block;
}

.autofy-whatsapp-cta{
    margin-top: 14px;
    text-align: center;
}
.autofy-whatsapp-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 28px;
    border-radius: 10px;
    width: 100%;
    max-width: 320px;
}
.autofy-whatsapp-btn:hover{
    background: #1ebe5a;
}
.autofy-whatsapp-caption{
    margin: 8px 0 0;
    font-size: .82rem;
    color: #4b5563;
}

/* Richer treatment for the "thank you" message specifically when a WhatsApp
   group link was provided -- form.js adds this class only in that branch, so
   the plain redirect-only thank-you message (no WhatsApp link) keeps the
   simpler .autofy-alert.success look above untouched. */
.autofy-alert.success.autofy-alert-whatsapp{
    background: #EAF7F3;
    border: 2px solid #12B793;
    border-radius: 18px;
    padding: 32px 28px;
    text-align: center;
    color: #0A3B32;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 19px;
    line-height: 1.7;
}
.autofy-alert.success.autofy-alert-whatsapp strong{
    display: block;
    font-family: 'Noto Serif Bengali', serif;
    font-size: 24px;
    color: #0A3B32;
    margin-bottom: 6px;
}
.autofy-alert.success.autofy-alert-whatsapp .autofy-whatsapp-cta{
    margin-top: 26px;
}
.autofy-alert.success.autofy-alert-whatsapp .autofy-whatsapp-btn{
    gap: 12px;
    font-size: 20px;
    padding: 18px 40px;
    border-radius: 999px;
    width: auto;
    max-width: none;
    box-shadow: 0 16px 34px -12px rgba(37,211,102,0.55);
}
.autofy-alert.success.autofy-alert-whatsapp .autofy-whatsapp-caption{
    margin-top: 14px;
    font-size: 15px;
    color: #3C4E48;
}
/* "Download PDF" offered after a successful submission (form has a downloadable file) */
.autofy-download-cta{
    margin-top: 16px;
    text-align: center;
}
.autofy-download-btn{
    display: inline-block;
    background: #198754;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 10px;
}
.autofy-download-btn:hover{
    background: #157347;
    color: #fff;
}
