.service-item-content{
    border-radius: 27px;
    transition: all 0.3s;
    cursor: pointer;
}

@media only screen and (min-width: 1050px) {
    .service-item-content:hover{
        background-color: var(--shadeColor);
    }
}

object {
    pointer-events: none;
}

.service-description-display {
    text-align: left;
}

.service-description-display ul{
    list-style: disc;
    margin-left: 18px;
}

.service-description-display li{
    margin-bottom: 10px;
}

/* forms */

.service-form-container input{
    box-shadow: 0px 0px 16.2px -5px rgba(0, 0, 0, 0.25) inset;
    background-color: var(--shadeColor);
    border-radius: 6.25rem;
    height: 2.5rem;    
    padding-left: 0.938rem;
    transition: outline 0.15s;
}

input::placeholder, textarea::placeholder{
    color: black;
}

.form-submit-button{
    width: 100%;
    border-radius: 6.25rem;
    height: 2.5rem;
    background-color: var(--accentColor);
}

.add-more-prescriptions-button{
    height: 2.5rem;
    border-radius: 6.25rem;
    width: 4.0625rem;
    box-shadow: 0 0 1.0125rem -0.3125rem rgba(0, 0, 0, 0.25) inset;
    background-color: var(--shadeColor);
    transition: all 0.3s;
}

.add-more-prescriptions-button:hover {
    background-color: var(--accentColor);
}

.service-form{
    opacity: 0;
}

.data-privacy-checkbox-wrapper input {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
}

.form-mobile .data-privacy-checkbox-wrapper label {
    text-align: left;
    flex-direction: row-reverse;
}

.form-mobile .data-privacy-checkbox-wrapper label:hover {
    cursor: pointer;
}

.form-mobile .data-privacy-checkbox-wrapper input {
    transform: scale(1.3);
    margin-left: 0.75rem;
}

.service-form.active{
    display: block;
    animation: appear 0.5s;
    opacity: 1;
}

@keyframes appear{
    from {opacity: 0;}
    to {opacity: 1;}
}

.download-button{
    height: 2.4375rem;
    width: 100%;
    border: 0.0625rem solid black;
    border-radius: 6.25rem;
    transition: all 0.3s;
}

.download-button:hover{
    background-color: var(--shadeColor);
}

.service-form textarea{
    width: 100%;
    box-shadow: 0px 0px 16.2px -5px rgba(0, 0, 0, 0.25) inset;
    background-color: var(--shadeColor);
    border-radius: 20px;
    padding: 0.7rem 0.938rem;
}

.form-submit-button{
    transition: all 0.3s;
    color: white;
    font-weight: 600;
}

.form-submit-button:hover{
    background-color: black;
}

.form-submit-button.sending{
    background-color: black;
}

.form-submit-button.success{
    background-color: #1ABF70;
}

.form-submit-button.error{
    background-color: #C23030;
}

.data-privacy-checkbox-wrapper a{
    color: var(--accentColor);
}

.input-wrapper input {
    width: 100%;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper label {
    position: absolute;
    left: 1rem;
    transition: 0.15s;
}

.label-textarea {
    top: 0.7rem;
}

label.has-value {
    transform: translateY(calc(-100% - 0.8rem));
    color: gray;
    font-size: 0.83rem;
}

/* mobile */

.close-service-button--mobile {
    display: block;
    height: 2.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    border-radius: 1.25rem;
    background-color: var(--shadeColor);
}

@media only screen and (min-width: 779px) {
    .page-heading--mobile{
        display: none !important;
    }
}

.form-submit-button--mobile{
    width: 100%;
    border-radius: 6.25rem;
    height: 3.75rem;
    background-color: var(--accentColor);
}

/* Convert to single line buttons */ 
@media only screen and (max-width: 779px) {
    .service-icon-row {
        gap: 8px;
    }

    .service-icon-row{
        width: 100%;
    }

    .service-item{
        border: 0.0625rem solid black;
        border-radius: 3.125rem;
        width: 100%;
        height: 3.75rem;
    }

    .service-item object{
        height: 2rem;
    }

    .service-item-inner {
        width: 100%;
        justify-content: space-between;
        position: relative;
        flex-direction: row-reverse;
        padding-left: 2rem;
        padding-right: 2rem;
        overflow: hidden;
    }

    .service-description-display {
        text-align: justify;
        hyphens: auto;
        word-wrap: break-word;
        word-break: normal;
    }

    .service-description-display ul {
        margin-top: 5px;
        margin-left: 0px;
        list-style: none;
    }

    .service-description-display ul li {
        margin-bottom: 16px;
    }
}

/* Mobile forms */

.input-wrapper-mobile input {
    width: 100%;
    height: 3.125rem;
    border: 0.0625rem solid black;
    border-radius: 3.125rem;
    padding-left: 0.9375rem;
    padding-right: 0.9375rem;
}

.form-section-prescription-other--mobile textarea{
    border: 0.0625rem solid black;
    width: 100%;
    border-radius: 1.6875rem;
    padding-left: 0.9375rem;
    padding-right: 0.9375rem;
    padding-top: 0.9375rem;
}

input::placeholder {
    color: black;
}

.form-section-prescriptions--mobile .add-more-prescriptions-button {
    height: 3rem;
}

.downloads-mobile h3 {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word; 
    word-break: break-word; 
}


/* Appointment banner */
.appointment-banner{
    outline: 0.0625rem solid black;
    border-radius: 1.875rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    padding-top: 2.1875rem;
    padding-bottom: 2.1875rem;
  }
  
  .appointment-banner__action-button{
    outline: 0.0625rem solid black;
    padding-left: 1.875rem;
    padding-right: 1.875rem;
    height: 2.3125rem;
    border-radius: 1.6875rem;
    transition: all 0.3s;
  }
  
  .appointment-banner__action-button:hover{
    outline: none;
    color: white;
    background-color: var(--accentColor);
  }

  /* Out of office message box */

  .vacation-message {
    background-color: var(--shadeColor);
    border-radius: 30px;
    padding: 35px 40px ;
  }