/* Página pública da UDE — solicitação da carteirinha. */
body.ude-public {
    font-family: Inter, "Segoe UI", sans-serif;
    color: #12202F;
    -webkit-font-smoothing: antialiased;
}

body.ude-public:not(:has(.xucomxx-hero)) {
    background:
        radial-gradient(720px 320px at 100% -8%, rgba(253, 188, 17, .18), transparent 60%),
        radial-gradient(640px 360px at -10% 0%, rgba(40, 101, 174, .12), transparent 55%),
        #F6F8FB !important;
}

body.ude-public h1,
body.ude-public h2,
body.ude-public h3,
body.ude-public .fs-title {
    font-family: Poppins, Inter, sans-serif;
    letter-spacing: -.02em;
}

.ude-public-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #eef1f6;
    box-shadow: 0 8px 24px rgba(18, 42, 75, .05);
}

.ude-public-header::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #47AE44 0 33%, #FDBC11 33% 66%, #2865AE 66% 100%);
}

.ude-public-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ude-public-brand img {
    height: 54px;
    width: auto;
    display: block;
}

.ude-public-enter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #122A4B !important;
    text-decoration: none !important;
    background: #fff;
    border: 1.5px solid #dfe6ee;
    border-radius: 999px;
    padding: 10px 16px;
    white-space: nowrap;
}

.ude-public-enter:hover {
    background: #F6F8FB;
    color: #122A4B !important;
}

.ude-public-main {
    min-height: calc(100vh - 160px);
    padding: 28px 12px 40px;
}

.ude-public-footer {
    background: #0B1D36;
    color: #a8b9d0;
    padding: 28px 20px;
}

.ude-public-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ude-public-footer img {
    height: 40px;
    width: auto;
    background: #fff;
    border-radius: 12px;
    padding: 6px 10px;
}

.ude-public-footer p {
    margin: 0;
    font-size: 13px;
}

.ude-accent-dots {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.ude-accent-dots i {
    display: block;
    height: 5px;
    border-radius: 99px;
}

.ude-accent-dots i:nth-child(1) { width: 22px; background: #2865AE; }
.ude-accent-dots i:nth-child(2) { width: 14px; background: #FDBC11; }
.ude-accent-dots i:nth-child(3) { width: 14px; background: #47AE44; }

/* Formulário público padrão (não altera a campanha Xucomxx) */
body.ude-public:not(:has(.xucomxx-hero)) .panel,
body.ude-public:not(:has(.xucomxx-hero)) .panel-body,
body.ude-public:not(:has(.xucomxx-hero)) #grad1 {
    background: transparent;
    border: none;
    box-shadow: none;
}

body.ude-public:not(:has(.xucomxx-hero)) #grad1 > img:first-child {
    display: none;
}

body.ude-public:not(:has(.xucomxx-hero)) #grad1 > .row > .col-md-6,
body.ude-public:not(:has(.xucomxx-hero)) #grad1 > .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 860px;
}

body.ude-public:not(:has(.xucomxx-hero)) .card {
    border: none !important;
    border-radius: 28px !important;
    box-shadow: 0 28px 60px -32px rgba(18, 42, 75, .45) !important;
    background: #fff;
    margin-bottom: 12px;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform {
    text-align: left;
    margin-top: 8px;
    font-size: 15px;
    color: #12202F;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform fieldset {
    background: transparent;
    border-radius: 0;
    padding-bottom: 8px;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform fieldset .form-card {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 22px 4px !important;
    color: #12202F !important;
}

body.ude-public:not(:has(.xucomxx-hero)) .fs-title {
    color: #0B1D36 !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    margin: 8px 0 18px !important;
}

body.ude-public:not(:has(.xucomxx-hero)) .form-label,
body.ude-public:not(:has(.xucomxx-hero)) #msform label {
    color: #122A4B !important;
    font-weight: 600;
    font-size: 13px;
}

body.ude-public:not(:has(.xucomxx-hero)) label[for="cupom"] {
    display: block;
    background: #fff5db;
    border: 1px solid #f4e2ab;
    color: #8a6400 !important;
    border-radius: 14px;
    padding: 12px 14px;
    line-height: 1.45;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform .form-control,
body.ude-public:not(:has(.xucomxx-hero)) #msform select.form-control,
body.ude-public:not(:has(.xucomxx-hero)) #msform textarea.form-control {
    border: 1.5px solid #dfe6ee !important;
    border-radius: 12px !important;
    min-height: 46px;
    padding: 10px 14px !important;
    background: #fff !important;
    color: #12202F !important;
    box-shadow: none !important;
    font-weight: 500;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform .form-control:focus,
body.ude-public:not(:has(.xucomxx-hero)) #msform select.form-control:focus {
    border-color: #2865AE !important;
    box-shadow: 0 0 0 3px rgba(40, 101, 174, .15) !important;
    outline: none;
}

body.ude-public:not(:has(.xucomxx-hero)) #progressbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    list-style: none;
    width: auto !important;
    max-width: none !important;
    margin: 22px 18px 16px;
    padding: 0 !important;
    overflow: visible;
}

body.ude-public:not(:has(.xucomxx-hero)) #progressbar::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 16.6%;
    right: 16.6%;
    height: 2px;
    background: #e6eaf1;
    z-index: 0;
}

