.nar-modal-content {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nar-modal-header {
    background: linear-gradient(to bottom, #148fac, #027373, #04BFAD);
    color: white;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.nar-modal-body {
    padding: 0;
}

.nar-card {
    border: none;
    border-radius: 12px;
    box-shadow: none;
    max-width: 100%;
    margin: 0;
    padding: 1.5rem;
    position: relative;
    z-index: 10;
    background: #fff;
}

.nar-form-step {
    display: none;
}

.nar-form-step.nar-active {
    display: block;
}

.nar-input-inline {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}

.nar-input-inline select,
.nar-input-inline input {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ced4da;
}

.nar-input-inline select.nar-title {
    flex: 0 0 60px;
    min-width: 50px;
    appearance: none;
    background: none;
    cursor: pointer;
}

.nar-input-inline input.nar-fname,
.nar-input-inline input.nar-lname {
    flex: 1 1 0;
    min-width: 80px;
}

.nar-identity {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    font-weight: 500;
}

.nar-identity img {
    width: 20px;
    height: 20px;
}

.nar-btn-next {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 20px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(180deg, #ff4d4d, #ff1a1a, #990000) !important;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    position: relative;
     animation: shake 2s infinite;
}

.nar-btn-next:hover {
        background: linear-gradient(180deg, #ff4d4d, #ff1a1a, #990000) !important;
         animation: shake 2s infinite;
}

.nar-btn-next::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #fff;
    display: inline-block;
    margin-left: 5px;
}


.nar-btn-back {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    background: #2e2e2e;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
}

.nar-btn-back:hover {
    background: #000000;
}
.nar-btn-back::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid #fff; /* ⬅️ points arrow to the left */
    display: inline-block;
    margin-right: 5px; /* spacing between arrow and text */
}
.nar-preview li {
    font-size: 0.95rem;
}

.nar-helper-text {
    font-size: 0.85rem;
    color: #555;
    margin-top: 3px;
}

.nar-invalid {
    border-color: red !important;
    animation: nar-shake .3s;
}

@keyframes nar-shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0);
    }
}

.nar-thankyou {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 99999;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.nar-hidden {
    display: none !important;
}

#countdown {
    font-weight: bold;
    color: #dc3545;
    font-size: 1.2em;
}

.nar-btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .nar-thankyou {
        padding: 1.5rem;
    }
    
    .nar-btn-group {
        flex-direction: column;
    }
}

.nar-thankyou h3 {
    margin-bottom: 1rem;
}

.nar-thankyou ul {
    margin-bottom: 1rem;
}

.nar-thankyou .nar-btn-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.nar-confetti-piece {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
    opacity: 0.9;
}

.nar-modal-back-button {
    position: absolute;
    top: 18px;
    left: 18px;
    background-color: black;
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    border: none;
    font-size: 1.1rem;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
}

.nar-modal-close-button {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: black;
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    border: none;
    font-size: 1.1rem;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nar-form-title {
    margin-bottom: 1.5rem;
    text-align: center;
}

.nar-hidden {
    display: none;
}

button.swal2-confirm.swal2-styled {
    width: 100% !important;
    background-color: #de2b2b !important;
    padding: 10px 40px 10px 40px;
}

/* Make modal more compact and square on desktop */
@media (min-width: 768px) {
    .modal-dialog.modal-lg {
        max-width: 550px; /* reduce width */
    }

    .nar-modal-content {
        border-radius: 15px;
        width: 100%;
    }
}

/* For smaller screens (mobile view) */
@media (max-width: 767px) {
    .nar-modal-content {
        border-radius: 10px;
        width: 100%;
    }
}

/* Align identity, language note, and category note to left and make them small */
#narIdentity,
#narLangNote,
#narCatNote {
    text-align: left !important;
    font-size: 0.8rem !important;
    line-height: 1.2;
    color: #444;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* Ensure gender icon and text stay inline and neat */
#narIdentity img {
    width: 18px !important;
    height: 18px !important;
}

/* Small text padding for mobile to fit in one line */
@media (max-width: 576px) {
    #narIdentity,
    #narLangNote,
    #narCatNote {
        font-size: 0.75rem !important;
        gap: 4px;
    }
}

    /* Ensure the heading stays on one line */
    #narThankYouPage h3.text-success {
        white-space: nowrap;
    }

    /* Left-align phone and password */
    #narThankYouPage ul.list-group li.list-group-item {
        text-align: left;
    }


/* Default placeholder styling (optional) */
.nar-input-inline input::placeholder,
.nar-input-inline select::placeholder {
    font-size: 14px; /* default size */
}

/* Smaller placeholder on mobile (<= 320px) */
@media (max-width: 320px) {
    .nar-input-inline input::placeholder,
    .nar-input-inline select::placeholder {
        font-size: 11px; /* smaller for small screens */
    }
}




/* optional: ensure thankyou page has lower stacking */

/* Base style */
.bonus-text-nar {
    white-space: nowrap;   /* Keep everything on one line */
    font-size: 20px;       /* Base font size */
    font-weight: 500;
    margin-top: 0.5rem;
    color:black !important;
}
#narThankYouPage {
    z-index: 200000 !important; /* Higher than Bootstrap modal backdrop */
    position: fixed;
}

.modal-backdrop {
    display: none !important; /* optional: hides any leftover overlay */
}


