.custom-vendor-form .submit-btn:focus,
    .custom-vendor-form .submit-btn:active,
    .custom-vendor-form .submit-btn:hover {
        background: #871e32 !important; /* Keep original background */
        color: white !important; /* Keep text white */
        outline: none; /* Remove default focus outline if wanted */
    }
.custom-vendor-registration p:empty,
.custom-vendor-registration br {
    display: none;
}

    .custom-vendor-form .form-group input#doc_upload { padding: 0; border: 0; }
    ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; background: white; border: none; box-shadow: 0px 0px 5px 1px #00000040; border-radius: 4px; }
    .checkbox-row label { font-size: 16px; color: #005959; margin: 0; font-weight: 700; }
    .form-inner { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 18px; }
    .form-group br { display: none; }
    .custom-vendor-registration { max-width: 716px; margin: 150px auto; padding: 45px; border-radius: 32px; background: #fbfcfc; box-shadow: 0px 0px 1px #00000040; }
    .registration-header { display:flex; flex-direction:column; align-items:center;gap: 15px; margin-bottom: 2rem; }
    .registration-header h2 {margin: 0;font-size: 1.8rem; font-weight: 600; font-family: "Poppins"; color: #222;}
    .registration-header p { font-size: 18px; font-weight: 400; width:80%; text-align: center;}
    .registration-header img { max-width: 200px; height: auto; }
    .custom-vendor-form .form-row { gap: 20px; margin-bottom: 1rem; }
/*     .form-inner .form-group { margin-bottom: 0!important; } */
    .custom-vendor-form .form-group { margin-bottom: 0; flex: 1; }
    .custom-vendor-form label {
    display: block;
    margin-bottom: 5px;
    color: #222;
    margin-top: 19px;
}
.custom-vendor-form .form-group  label {
  color: inherit;
  font-weight: normal;
}

.custom-vendor-form .form-group  label a {
  color: #333;
  font-weight: 500;
}

    .custom-vendor-form .form-control { width: 100%; padding: 15px; border: 1px solid #ececec; border-radius: 11px; font-size: 16px;  margin-bottom:10px;background-color: #fff;}
    .custom-vendor-form .form-control:focus { border-color: #0B4D4A; outline: none; box-shadow: 0 0 0 2px rgba(11,77,74,0.1); }
    .custom-vendor-form .required { color: #e2401c; }
    .custom-vendor-form .submit-btn { background: #b32843; color: white; padding: 16px 0; border: none; border-radius: 11px; font-size: 16px; cursor: pointer; width: 100%; margin-top: 25px; }
    .custom-vendor-form .submit-btn:hover { background: #0a3f3d !important; color: white !important }
    .url-preview { color: #666; font-size: 14px; }
    .terms-group { margin: 0; padding: 0; border-radius: 0; }
    .checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
    .checkbox-row:last-child { margin-bottom: 0; }
    .checkbox-row input[type="checkbox"] { margin-top: -2px; }
    .terms-link { color: #0B4D4A; text-decoration: underline; }
    .terms-link:hover { color: #083836; }
    @media (max-width: 768px) { .custom-vendor-form .form-row { flex-direction: column; gap: 0; } }

@media (max-width: 480px) { .custom-vendor-registration{ padding: 20px; margin: 50px 10px; border-radius: 10px} .custom-vendor-form .form-control{ padding:10px; font-size: 13px; margin-bottom: 5px;} #quiz_answer{ margin-bottom: 10px;} .custom-vendor-form label{ font-size: 14px;} .registration-header h2{ font-size: 1.4rem; text-align: center; line-height: 30px;} .registration-header p{ font-size:13px}}


    .login-link-wrapper { text-align: right; margin-bottom: 0.5rem; }
    .login-link-wrapper p { color: #333; font-size: 14px; margin: 0; }
    .login-link { color: #333; text-decoration: underline; font-weight: 600; }
    .login-link:hover { color: #111; }
    .error-message { border-radius: 4px; font-size: 14px; text-align: center; width: fit-content; }
    .already-logged-in { text-align: center; color: #0B4D4A; font-size: 16px; font-weight: 500; margin: 0; padding: 20px; }
    .already-logged-in a { color: #0B4D4A; text-decoration: underline; font-weight: 700; }
    .already-logged-in a:hover { color: #083836; }
.checkbox-row label {
    margin-bottom: 0;
}

div#shopurl-group {
    display: none;
}

/* Form Loading States */
.custom-vendor-form {
    position: relative;
}

.custom-vendor-form.is-loading {
    pointer-events: none;
}

.form-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    border-radius: 8px;
}

.form-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #aa2d4b;
    border-radius: 50%;
    animation: formSpin 1s linear infinite;
}

@keyframes formSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Submit Button Loading State */
#vendor-register-submit.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

#vendor-register-submit .btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: formSpin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}