/* NPI Search Main Container */
.npi-search-container {
    max-width: 954px;
    margin: 1rem auto 0;
    padding: 0;
    background: rgba(255, 255, 255, 0);
    font-family: "GothamSSm", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #64716D;
}

/* Search Form */
.npi-search-form {
    margin-bottom: 2rem;
}

.npi-input-wrapper {
    display: flex;
    gap: 12px;
    transition: all 0.3s ease;
    align-items: end;
}

.npi-search-form input[type="text"]#npi-postal-code {
    border: 1px solid #6E7C78 !important;
    outline: initial;
    height: 48px;
    width: 400px;
    background: transparent;
    padding: 12px 16px;
}

.xnpi-search-form input[type="text"]#npi-postal-code {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 1rem;
    color: #1a202c;
    outline: none;
    box-shadow: none;
    margin: 0;
    width: 100%;
}

.npi-search-form input[type="text"]#npi-postal-code::placeholder {
    color: #a0aec0;
}

.npi-search-form button[type="submit"]#npi-submit-btn {
    background: #64716D;
    width: 132px;
    height: 48px;
    padding-top: 17px;
    padding-right: 36px;
    padding-bottom: 17px;
    padding-left: 36px;
    border-radius: 1000px;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    outline: none;
    cursor: pointer;
    border: none;
    color: #fff;
}
.npi-search-form button[type="submit"]#npi-submit-btn:hover {
	opacity: 70%;
}

.npi-search-form button[type="submit"]#npi-submit-btn:disabled {
    background: #cbd5e1;
    color: #64748b;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

div#npi-search-info {
    font-family: GothamSSm;
    font-weight: 300;
    font-style: italic;
    font-size: 12px;
    line-height: 16.5px;
    letter-spacing: 0px;
    color: #64716D;
}

/* Spinner Animation */
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: npi-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes npi-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error Message */
.npi-error-message {
    margin-top: 1rem;
    padding: 12px 16px;
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    border-radius: 8px;
    font-size: 0.9rem;
    animation: npi-slideDown 0.3s ease-out;
}

@keyframes npi-slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Results Grid */
.npi-rh-top {
    font-family: GothamSSm;
    font-weight: 500;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.npi-rh-bottom {
    display: flex;
    justify-content: space-between;
}

span#npi-results-info {
    width: 270px;
    padding-top: 4px;
    padding-right: 5px;
    padding-bottom: 4px;
    padding-left: 5px;
    display: inline-block;
    background: #6E7C7833;
    font-weight: 500;
    font-size: 11px;
    line-height: 16.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    color: #64716D;
}

span#npi-results-count {
    font-family: GothamSSm;
    font-weight: 500;
    font-size: 11px;
    line-height: 16.5px;
    letter-spacing: 0px;
}

.npi-results-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Results Cards */
.npi-card-item {
    display: flex;
    justify-content: space-between;
    border: 1px solid #6E7C7833;
    padding: 15px;
}

.npi-person-name {
    font-family: GothamSSm;
    font-weight: 500;
    font-size: 15px;
    line-height: 22.5px;
    letter-spacing: 0px;
    color: #000;
}

.npi-person-badge {
    font-family: GothamSSm;
    background: #6E7C7830;
    padding: 2px 8px;
    display: inline;
    font-weight: 500;
    font-size: 10px;
    line-height: 15px;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.npi-person-badge>.npi-badge {
    padding: 0px;
    background: none;
    font-size: 10px;
    border: none;
}

.npi-location-address {
    font-family: GothamSSm;
    font-weight: 500;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0px;
}

.npi-milestone-taxonomy {
    font-family: GothamSSm;
    font-weight: 500;
    font-size: 13px;
    line-height: 19.5px;
    letter-spacing: 0px;
}

.npi-car-item-col-1 {
    /** max-width: 300px; **/
	min-width: 40%;
}
.npi-card-item-col-2 {
	min-width: 30%;
}
.npi-card-item-col-3 {}
.npi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 2px 4px -1px rgba(0, 0, 0, 0.01);
    position: relative;
    overflow: hidden;
}

.npi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #4f46e5, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.npi-card:hover {
    transform: translateY(-2px) scale(1.005);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.08),
        0 4px 12px -2px rgba(0, 0, 0, 0.03);
    border-color: #cbd5e1;
}

.npi-card:hover::before {
    opacity: 1;
}

.npi-card-header {
    margin-bottom: 1.25rem;
}

.npi-card-type-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

/* Badges */
.npi-type-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.npi-badge-individual {
    background-color: #e0e7ff;
    color: #4338ca;
}

.npi-badge-organization {
    background-color: #ecfdf5;
    color: #047857;
}

.npi-badge {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 550;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
}

.npi-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

/* Card Body */
.npi-card-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .npi-card-body {
        grid-template-columns: 160px 1fr;
    }
}

