/* css/custom.css */
body.landing-shortrent {
    font-family: "Ubuntu", sans-serif;
    color: #05144E;
}

body.landing-shortrent .container {
    max-width: 1300px !important;
}
/* --- HERO SECTION --- */
body.landing-shortrent .hero {
    background: #18236d;
    padding: 0 0 80px 0;
    background-image: url('/landing/img/landing-bg.jpg');
    background-size: cover;
}

body.landing-shortrent .hero-image {
    min-height: 500px;
    background: #d9d9d9;
    border-radius: 20px;
}

body.landing-shortrent .hero-form {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    margin-top: 20px;
}

body.landing-shortrent .thank-you-page {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #05144E;
}

/* --- SEZIONI GENERALI --- */
body.landing-shortrent .section-padding {
    padding: 100px 0;
}

body.landing-shortrent .service-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
}    

body.landing-shortrent .service-card p {
    font-size: .9rem;
}

body.landing-shortrent .icon-placeholder {
    width: 48px;
    height: 48px;    
    border-radius: 50%;
    margin-bottom: 20px;
    
}

body.landing-shortrent .icon-placeholder img {
    width: 48px;
    height: 48px;    
}
body.landing-shortrent .image-placeholder {
    background: #d9d9d9;
    min-height: 350px;
    border-radius: 20px;
}

/* --- STATS & INFO BOX --- */
body.landing-shortrent .stats-section {
    background: #0f1970;
    color: #fff;
}

body.landing-shortrent .stat-item {
    text-align: center;
    font-size: .9rem;
}

body.landing-shortrent .stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}
body.landing-shortrent .stat-icon img {
    width: 60px;
    height: 60px;
}

body.landing-shortrent .info-box {
    background: #D3D6F6;
    padding: 30px;
    border-radius: 20px;
    max-width: 792px;
    margin: 0 auto;
    h4 {
        font-size: 1.5rem;
    }
}

/* --- INPUT & FORM CUSTOMIZZATI --- */
body.landing-shortrent .form-step {
    /* margin-top: 1.2rem; */
}

body.landing-shortrent textarea.form-control {
    height: 120px !important;
    padding: 20px 10px !important;
}

body.landing-shortrent .form-control {
    border-radius: 8px !important;
    background-color: rgba(166, 173, 236, .1) !important;
    border: 1px solid transparent !important;
    height: 48px !important;
    font-size: 15px !important;
    color: #05144E !important;
    transition: all 0.2s;
}

body.landing-shortrent .form-control::placeholder {
    color: #40349A !important;
    opacity: 1;
}

body.landing-shortrent .form-control:hover,
body.landing-shortrent .form-select:hover {
    border-color: #40349a !important;
}

body.landing-shortrent .form-control:focus {
    outline: none !important;
    border-color: #40349a !important;
    box-shadow: 0 0 0 .25rem rgba(64, 52, 154, .25) !important;
    border: none !important;
}

body.landing-shortrent .form-select {
    border-radius: 8px !important;
    background-color: rgba(166, 173, 236, .1) !important;
    border: 1px solid transparent !important;
    height: 48px !important;
    font-size: 15px !important;
    color: #40349A !important;
    transition: all 0.2s;
}

body.landing-shortrent .fl-select .fl-label {
    top: 0.35rem;
    transform: none;
    font-size: 0.75rem;
    color: #40349A;
    opacity: 0;
}

body.landing-shortrent .fl-select.has-value .fl-label {
    opacity: 1;
}

body.landing-shortrent .fl-select.has-value .form-select {
    padding-top: 1.35rem;
    padding-bottom: 0.35rem;
}

body.landing-shortrent .input-group-text {
    background-color: #CED4FD !important;
    color: #40349A !important;
    font-weight: 500;
    padding: 0 5px;
    font-size: 14px;
    border-top-left-radius: 0  !important;
    border-bottom-left-radius: 0  !important;
}

/* --- UPLOAD BOX --- */
body.landing-shortrent .upload-box label {
    border-radius: 8px;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: .2s;
    height: 120px;
    background-color: rgba(166, 173, 236, .1);
    color: #40349A;
}

body.landing-shortrent .upload-box label:hover {
    border: 1px solid #18236d;
}

/* --- BOTTONI --- */
body.landing-shortrent .btn-primary {
    background-color: #ea3558 !important;
    color: #fff !important;
    border: none !important;
    width: auto !important; 
    min-width: 100px;
    font-size: 16px !important;
    border-radius: 1rem !important;
    line-height: 1.5rem !important;
    letter-spacing: .05em !important;
    font-weight: 700 !important;
    height: 48px !important;
    padding:11px 10px !important;
    transition: background-color 0.2s;
} 
body.landing-shortrent .btn-primary.confirm {
    position: absolute;
    z-index: 1000;
    bottom: 30px;
    left: 30px;
}
body.landing-shortrent .btn-secondary {
    background-color: #ffffff !important;
    color: #40349a !important;
    border-color: #a6adec !important;
    width: auto !important; 
    font-size: 16px !important;
    border-radius: 1rem !important;
    line-height: 1.5rem !important;
    letter-spacing: .05em !important;
    font-weight: 700 !important;
    height: 48px !important;
    padding:11px 10px !important;
    transition: background-color 0.2s;
} 
body.landing-shortrent .btn-secondary:hover {
    background-color: #a6adec;
    color: #40349a;
}

