/* =========================================================
   UNITED WOUNDS REFERRAL FORM
   ========================================================= */
button#uwr-add-wound {
    background-color: #1DA3B3;
    font-family: "Inter", Sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2em;
    fill: #FFFFFF;
    color: #FFFFFF;
    border-radius: 6px 6px 6px 6px;
    padding: 10px 20px 10px 20px;
    border: none;
}

button#uwr-remove-wound {
    background-color: #89B740;
    font-family: "Inter", Sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2em;
    fill: #FFFFFF;
    color: #FFFFFF;
    border-radius: 6px 6px 6px 6px;
    padding: 10px 20px 10px 20px;
    border: none;
}

button#uwr-add-wound:hover {
    background: #89B740;
}

button#uwr-remove-wound:hover {
    background: #1DA3B3;
}

button.uwr-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    padding: 0;
    border: none;
    cursor: pointer;
    background: #0b274e4f;
    transition: background-color .3s ease;
}

button.uwr-indicator.active:focus {
    background: #0B274E;
}

button.uwr-remove-file,
button.uwr-remove-image {
    line-height: 5px;
    border-color: #003B5C;
    color: #003B5C;
    font-size: 22px;
}

button.uwr-remove-file:focus, button.uwr-remove-file:hover, 
button.uwr-remove-image:focus, button.uwr-remove-image:hover
{background: #1DA3B3 !important;}

button#uwr-submit {
    background-color: #1DA3B3;
    font-family: "Inter", Sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2em;
    border: none;
    fill: #FFFFFF;
    color: #FFFFFF;
    box-shadow: 0px 14px 41px 0px rgba(29.000000000000018, 163.00000000000003, 179, 0.32941176470588235);
    border-radius: 6px 6px 6px 6px;
    padding: 16px 32px 16px 32px;
}
button#uwr-submit:hover {
    background-color:
#89B740;
}
.uwr-disclaimer-content {
    font-family: "Inter", Sans-serif;
    font-size: 14px;
    font-style: italic;
}

#uwr-referral-app {
    --uwr-primary: var(--e-global-color-primary, #42647a);
    --uwr-primary-dark: #003B5C;
    --uwr-secondary: var(--e-global-color-secondary, #cadd95);
    --uwr-secondary-dark: #506a2d;
    --uwr-light: rgba(66, 100, 122, 0.08);
    --uwr-border: #d8d8d8;
    --uwr-danger: #dc2626;
    --uwr-text: #18384a;
}


/* =========================================================
   SECTION
   ========================================================= */

.uwr-section {
   
}


.uwr-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #EBF7FF;
    padding: 20px;
    border-radius: 16px;
    box-sizing: border-box;
}


/* =========================================================
   HEADINGS
   ========================================================= */

.uwr-heading {
    font-family: "DM Serif Text", Sans-serif;
    font-size: 50px;
    font-weight: 400;
    line-height: 1.2em;
    color: #003B5C;
    margin: 0 0 24px;
}


.uwr-referrer-heading {
    margin-top: 60px;
}


/* =========================================================
   GRID
   ========================================================= */

.uwr-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}


.uwr-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* =========================================================
   FIELDS
   ========================================================= */

.uwr-field {
    min-width: 0;
}


.uwr-field label,
.uwr-label {
    display: flex;
    margin-bottom: 12px;
    font-family: "DM Serif Text", Sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2em;
    color: #003B5C;
}


.uwr-field label span,
.uwr-label span,
.uwr-checkbox-wrapper strong {
    color: #1DA3B3;
}


.uwr-field input[type="text"],
.uwr-field input[type="tel"],
.uwr-field input[type="email"],
.uwr-field input[type="date"] {
    width: 100%;
    box-sizing: border-box;
    border: 0;
    outline: none;
    background: #ffffff;
    color: var(--uwr-primary-dark);
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 12px;
    min-height: 58px;
    font-family: inherit;
}


.uwr-field input:focus {
    outline: none;
    box-shadow: 0 0 0 1px var(--uwr-primary);
}


/* =========================================================
   FACE SHEET UPLOAD
   ========================================================= */

.uwr-upload-section {
    margin-bottom: 32px;
}


.uwr-upload-box {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 2px dashed #cfcfcf;
    border-radius: 10px;
    padding: 18px 24px;
    text-align: center;
    transition: all 0.25s ease;
}


.uwr-upload-box.uwr-drag-active {
    border-color: var(--uwr-primary);
    background: rgba(66, 100, 122, 0.04);
}


.uwr-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: #777;
}


.uwr-upload-icon svg {
    width: 100%;
    height: 100%;
}


.uwr-upload-box p {
    margin: 0;
    color: var(--uwr-primary-dark);
    font-size: 16px;
    line-height: 1.6;
    font-family: "Inter", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6em;
}


