/* NX Patient Forms Widget - Clean Class Names */

.nx-patient-forms-widget {
    width: 100%;
    box-sizing: border-box;
}

.nx-patient-forms-widget *,
.nx-patient-forms-widget *::before,
.nx-patient-forms-widget *::after {
    box-sizing: border-box;
}

.nx-pf-container {
    width: 100%;
}

.nx-pf-container > * {
    min-width: 0;
}

.nx-pf-full-width {
    width: 100%;
}

.nx-pf-section-wrapper {
    display: grid;
    grid-gap: 64px;
    margin-bottom: 48px;
}

@media (min-width: 768px) and (max-width: 1279px) {
    .nx-pf-section-wrapper {
        grid-gap: 64px;
    }
}

@media (max-width: 767px) {
    .nx-pf-section-wrapper {
        grid-gap: 40px;
    }
}

.nx-pf-background-container {
    width: 1234px;
    position: relative;
    top: 0px;
    margin: 0 auto;
    overflow: visible;
    max-width: 1280px;
}

@media (min-width: 768px) and (max-width: 1279px) {
    .nx-pf-background-container {
        width: calc(100vw - 16px);
        top: 0;
        transform: translateX(-50%);
        left: 50%;
        max-width: 768px;
    }
}

@media (max-width: 767px) {
    .nx-pf-background-container {
        width: 100vw;
        transform: translateX(-50%);
        left: 50%;
        top: 14px;
        max-width: 768px;
    }
}

/* Layered Cards Effect */
.nx-pf-card {
    position: absolute;
    width: 1205px;
    top: 0;
    bottom: 0;
    border-radius: 8px;
}

.nx-pf-bottom-card {
    top: 12px;
    left: 10px;
    transform: rotate(-1deg);
}

@media (min-width: 768px) and (max-width: 1279px) {
    .nx-pf-bottom-card {
        left: 2px;
        width: 98%;
    }
}

@media (max-width: 767px) {
    .nx-pf-bottom-card {
        left: 4px;
        width: 97%;
        transform: rotate(-1.5deg);
    }
}

.nx-pf-top-card {
    top: 12px;
    left: 16px;
}

@media (min-width: 768px) and (max-width: 1279px) {
    .nx-pf-top-card {
        left: 4px;
        width: 99%;
    }
}

@media (max-width: 767px) {
    .nx-pf-top-card {
        left: 5px;
        width: 98%;
    }
}

.nx-pf-yellow-bg {
    background-color: #E6F3F9;
}

.nx-pf-blue-bg {
    background: linear-gradient(135deg, #5ba0f2 0%, #4a90e2 50%, #3a7bd5 100%);
}

.nx-pf-content-wrapper {
    position: relative;
    z-index: 1;
}

.nx-pf-inner-container {
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) and (max-width: 1279px) {
    .nx-pf-inner-container {
        max-width: 720px;
    }
}

@media (max-width: 767px) {
    .nx-pf-inner-container {
        max-width: 768px;
    }
}

.nx-pf-content-padding {
    padding: 72px 0px 0px 0px;
}

@media (min-width: 768px) and (max-width: 1279px) {
    .nx-pf-content-padding {
        padding: 40px 24px 0px;
    }
}

@media (max-width: 767px) {
    .nx-pf-content-padding {
        padding: 48px 24px 12px 24px;
    }
}

/* Content Grid */
.nx-pf-content-grid {
    display: grid;
    grid-gap: 48px;
    padding: 72px 0px 72px 0px;
}

@media (min-width: 1280px) {
    .nx-pf-content-grid {
        grid-template-rows: none;
        grid-template-columns: 476px auto;
        justify-content: space-between;
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    .nx-pf-content-grid {
        grid-template-rows: auto auto;
        grid-template-columns: none;
        justify-content: flex-start;
        grid-gap: 32px;
        padding: 40px 24px 40px;
    }
}

@media (max-width: 767px) {
    .nx-pf-content-grid {
        grid-template-rows: auto auto;
        grid-template-columns: none;
        justify-content: flex-start;
        grid-gap: 32px;
        padding: 48px 24px 48px 24px;
    }
}

/* Text Section */
.nx-pf-text-section {
    display: grid;
    grid-gap: 48px;
    align-content: flex-start;
}

@media (min-width: 768px) and (max-width: 1279px) {
    .nx-pf-text-section {
        grid-gap: 32px;
        max-width: 556px;
    }
}

@media (max-width: 767px) {
    .nx-pf-text-section {
        grid-gap: 32px;
    }
}

.nx-pf-content-stack {
    display: grid;
    grid-gap: 40px;
}

@media (min-width: 768px) and (max-width: 1279px) {
    .nx-pf-content-stack {
        grid-gap: 32px;
    }
}

@media (max-width: 767px) {
    .nx-pf-content-stack {
        grid-gap: 24px;
    }
}

.nx-pf-header-group {
    display: grid;
    grid-gap: 16px;
}

@media (max-width: 767px) {
    .nx-pf-header-group {
        grid-gap: 8px;
    }
}

/* Toolbar Badge */
.nx-pf-toolbar-badge {
    display: flex;
    align-items: center;
    width: fit-content;
    padding: 2px 8px;
    color: #FFF;
    background-color: #000;
    border-radius: 4px;
}

.nx-pf-toolbar-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
    display: block;
}

/* Main Title */
.nx-pf-main-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 48px;
    line-height: 48px;
    font-weight: 400;
    color: #FFF;
    margin: 0;
    display: block;
}