body.landing-shortrent .btn-primary:hover {
    background-color: #d1294a !important;
}

/* --- HEADER & FOOTER --- */
body.landing-shortrent .top-bar {
    padding: 20px 0;
    height: 110px;
    display: flex;
}

body.landing-shortrent .top-bar .container {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
}

body.landing-shortrent .top-bar .logo img {
    height: 42px;
    width: auto;
    display: block;
}
/* 
footer {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    background-image: url(/landing/img/bg-gradient.jpg);
    background-size: cover;
    background-position: center bottom;
    color: #fff;
}

footer a {
    color: #fff;
    font-weight: 500;
   
}

footer a:hover {
    text-decoration: underline;
} */



/* --- MODALE MAPPA --- */
body.landing-shortrent #mapContainer {
    height: 500px;
    border-radius: 16px;
    background: #e9ecef;
}   

body.landing-shortrent .pac-container {
    z-index: 1065 !important;
}

body.landing-shortrent .form-select {
    cursor: pointer;
    background-image: url('/landing/img/arrow.svg') !important;
    background-size: 12px 12px !important;
    background-position: right 16px center !important;
    background-repeat: no-repeat !important;
    padding-right: 40px !important;
}

body.landing-shortrent .form-select option {
    background-color: #ffffff; 
    color: #05144E;           
    padding: 12px;
}
body.landing-shortrent .form-select::-ms-expand {
    display: none;
}
.text-muted {
    color: #d1294a !important;
}

/* --- MOBILE OPTIMIZATIONS --- */
@media(max-width: 991px) {
    body.landing-shortrent .hero {
        background: #18236d;
        padding: 0 0 30px 0;
        background-image: url('/landing/img/landing-bg-mobile.jpg');
        background-size: cover;
        height: 1210px;
        min-height: 1000px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    body.landing-shortrent .hero-form {
        min-height: 560px;
    }
    body.landing-shortrent .title-sm {
        color: #ffffff;
        display: flex !important;
        justify-content: center;
        font-weight: 800;
    }
    body.landing-shortrent .top-bar .container {
        justify-content: center;
    }
    body.landing-shortrent .top-bar {
        padding: 15px 0;
    }
    body.landing-shortrent .form-step {
        display: none;
    }
    body.landing-shortrent .form-step.active {
        display: block;
    }
    body.landing-shortrent #mapModal .modal-content {
        height: 100vh;
        border-radius: 0;
    }
    body.landing-shortrent #mapContainer {
        height: calc(100vh - 28px);
    }
    body.landing-shortrent .btn-primary.confirm {
        right: 30px;
        /* width: 100% !important; */
        left: 30px;
    }
    body.landing-shortrent .modal-map-body .form-control {
        right: 30px;
        width: 100% !important;
        left: 11px;
        top: 10px;
    }
    body.landing-shortrent .service-card {
        border: 1px solid #0e187133;
        box-shadow: none;
    }
}
@media (min-width: 1400px) {
    body.landing-shortrent .container {
        max-width: 1300px;
    }
}
@media (min-width: 1536px) {
    body.landing-shortrent .container {
        max-width: 1300px;
    }
}

/* Bootstrap migration helpers */
body.landing-shortrent .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.landing-shortrent .h2-title {
    font-size: clamp(1.2rem, 2vw, 1.875rem);
    font-weight: 500;
}

body.landing-shortrent .section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.15;
}

body.landing-shortrent .field-height {
    height: 48px;
}

body.landing-shortrent .cursor-pointer {
    cursor: pointer;
}

body.landing-shortrent .resize-none {
    resize: none;
}

body.landing-shortrent .checkbox-brand {
    width: 1rem;
    height: 1rem;
    border-color: #d1d5db;
}

body.landing-shortrent .checkbox-brand:checked {
    background-color: #40349A;
    border-color: #40349A;
}

body.landing-shortrent .w-lg-auto {
    width: auto !important;
    margin-bottom: 20px;
}

body.landing-shortrent .services-carousel-inner {
    padding-bottom: 3rem;
}

body.landing-shortrent .services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 5rem;
}

body.landing-shortrent .services-indicators {
    bottom: 0;
    margin-bottom: 0;
}

body.landing-shortrent .services-indicators [data-bs-target] {
    width: 1rem;
    height: 1rem;
    border: 0;
    border-radius: 999px;
    background-color: #d1d5db;
    opacity: 1;
    transition: all .3s ease;
}