.npi-info-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.npi-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.npi-info-value {
    font-size: 0.95rem;
    color: #334155;
    font-weight: 500;
}

.address-value {
    line-height: 1.5;
}

.npi-card-phone {
    margin-top: 6px;
    font-size: 0.875rem;
    color: #64748b;
}

/* No Results & Loading States */
.npi-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
    font-size: 1.1rem;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
}

.npi-loading-shimmer {
    text-align: center;
    padding: 4rem 1rem;
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Pagination */
#npi-pagination {
    display: none;
}

.npi-pagination-container {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    border-top: 1px solid #6E7C7833;
    padding-top: 20px;
}


.npi-pagination-info {
    font-size: 13px;
    font-weight: 500;
    color: #64716D;
    letter-spacing: 0.5px;
}

.npi-pagination-list {
    display: flex;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center;
    gap: 5px;
}

a.npi-page-btn {
    font-family: Inter;
    font-weight: 500;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.5px;
    text-align: center;
    border: 1px solid #6E7C7866;
    border-radius: 0;
    padding: 6px 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    color: #64716D;
}

a.npi-page-btn:hover {
    background: #ffffff;
    color: #4f46e5;
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.npi-page-active {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
	display: inline-block;
}

.npi-page-disabled {
    color: #cbd5e1;
    cursor: not-allowed;
	display: none;
}

.npi-page-prev,
.npi-page-next {
    font-weight: 700;
}

/* form */
.npi-result-form-wrapper {
    padding-top: 45px;
}

.npi-result-form-wrapper .provider-form {
    max-width: 1100px;
    margin: auto;
    font-family: Arial, sans-serif;
}

.npi-result-form-wrapper .provider-form .title {
    margin-bottom: 20px;
    font-family: GothamSSm;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0px;
}

.npi-result-form-wrapper .provider-form .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    max-width: 600px;
}

.npi-result-form-wrapper .provider-form input[type=text],
.npi-result-form-wrapper .provider-form input[type=email] {
    flex: 1;
    height: 48px;
    padding: 0 22px;
    font-size: 14px;
    color: #666;
    box-sizing: border-box;
    border: 1px solid #6E7C78;
    background: none;
}

.npi-result-form-wrapper .provider-form input::placeholder {
    color: #c4c4c4;
}

.npi-result-form-wrapper .provider-form .checkbox-row {
    margin-bottom: 20px;
}

.npi-result-form-wrapper .provider-form .checkbox-row label {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 30px;
}

.npi-result-form-wrapper .provider-form .checkbox-row span {
    font-family: GothamSSm;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0px;
}

.npi-result-form-wrapper .provider-form .checkbox-row input :not(:checked) {
    background: none;
    appearance: none;
    -webkit-appearance: none;
}

.npi-result-form-wrapper .provider-form .checkbox-row input {
    width: 20px;
    height: 20px;
    margin-left: 0;
    outline: 1px solid #6E7C78;
    outline-offset: -1px;
}

.npi-result-form-wrapper .provider-form .terms {
    margin-bottom: 30px;
    font-family: GothamSSm;
    font-weight: 500;
    font-size: 11px;
    line-height: 17.5px;
    letter-spacing: 0px;
}

.npi-result-form-wrapper .provider-form button {
    background: #6d7a73;
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 16px 38.5px;
    cursor: pointer;
    font-family: GothamSSm;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.6px;
    vertical-align: middle;
    text-transform: uppercase;
}

.npi-result-form-wrapper .provider-form button:hover {
    background: #55615a;
}

#submitBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.npi-result-form-wrapper .provider-form .message {
    margin-top: 20px;
    font-size: 18px;
    color: #e83621;
}

.npi-result-form-wrapper .provider-form .message p.error {
	color: #e83621;
}

@media (max-width: 815px) {
    .npi-result-form-wrapper .provider-form .form-row {
        display: block;
        max-width: 100%;
    }

    .npi-result-form-wrapper .provider-form .form-row>input {
        display: block;
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
	
	.npi-input-wrapper {
		display: block;
	}
	.npi-input-wrapper label p {
		margin-bottom: 10px;
	}
	.npi-search-form button[type="submit"]#npi-submit-btn {
    	margin-top: 15px;
	}
}

@media (max-width: 486px) {
    .npi-input-wrapper>label {
        width: calc(100% - 138px);
    }

    .npi-search-form input[type="text"]#npi-postal-code {
        width: 100%;
    }

    .npi-rh-bottom {
        display: block;
    }

    .npi-card-item {
        display: block;
    }
	
	.npi-input-wrapper {
		display: block;
	}
	.npi-input-wrapper label p {
		margin-bottom: 10px;
	}
	.npi-search-form button[type="submit"]#npi-submit-btn {
		width: 100%;
    	margin-top: 15px;
	}
}