@media (min-width: 768px) and (max-width: 1279px) {
    .nx-pf-main-title {
        font-size: 40px;
        line-height: 40px;
    }
}

@media (max-width: 767px) {
    .nx-pf-main-title {
        font-size: 32px;
        line-height: 34px;
    }
}

/* Description */
.nx-pf-description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    line-height: 24px;
    font-weight: 400;
    color: #FFF;
    margin: 0;
    display: block;
}

/* Actions Group */
.nx-pf-actions-group {
    display: grid;
    grid-gap: 16px;
    justify-content: flex-start;
}

@media (max-width: 767px) {
    .nx-pf-actions-group {
        justify-content: initial;
    }
}

.nx-pf-button-row {
    display: grid;
    grid-gap: 16px;
    grid-auto-flow: row;
    align-items: flex-start;
}

/* Download Button */
.nx-pf-download-btn {
    display: inline-flex;
    align-items: center;
    border-style: solid;
    border-width: 2px;
    cursor: pointer;
    height: fit-content;
    justify-content: center;
    padding: 7px 16px;
    width: fit-content;
    color: #FFF;
    border-color: transparent;
    background-color: #FF8D00;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nx-pf-download-btn:focus {
    outline: 3px solid #FFDBB3;
}

.nx-pf-download-btn:hover {
    background-color: #FF7524;
    color: #FFF;
    text-decoration: none;
}

.nx-pf-download-btn:active {
    background-color: #F75A03;
}

@media (max-width: 767px) {
    .nx-pf-download-btn {
        width: 100%;
    }
}

.nx-pf-btn-content {
    display: flex;
    align-items: center;
    width: auto;
    justify-content: center;
    gap: 8px;
}

.nx-pf-btn-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
    display: block;
    text-align: left;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .nx-pf-btn-text {
        white-space: normal;
    }
}

/* Additional Info */
.nx-pf-additional-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nx-pf-note-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 22px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Learn More Link */
.nx-pf-learn-more {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 22px;
    font-weight: 400;
    display: inline;
}

.nx-pf-learn-link {
    cursor: pointer;
    color: #FFF;
    text-decoration: none;
}

.nx-pf-learn-link:hover {
    color: #FFB528;
    text-decoration: none;
}

/* Image Section */
.nx-pf-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nx-pf-responsive-image {
    display: block;
    object-fit: contain;
    width: 556px;
    height: 422px;
    aspect-ratio: 556 / 422;
    border-radius: 8px;
}

@media (min-width: 768px) and (max-width: 1279px) {
    .nx-pf-responsive-image {
        width: 556px;
        height: 422px;
        object-fit: contain;
        aspect-ratio: 556 / 422;
    }
}

@media (max-width: 767px) {
    .nx-pf-responsive-image {
        width: 327px;
        height: 248px;
        object-fit: initial;
        aspect-ratio: 327 / 248;
    }
}

.nx-pf-placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 556px;
    height: 422px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

@media (max-width: 767px) {
    .nx-pf-placeholder-image {
        width: 327px;
        height: 248px;
    }
}

.nx-pf-placeholder-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    font-weight: 500;
}