body.ude-public:not(:has(.xucomxx-hero)) #progressbar li {
    float: none !important;
    flex: 1 1 0;
    width: auto !important;
    max-width: none !important;
    padding: 0 6px !important;
    text-align: center;
    color: #5A6B7D;
    font-size: 12px;
    position: relative;
    z-index: 1;
}

body.ude-public:not(:has(.xucomxx-hero)) #progressbar li:after {
    display: none !important;
}

body.ude-public:not(:has(.xucomxx-hero)) #progressbar .fs-title-menu {
    display: block;
    text-align: center !important;
    font-family: Poppins, sans-serif !important;
    font-size: 11px !important;
    letter-spacing: .03em;
    color: #5A6B7D !important;
    margin-top: 8px;
}

body.ude-public:not(:has(.xucomxx-hero)) #progressbar li.active,
body.ude-public:not(:has(.xucomxx-hero)) #progressbar li.active .fs-title-menu {
    color: #122A4B !important;
}

body.ude-public:not(:has(.xucomxx-hero)) #progressbar li:before {
    background: #e6eaf1;
    color: #5A6B7D;
    box-shadow: none;
    position: relative;
    z-index: 1;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.ude-public:not(:has(.xucomxx-hero)) #progressbar li:after {
    background: #e6eaf1;
}

