/*Step3 css*/

.step3 .roomBox .card-img-top .title {
    background: linear-gradient( to bottom, rgba(0,159,177, 1), rgba(0,159,177, 0.8), rgba(255, 0, 0, 0) );
    color: #fff;
    padding: 5px 0px 5px 0px;
    font-weight: bolder;
    font-size: 22px;
    letter-spacing: -1px;
}

.step3 .roomBox .card-img-top .title small {
    font-weight: normal;
}

.step3 .roomBox .card-img-top .roomDetails {
    position: absolute;
    bottom: 0px;
    background: linear-gradient( to top, rgba(0,159,177, 1), rgba(0,159,177, 0.8), rgba(255, 0, 0, 0) );
    color: #fff;
    padding:  10px 0px 5px 0px;
    width: 100%;
}

.step3 .roomBox .card-img-top .roomDetails .badge {
    position: absolute;
    bottom: 35px;
    right: 20px;
    font-weight: bolder;
    font-size: 28px;
    color: #e18725;
    z-index:-1;
    padding-bottom: 50px;
    padding-top: 20px;
    line-height:12px;
}
.step3 .roomBox .card-img-top .roomDetails .badge small {
    font-size:10px;
    color:#6db5f4;
}

.services .analysisTop .analysisContainer {
    /* background: #6db5f4; */
    text-align: center;
    padding: 5px 0px 10px 0px;
    font-size: 16px;
    position: relative;
    bottom: 5px;
    z-index:-1;
    border-radius: 10px 10px 10px 10px;
}

.services .analysisBottom .analysisContainer {
    background: #f7f7fc;
    color:#ccc;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    position: relative;
    top: -5px;
    z-index:-1;
    border-radius: 0px 0px 10px 10px;
}

.services .analysisBottom .analysisContainer .analysisCost {
    padding-left: 10px;
}
.services .analysisBottom .analysisContainer .analysisDesc {
    text-align: left;
}
.services .analysisBottom .analysisContainer .clearfix:not(:last-child) {
    border-bottom: solid 1px rgba(255, 255, 255, 0.3);
}

.services .analysisBottom .analysisContainer .serviceDates {
    padding-top: 10px;
    color: #eaf5ff;
}

/* .step3 .service:not(:last-child) {
    border-bottom: solid 1px #e9e9e9;
} */

.step3 .service .service-add {
    font-size: 23px !important;
    font-weight: bold !important;
    padding: 0px 20px !important;
}

@media only screen and (max-width: 600px) {
    .step3 .service:not(:last-child) {
        border-bottom: solid 1px #e9e9e9;
    }
}

.step3 .services .service {
    border-bottom: solid 1px #e9e9f2;
    padding-bottom: 20px;
}

.step3 .services .serviceAnalysis {
    padding: 3px 10px;
}

.card-room-services-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-room-services-arrow {
    position: relative;
    width: 160px;
    height: 45px;
    background-color: #ccc;
    clip-path: polygon(50% 100%, 0 -1px, 100% -1px);
    margin: 0px auto;
}

.card-room-services-arrow::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    background-color: #019fb1;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

/* ==========================================================
   STEP 3 - EXTRAS WITH TOP IMAGE / BOOTSTRAP 4.5
   The outer .service keeps its normal display value.
   Never add display:flex!important to .service: s2.js filters it.
   ========================================================== */

.step3 .services .dtExtrasBody {
    margin: 0;
    padding: 18px 24px 24px;
}

.step3 .services .dtExtrasGrid {
    margin-right: -9px;
    margin-left: -9px;
}

.step3 .services .dtExtrasGrid > .service {
    padding: 0 9px;
    border-bottom: 0 !important;
}

.step3 .dtExtraCard {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7e9e5;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(32, 42, 31, 0.06);
}

.step3 .dtExtraCard.has-selection {
    border-color: var(--mainColor1, #66713f);
}

/* Responsive landscape area with a controlled maximum height. */
.step3 .dtExtraMedia {
    position: relative;

    width: calc(100% - 18px);
    height: auto;
    min-height: 0;
    max-height: 240px;
    aspect-ratio: 2 / 1;

    flex: 0 0 auto;
    margin: 9px 9px 0;

    overflow: hidden;
    border-radius: 9px;
    background: #fff;
}

/* Display the complete delivered image without cropping or distortion. */
.step3 .dtExtraMedia img {
    position: absolute;
    top: 0;
    left: 0;

    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: 100%;

    object-fit: contain;
    object-position: center;
}

.step3 .dtExtraBody {
    flex: 1 1 auto;
    min-width: 0;
    padding: 13px 18px 8px;
}

.step3 .dtExtraTitle {
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    color: #30352e;

    min-height: 2.7em;
    max-height: 2.7em;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
    overflow-wrap: anywhere;
}

.step3 .dtExtraPreview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    min-height: 4.5em;
    max-height: 4.5em;

    overflow: hidden;
    overflow-wrap: anywhere;

    font-size: 14px;
    line-height: 1.5;
    color: #60665f;
}

.step3 .dtExtraLinks {
    min-height: 28px;
    padding-top: 3px;
}

.step3 .dtExtraDetails {
    padding: 3px 0;
    border: 0;
    background: transparent;
    color: #4e583e;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.step3 .dtExtraDetails > span {
    display: inline-block;
    margin-left: 3px;
    text-decoration: none;
}

.step3 .dtExtraFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 18px;
    padding: 11px 0 0;
    border-top: 1px solid #e9ece6;
}

