.nvpg-customer-form__form-container {
    container-type: inline-size;
    font-family: Tahoma, sans-serif;
}

.nvpg-customer-form__form-container fieldset {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 2px solid lightgrey;
    border-radius: 0.4em;
}

@container (max-width: 500px) {
    .nvpg-customer-form__form-container fieldset {
        grid-template-columns: 1fr;
    }
}

.nvpg-customer-form__input-container {
    display: flex;
    flex-flow: column nowrap;
    gap: 0.2em;
    padding: 0.5em;

    label {
        padding: 0.2em 0.4em;
        font-weight: bold;
    }

    input, select, textarea {
        height: 2em;
        padding: 0.2em 0.4em;
        border: 1px solid lightgrey;
        border-radius: 0.2em;
        font-size: 1em;
    }

    textarea {
        height: 6em;
    }

    .box-mobile {
        display: flex;
        flex-flow: row nowrap;
    }

    #sender-country-code {
        width: 4em;
        margin-right: 1em;
    }

    #sender-mobile {
        width: 100%;
    }
}

.nvpg-customer-form__input-container:has(input[name="sender-name"]), .nvpg-customer-form__input-container:has(input[name="sender-address"]) {
    grid-column: 1/-1;
}

.nvpg-customer-form__form-feedback {
    display: none;
    font-size: 0.75em;
    color: red;
}

.nvpg-customer-form__check-boxes {
    display: flex;
    flex-flow: column nowrap;
    gap: 0.2em;
    padding: 0.5em 1em;
}

.nvpg-customer-form__submit {
    width: 100%;
    height: 2em;
    border: none;
    border-radius: 0.2em;
    background-color: darkslateblue;
    color: white;
    text-align: center;
}

.nvpg-sms-form__form-container {
    container-type: inline-size;
    font-family: Tahoma, sans-serif;

    fieldset {
        display: flex;
        flex-flow: row nowrap;
        border: 2px solid lightgrey;
        border-radius: 0.4em;
    }

    @container (max-width: 500px) {
        fieldset {
            grid-template-columns: 1fr;
        }
    }
}

/* Chrome, Edge, Safari */
.hide-number-counters::-webkit-outer-spin-button,
.hide-number-counters::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.hide-number-counters[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield; /* modern spec */
}

.hide-number-counters {
    appearance: textfield;
}

.nvpg-sms-form__button-back {
    width: 50%;
    height: 2em;
    border: none;
    border-radius: 0.2em;
    background-color: #8d8d8d;
    color: white;
    text-align: center;
}

/* custom spinner */
#nvpg-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ddd;
    border-top: 5px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* admin cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #666;
}

.card p {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    color: #222;
}

.text-center-vertical {
    display: flex;
    align-items: center;
}

.btn-container {
    margin-top: 1em;
}

.hidden {
    display: none;
}

.row-container {
    display: flex;
    flex-flow: row nowrap;
    gap: 0.2em;
    padding: 0.5em;
}

.text-danger {
    font-weight: bold;
    color: red;
}