body.landing-shortrent .services-indicators .active {
    width: 1.80rem;
    background-color: #ea3558;
}

body.landing-shortrent .services-control {
    width: 2.75rem;
    opacity: 1;
}

body.landing-shortrent .services-control .carousel-control-prev-icon,
body.landing-shortrent .services-control .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    padding: .6rem;
    border-radius: 999px;
    background-color: #40349A;
    background-size: 55%;
}

body.landing-shortrent .bullet-dot {
    width: .5rem;
    height: .5rem;
    display: inline-block;
    background-color: #ea3558;
    border-radius: 50%;
}
body.landing-shortrent ul {
    padding-left: 0;
}
body.landing-shortrent .info-section {
    padding-bottom: 6rem;
}

body.landing-shortrent .modal-map {
    inset: 0;
    z-index: 1055 !important;
}

body.landing-shortrent .modal-map-content {
    max-width: 64rem;
    border-radius: 0;
}

body.landing-shortrent .modal-map-body {
    gap: 1rem;
    padding: 1rem;
}
body.landing-shortrent .modal-map-body .form-control {
    background-color: #ffffff !important;
    margin: 1.2rem;
   
    z-index: 1000;
    position: relative;
}
body.landing-shortrent .icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}

body.landing-shortrent .carousel-dot {
    width: .75rem;
    height: .75rem;
    border: 0;
    border-radius: 999px;
    background-color: #d1d5db;
    transition: all .3s ease;
}

body.landing-shortrent .carousel-dot.active {
    width: 1.25rem;
    background-color: #ea3558;
}

body.landing-shortrent .step-dot {
    background-color: #d1d5db;
}

body.landing-shortrent .step-dot.active {
    background-color: #ea3558;
}


body.landing-shortrent .tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}
body.landing-shortrent .tooltip-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: -280%;
    transform: translateX(-50%);

    background: #40349A;
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;

    font-size: 12px;
    line-height: 1.4;

    white-space: normal;
    width: 220px;
    max-width: 220px;
    text-align: center;


    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;

    z-index: 9999;
}

@media (min-width: 992px) {
    body.landing-shortrent .tooltip-wrapper::after {
        width: 300px;
        max-width: 400px;
    }
}

body.landing-shortrent .tooltip-wrapper::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);

    border: 5px solid transparent;
    border-top-color: #222;

    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;

    z-index: 9999;
}

body.landing-shortrent .tooltip-wrapper:hover::before,
body.landing-shortrent .tooltip-wrapper:hover::after {
    opacity: 1;
    visibility: visible;
}
body.landing-shortrent .fl-wrapper{
    overflow: visible !important;
    margin: 10px 0;
}
body.landing-shortrent .upload-box{

    margin: 10px 0;
}

/* uppload  */
body.landing-shortrent .file-preview-grid {
    display: grid;
 
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px; 
    margin-top: 12px;
    width: 100%;
    
 
    max-height: 140px; 
    overflow-y: auto;  
    padding-right: 5px; 
}


body.landing-shortrent .file-preview-grid::-webkit-scrollbar {
    width: 4px; 
}
body.landing-shortrent .file-preview-grid::-webkit-scrollbar-track {
    background: rgba(166, 173, 236, 0.1);
    border-radius: 10px;
}
body.landing-shortrent .file-preview-grid::-webkit-scrollbar-thumb {
    background: #40349A;
    border-radius: 10px;
}

body.landing-shortrent .file-preview-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(166, 173, 236, 0.4);
    background: #f8f9fa;
}

body.landing-shortrent .file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.landing-shortrent .file-preview-item .remove-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    background: rgba(234, 53, 88, 0.95);
    color: #ffffff;
    border: none;
    border-radius: 50%;
   
    width: 15px;
    height: 15px;
    font-size: 9px; 
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

body.landing-shortrent .file-preview-item .remove-btn:hover {
    background: #d1294a !important;
    transform: scale(1.1);
}




body.landing-shortrent .fl-wrapper.fl-group label,
body.landing-shortrent .fl-wrapper.fl-group label {
    left: .9rem;
}
@media (min-width: 992px) {
    body.landing-shortrent .modal-map-content {
        height: auto !important;
        border-radius: .75rem;
    }
}

@media (max-width: 991px) {
    body.landing-shortrent .w-lg-auto {
        width: 100% !important;
    }
}


/* common */



/* Field validation errors — specificità (0,3,1) > (0,2,1) della regola form-control base */
body.landing-shortrent .form-control.field-error,
body.landing-shortrent .form-select.field-error {
    border: 1px solid #ef4444 !important;
}
body.landing-shortrent .form-control.field-error:hover,
body.landing-shortrent .form-control.field-error:focus,
body.landing-shortrent .form-select.field-error:hover,
body.landing-shortrent .form-select.field-error:focus {
    border: 1px solid #ef4444 !important;
    box-shadow: 0 0 0 .25rem rgba(239, 68, 68, 0.25) !important;
}