.step3 .dtExtraPricing {
    min-width: 0;
    margin: 0 10px 8px 0;
}

.step3 .dtExtraUnitPrice {
    color: #30352e;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.step3 .dtExtraPriceHint {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.4;
    color: #62695e;
}

.step3 .dtExtraCard .dtExtraSelectedTotal {
    display: none;
    margin-top: 4px;
}

.step3 .dtExtraCard.has-selection .dtExtraSelectedTotal {
    display: block;
}

.step3 .dtExtraCard .analysisTop .analysisContainer {
    position: static;
    z-index: auto;
    bottom: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #30352e;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    box-shadow: none;
}

.step3 .dtExtraCard .dtExtraCostLabel {
    color: #60665f;
    font-size: inherit;
}

.step3 .dtExtraActions {
    flex: 0 0 auto;
    margin: 0 0 8px auto;
}

.step3 .dtExtraAdd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.step3 .dtExtraAddIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
}

.step3 .dtExtraCard .dtExtraQuantity {
    display: none;
    width: 138px;
}

.step3 .dtExtraCard.has-selection .dtExtraAdd {
    display: none;
}

.step3 .dtExtraCard.has-selection .dtExtraQuantity {
    display: flex;
}

.step3 .dtExtraCard .dtExtraQuantity .serviceData {
    height: 42px;
    padding: 0 4px;
    background: #fff;
    color: #30352e;
    font-size: 15px;
    font-weight: 600;
}

.step3 .dtExtraCard .service-add {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 42px;
}

.step3 .dtExtraMeta {
    padding: 0 18px 11px;
}

.step3 .dtExtraAnalysisLink {
    font-size: 12px;
}

/* Always use a single modal attached to body, outside the cloned room markup. */
#digiteliaExtraDetailsModal .modal-dialog {
    max-width: 740px;
    margin-right: auto;
    margin-left: auto;
}

#digiteliaExtraDetailsModal .modal-content {
    border: 1px solid #e7e9e5;
    border-radius: 14px;
}

#digiteliaExtraDetailsModal .modal-title {
    min-width: 0;
    overflow-wrap: anywhere;

    color: #30352e;
    font-size: 20px;
    line-height: 1.4;
}

#digiteliaExtraDetailsModal .modal-body {
    color: #50584d;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

#digiteliaExtraDetailsModal .modal-body img {
    max-width: 100%;
    height: auto;
}

#digiteliaExtraDetailsModal .modal-body table {
    max-width: 100%;
}

#digiteliaExtraDetailsModal .dtExtraAnalysisHeading {
    margin: 0 0 3px;
    color: #30352e;
    font-size: 17px;
    font-weight: 700;
}

#digiteliaExtraDetailsModal .dtExtraAnalysisHint {
    margin-bottom: 12px;
    color: #62695e;
    font-size: 13px;
}

#digiteliaExtraDetailsModal .dtExtraAnalysisLine {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ece6;
}

#digiteliaExtraDetailsModal .analysisDesc {
    min-width: 0;
    padding-right: 16px;
}

#digiteliaExtraDetailsModal .analysisCost {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Keep a visible focus indicator, including in older browsers. */
.step3 .dtExtraCard button:focus,
.step3 .dtExtraCard input:focus,
#digiteliaExtraDetailsModal button:focus {
    outline: 2px solid #505c45;
    outline-offset: 3px;
}

/* Hide the indicator when the browser does not require visible focus. */
@supports selector(:focus-visible) {
    .step3 .dtExtraCard button:focus:not(:focus-visible),
    .step3 .dtExtraCard input:focus:not(:focus-visible),
    #digiteliaExtraDetailsModal button:focus:not(:focus-visible) {
        outline: none;
        box-shadow: none;
    }
}

@media (max-width: 575.98px) {
    .step3 .services .dtExtrasBody {
        padding: 12px 12px 20px;
    }

    .step3 .dtExtraBody {
        padding-right: 14px;
        padding-left: 14px;
    }

    .step3 .dtExtraFooter {
        margin-right: 14px;
        margin-left: 14px;
    }

    .step3 .dtExtraTitle {
        font-size: 17px;
        min-height: 0;
    }

    .step3 .dtExtraPreview {
        min-height: 0;
    }

    .step3 .dtExtraMeta {
        padding-right: 14px;
        padding-left: 14px;
    }

    #digiteliaExtraDetailsModal .modal-dialog {
        margin: 10px;
    }
}

/* ==========================================================
   EXTRAS - SELECTED INDICATOR
   Uses the existing has-selection state.
   ========================================================== */

.step3 .dtExtraCard {
    position: relative;
}

/* Filled square, shown only when the service is selected. */
.step3 .dtExtraCard.has-selection::before {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;

    width: 32px;
    height: 32px;
    box-sizing: border-box;

    border: 2px solid #fff;
    border-radius: 7px;
    background: var(--mainColor1, #66713f);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.16);

    pointer-events: none;
}

/* White check mark, drawn with CSS; no icon font required. */
.step3 .dtExtraCard.has-selection::after {
    content: "";
    position: absolute;
    top: 19px;
    right: 23px;
    z-index: 3;

    width: 9px;
    height: 16px;
    box-sizing: border-box;

    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);

    pointer-events: none;
}

/* Cards without a photo: keep the title clear of the indicator.
   Reserve the space in both states to avoid movement on selection. */
.step3 .dtExtraCard > .dtExtraBody:first-child .dtExtraTitle {
    padding-right: 40px;
}