body.ude-public:not(:has(.xucomxx-hero)) #progressbar li.active:before,
body.ude-public:not(:has(.xucomxx-hero)) #progressbar li.active:after {
    background: #122A4B !important;
    color: #FDBC11;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform fieldset > label {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    width: 100% !important;
    margin: 8px 0 14px !important;
    padding: 0 !important;
    float: none !important;
    cursor: pointer;
    text-align: center !important;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform fieldset > label br {
    display: none !important;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform fieldset > label label {
    display: inline !important;
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    text-align: center !important;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform fieldset > label input[type="checkbox"] {
    display: inline-block !important;
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 16px !important;
    border: 1.5px solid #dfe6ee !important;
    border-radius: 4px !important;
    position: static !important;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform .form-card > .row > .col-md-6:has(.g-recaptcha) {
    flex: 0 0 100%;
    max-width: 100%;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform .action-button.btn-primary {
    width: auto;
    min-width: 168px;
    min-height: 48px;
    margin: 8px 8px 18px 0;
    padding: 12px 28px;
    border: none !important;
    border-radius: 999px !important;
    background: linear-gradient(120deg, #FDBC11, #E0A100) !important;
    color: #0B1D36 !important;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    box-shadow: 0 16px 30px -12px rgba(253, 188, 17, .75);
}

body.ude-public:not(:has(.xucomxx-hero)) #msform .action-button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -12px rgba(253, 188, 17, .85) !important;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform fieldset > .action-button:first-of-type,
body.ude-public:not(:has(.xucomxx-hero)) #msform fieldset > .action-button-previous:first-of-type {
    margin-left: 22px;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform #field2 {
    text-align: center;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform #field2 .form-card {
    text-align: left;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform .ude-terms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 10px 0 14px;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform .ude-terms input[type="checkbox"] {
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 16px;
    position: static !important;
    cursor: pointer;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform .ude-terms label {
    width: auto !important;
    margin: 0 !important;
    display: inline !important;
    cursor: pointer;
    font-weight: 600;
    color: #122A4B !important;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform #submitDados {
    display: inline-block !important;
    width: auto !important;
    min-width: 168px;
    margin: 8px auto 18px !important;
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
    float: none !important;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform .action-button-previous.btn-primary {
    background: #fff !important;
    color: #122A4B !important;
    border: 1.5px solid #dfe6ee !important;
    box-shadow: none;
    margin-right: 8px;
}

body.ude-public:not(:has(.xucomxx-hero)) #msform .action-button:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

body.ude-public:not(:has(.xucomxx-hero)) .ude-pay-highlight {
    background: linear-gradient(160deg, #2865AE 0%, #122A4B 58%, #0B1D36 100%) !important;
    border-radius: 20px !important;
    padding: 28px 22px !important;
    color: #fff !important;
    box-shadow: 0 22px 40px -24px rgba(40, 101, 174, .65);
}

body.ude-public:not(:has(.xucomxx-hero)) .ude-pay-highlight h1,
body.ude-public:not(:has(.xucomxx-hero)) .ude-pay-highlight h3,
body.ude-public:not(:has(.xucomxx-hero)) .ude-pay-highlight #contador {
    color: #fff !important;
    font-family: Poppins, sans-serif;
}

body.ude-public:not(:has(.xucomxx-hero)) #codigoParaCopiar {
    border: 1.5px dashed #dfe6ee !important;
    border-radius: 14px;
    background: #fff;
    color: #122A4B;
    word-break: break-all;
}

body.ude-public:not(:has(.xucomxx-hero)) #field3 > button {
    border: none;
    border-radius: 999px;
    background: #122A4B;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    padding: 12px 22px;
    margin-bottom: 16px;
}

body.ude-public:not(:has(.xucomxx-hero)) .alert {
    max-width: 920px;
    margin: 0 auto 16px;
    border: none;
    border-radius: 14px;
    border-left: 4px solid #2865AE;
}

body.ude-public:not(:has(.xucomxx-hero)) .alert-success {
    background: #e9f7ea;
    color: #1d6a32;
    border-left-color: #47AE44;
}

body.ude-public:not(:has(.xucomxx-hero)) .alert-danger {
    background: #fdecec;
    color: #8d2424;
    border-left-color: #c23b3b;
}

body.ude-public #divLoading .modal-header {
    display: none;
}

body.ude-public #divLoading .modal-content {
    border: none;
    border-radius: 18px;
}

body.ude-public #divLoading .modal-body::before {
    content: "";
    display: block;
    width: 36px;
    height: 36px;
    margin: 4px auto 14px;
    border-radius: 50%;
    border: 3px solid #e6eaf1;
    border-top-color: #FDBC11;
    animation: ude-spin .7s linear infinite;
}

@keyframes ude-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .ude-public-brand img {
        height: 42px;
    }

    .ude-public-enter span {
        display: none;
    }

    body.ude-public:not(:has(.xucomxx-hero)) #msform fieldset .form-card {
        padding: 8px 12px 4px !important;
    }

    body.ude-public:not(:has(.xucomxx-hero)) .fs-title {
        font-size: 22px !important;
    }

    body.ude-public:not(:has(.xucomxx-hero)) #progressbar .fs-title-menu {
        font-size: 10px !important;
    }
}