.uwr-upload-link {
    color: var(--uwr-secondary-dark);
    text-decoration: underline;
    cursor: pointer;
}


.uwr-mobile-upload {
    display: none;
}


.uwr-file-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.uwr-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px 12px;
    text-align: left;
}


.uwr-file-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #555;
    font-size: 13px;
}


.uwr-remove-file {
    border: 0;
    background: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}


/* =========================================================
   WOUND AREA
   ========================================================= */

.uwr-wound-wrapper {
    margin-bottom: 32px;
    background: #fff;
    border: 2px dashed #d3d3d3;
    border-radius: 12px;
    padding: 32px;
    box-sizing: border-box;
}


.uwr-wound-slide {
    width: 100%;
}


.uwr-wound-title {
    margin-bottom: 16px;
}


.uwr-wound-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}


.uwr-body-wrapper {
    width: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.uwr-body-wrapper svg {
    width: 100%;
    max-width: 430px;
    height: auto;
    overflow: visible;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   SVG BODY
   ========================================================= */

.uwr-body-svg path {
    fill: #ffffff;
    stroke: var(--uwr-primary-dark);
    stroke-width: 0.8;
    stroke-linejoin: round;
    stroke-linecap: round;
    transition:
        fill 0.15s ease,
        stroke 0.15s ease;
    cursor: pointer;
}


.uwr-body-svg path:hover {
    fill: rgba(66, 100, 122, 0.25);
}


.uwr-body-svg path.selected {
    fill: #1DA3B3;
    stroke: var(--uwr-primary-dark);
}


.uwr-svg-error {
    color: var(--uwr-danger);
    padding: 30px;
    text-align: center;
}


/* =========================================================
   LOCATION
   ========================================================= */

.uwr-wound-side {
    width: 100%;
}


.uwr-location-box {
    background: rgba(66, 100, 122, 0.08);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 12px;
}


.uwr-location-box .uwr-label {
    display: inline-block;
    margin: 0 12px 12px 0;
}


.uwr-location-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}


.uwr-location-tag {
    position: relative;
    background: #ffffff;
    border-radius: 999px;
    padding: 11px 36px 11px 14px;
    color: var(--uwr-primary-dark);
    font-size: 14px;
    line-height: 1.3;
}


.uwr-location-tag button {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--uwr-primary-dark);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 22px;
}


.uwr-no-location {
    font-family: "Inter", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6em;
    color: #444444;
}


/* =========================================================
   WOUND IMAGE UPLOAD
   ========================================================= */

.uwr-image-upload {
    background: rgba(66, 100, 122, 0.08);
    padding: 20px;
    border-radius: 10px;
}


.uwr-image-upload .uwr-upload-box {
    margin-top: 12px;
}


.uwr-image-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}


.uwr-image-item {
    min-width: 0;
}


.uwr-image-preview {
    position: relative;
    background: #f1f1f1;
    padding: 4px;
    border-radius: 8px;
}


.uwr-image-preview img {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 5px;
}


.uwr-image-item p {
    margin: 5px 4px 0;
    font-size: 10px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}


.uwr-remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    cursor: pointer;
    font-size: 18px;
    line-height: 24px;
}


/* =========================================================
   WOUND BUTTONS
   ========================================================= */

.uwr-wound-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}


.uwr-add-wound,
.uwr-remove-wound {
    border: 0;
    border-radius: 999px;
    padding: 14px 26px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: opacity .2s ease;
}


.uwr-add-wound {
    background: var(--uwr-primary);
    color: #fff;
}


.uwr-remove-wound {
    background: #CBDD95;
    color: var(--uwr-primary-dark);
}


.uwr-add-wound:hover,
.uwr-remove-wound:hover {
    opacity: .9;
}


.uwr-add-wound span {
    display: inline-block;
    margin-left: 7px;
    font-size: 20px;
}


/* =========================================================
   INDICATORS
   ========================================================= */

.uwr-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}


.uwr-indicator {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
}
.uwr-indicator:hover {
    background: #0B274E;
}


.uwr-indicator.active {
    background: #0B274E;
    transform: scale(1.2);
}


/* =========================================================
   PATIENT / CAREGIVER
   ========================================================= */

.uwr-patient-caregiver {
    margin-bottom: 32px;
}


.uwr-radio-group {
    display: flex;
    flex-direction: row;
    gap: 20px;
    background: rgba(66, 100, 122, 0.05);
    padding: 19px 20px;
    border-radius: 12px;
}


.uwr-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--uwr-primary-dark);
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}


.uwr-radio-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


.uwr-radio-circle {
    width: 24px;
    height: 24px;
    border: 2px solid var(--uwr-primary-dark);
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    color: transparent;
    font-size: 13px;
    font-weight: 700;
}


