h2 {
    padding: var(--ion-padding-0) var(--ion-padding-15);
    margin-top: var(--ion-margin-0);
    color: var(--ion-color-hospital);
}

.back {
    margin-left: 10px;
    font-size: larger;
    font-weight: 800;
}

ion-footer {
    padding: 10px;
    background-color: #FAFAFA;
    box-shadow: none;
}

.hi {
    &::part(native) {
        --background: var(--ion-color-hospital) !important;
    }
}

.hmi {
    &::part(native) {
        --background: var(--ion-color-medium-shade) !important;
    }
}

p {
    font-size: var(--ion-font-size-14);
    padding: var(--ion-padding-0) var(--ion-padding-15);
    margin-top: 0;
    color: var(--ion-content-color);
}

.agreed-content {
    display: flex;
    align-items: start;
    margin-bottom: 10px;

    label {
        padding-left: var(--ion-padding-10);
        font-size: 13px;
        font-weight: 500;
    }

    ion-checkbox {
        &.checkbox-checked {
            --checkbox-background-checked: var(--ion-color-hospital);
            --border-color-checked: var(--ion-color-hospital);
        }
    }

    a {
        color: var(--ion-color-danger);
        padding: 0 5px;
        cursor: pointer;
    }
}

.container {
    padding: 0px 15px;
}


.modal-card {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 10px;

    ion-card-header {
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    ion-card-title {
        font-size: 18px;
        font-weight: 600;
    }

    ion-card-content {
        p {
            color: black;
        }

        padding-bottom: 0 !important;
    }

    p {
        margin-bottom: 20px;
        font-size: 14px;
        font-weight: 600;
    }
}

.upload-container {
    width: 100%;
    min-height: 70px;
    border: 1.5px dashed #B4B4B4;
    text-align: center;
    padding: 0.8rem;
    color: #4CAF50;
    background-color: var(--ion-color-light-dark);
    justify-content: center;
    align-items: center;
    display: flex;

    ion-icon {
        margin-right: 0.5rem;
    }
}

.upload-preview {
    display: flex;
    align-items: center;
    padding: 5px;
    position: relative;
    gap: 10px;

    img {
        width: 100px;
        height: 80px;
        object-fit: cover;
        border-radius: 5px;
    }

    ion-icon {
        position: absolute;
        background: var(--ion-color-white);
        font-size: 20px;
        border-radius: var(--ion-border-radius-100);
        color: #343434;
        right: 0px;
        top: 8px;
    }
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;

    ion-button.hmi {
        flex: 0 0 45%;
    }

    ion-button.hi {
        flex: 0 0 45%;
    }
}


.hospital-text {
    color: var(--ion-color-hospital);
}

.discount-certificate {
    max-width: 400px;
    margin: 20px auto;
    border-radius: 10px;
    background-color: #ffff;

    p {
        color: #525252;
    }

    &.success {
        border: 1px solid #449353;
    }

    &.reject {
        border: 1px solid #934444;
    }
}

.certificate-header {
    padding: 5px 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    font-weight: 600;

    &.success-header {
        border-bottom: 1px solid var(--ion-color-hospital);
        background-color: #E4F4E6;

        p {
            color: var(--ion-color-hospital);
        }
    }

    &.reject-header {
        border-bottom: 1px solid #934444;
        background-color: #F4E4E4;

        p {
            color: #522929;
        }
    }
}

.certificate-header h2 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #000000;
}

.certificate-content {
    padding: 10px 0px;
    font-weight: 600
}

.certificate-link {
    padding: 0px 15px;
    color: var(--ion-color-hospital);
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.certificate-link:hover {
    color: #155724;
    text-decoration: underline;
}

.no-discount-certificate {
    h2 {
        color: var(--ion-color-hospital);
        font-weight: 600;
    }
}

.reject-reason-title {
    color: #522929;
    font-weight: 600;
}