.uwr-radio-option input:checked + .uwr-radio-circle {
    background: #003B5C;
    border-color: var(--uwr-primary);
    color: #fff;
}


/* =========================================================
   DISCLAIMER
   ========================================================= */

.uwr-disclaimer {
    margin: 24px 0;
}


.uwr-disclaimer-content {
    background: rgb(29 163 179 / 20%);
    border-left: 4px solid #1DA3B3;
    padding: 24px;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}


.uwr-disclaimer-content p {
    margin: 0 0 12px;
}


.uwr-disclaimer-content p:last-child {
    margin-bottom: 0;
}


.uwr-disclaimer-content a {
    color: #2563eb;
    text-decoration: underline;
}

/* =========================================
   WOUND SLIDE ANIMATION
   ========================================= */

.uwr-slider {
    position: relative;
    overflow: hidden;
}

#uwr-wound-content {
    position: relative;
    will-change: transform, opacity;
}


/* Enter from right */
.uwr-slide-enter-right {
    animation: uwrSlideEnterRight 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}


/* Enter from left */
.uwr-slide-enter-left {
    animation: uwrSlideEnterLeft 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}


@keyframes uwrSlideEnterRight {

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

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

}


@keyframes uwrSlideEnterLeft {

    from {
        transform: translateX(-100%);
        opacity: 0;
    }

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

}


/* =========================================================
   CHECKBOX
   ========================================================= */

.uwr-checkbox-wrapper {
    margin-bottom: 24px;
}


.uwr-checkbox-wrapper label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #444;
    font-size: 14px;
    cursor: pointer;
}


.uwr-checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


.uwr-checkbox {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 2px solid var(--uwr-primary-dark);
    border-radius: 5px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 14px;
    font-weight: 700;
}


.uwr-checkbox-wrapper input:checked + .uwr-checkbox {
    background: var(--uwr-primary);
    border-color: var(--uwr-primary);
    color: #fff;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.uwr-submit-wrapper {
    display: flex;
    justify-content: flex-end;
}


.uwr-submit-button {
    border: 0;
    border-radius: 999px;
    padding: 16px 28px;
    background: var(--uwr-secondary);
    color: var(--uwr-primary-dark);
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: opacity .2s ease;
}


.uwr-submit-button:hover {
    opacity: .9;
}


.uwr-submit-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}


.uwr-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    vertical-align: middle;
    border: 2px solid rgba(0,0,0,.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: uwr-spin .7s linear infinite;
}


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


/* =========================================================
   MESSAGES
   ========================================================= */

.uwr-form-message {
    padding: 15px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}


.uwr-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}


.uwr-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}


/* =========================================================
   PHONE NOTICE
   ========================================================= */

.uwr-phone-notice {
    display: block;
    color: var(--uwr-primary-dark);
    margin-top: 8px;
    font-family: 'Inter';
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2em;
}
.uwr-phone-notice a {
	 color: var(--uwr-primary-dark);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .uwr-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .uwr-wound-grid {
        grid-template-columns: 1fr;
    }


    .uwr-body-wrapper {
        min-height: auto;
    }


    .uwr-body-wrapper svg {
        max-width: 350px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .uwr-section {
        padding: 40px 12px 70px;
    }


    .uwr-container {
        padding: 16px;
        border-radius: 14px;
    }


    .uwr-heading {
        font-size: 30px;
        margin-bottom: 20px;
    }


    .uwr-referrer-heading {
        margin-top: 45px;
    }


    .uwr-grid-3 {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    .uwr-field label,
    .uwr-label,
    .uwr-phone-notice {
        font-size: 18px;
    }


    .uwr-field input[type="text"],
    .uwr-field input[type="tel"],
    .uwr-field input[type="email"],
    .uwr-field input[type="date"] {
        font-size: 16px;
        padding: 14px 16px;
        min-height: 54px;
    }


    .uwr-mobile-upload {
        display: inline;
    }


    .uwr-wound-wrapper {
        padding: 20px 14px;
    }


    .uwr-wound-grid {
        gap: 20px;
    }


    .uwr-body-wrapper svg {
        max-width: 290px;
    }


    .uwr-image-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }


    .uwr-wound-buttons {
        justify-content: stretch;
        flex-direction: column;
    }


    .uwr-add-wound,
    .uwr-remove-wound {
        width: 100%;
    }


    .uwr-radio-group {
        flex-direction: column;
        gap: 15px;
    }


    .uwr-disclaimer-content {
        padding: 18px;
    }


    .uwr-submit-wrapper {
        justify-content: stretch;
    }


    .uwr-submit-button {
        width: 100%;
    }

}