/* 彈性租車-css */
#flexibleRental {
    margin: 0 auto;
    margin-top: 50px;
}
.is-invalid{
    border: 3px solid #dc3545;
    border-radius: 10px;
}
.total-amount-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    color: #fff;
    background-color: #fbad05;;
    z-index: 2000;
    padding: 12px 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 50px;
    transition: 1s ease-in;
}
.total-amount-box .small{
    font-size: 14px;
    color: #fff;
}
.loading-mask {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #fbad05;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/*  Hero 區---------------------------------------------------- */
.section-hero{
    padding-block: clamp(30px, 6vw, 50px);
}
.hero-image{
    max-width:  70vw;
}
.hero-image img{
    max-width:  300px;
}
.hero-content h1{
    font-size: clamp(26px, 4vw, 64px);
    font-weight: 900;
    background: linear-gradient(180deg, #235789, #091623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.hero-content p{
    font-size: clamp(16px, 3vw, 40px);
    font-weight: 900;
    color: #091623;
}
.hero-form .input-group-text{
    width: 58px;
    height: 58px;
    display: flex;
    justify-content: center;
    border-radius: 5px 0 0 5px;
    border: 1px solid #235789;
    background: #235789;
}
.hero-form img{
    width: 25px;
}
.add-serial-number{
    border: none;
    border-radius: 100%;
    width: 25px;
    height: 25px;
    margin-right: 10px;
    color: #fff;
    line-height: 25px;
}
.serial-item {
    padding: 12px 16px;
}
.serial-grid {
    display: grid;
    grid-template-columns: 1fr 120px 40px; /* 3 欄固定寬度 */
    align-items: center;
    column-gap: 10px;
}
.serial-text {
    font-weight: 500;
}
.days-text {
    text-align: right;
    white-space: nowrap;
}
.delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
}
.form-control[readonly]{
    background: #fff;
}
.form-control:disabled{
    background-color: #e9ecef;
    opacity: 1;
}
.flatpickr-day.holiday-day {
    color: red !important;
    font-weight: bold;
}
.flatpickr-day.flatpickr-disabled.holiday-day {
    opacity: 0.3;
}
.flatpickr-footer {
    background: #fff;
    border-radius: 0 0 8px 8px;
    padding: 0.5rem 1rem;
}
.flatpickr-footer select {
    min-width: 70px;
}
.btn.btn-primary {
    background: #235789;
}
.btn.btn-primary:hover {
    background: #091623;
}
/*  Section 2-------------------------------------------------------------- */
.section-material{
    background: linear-gradient(180deg, #235789 10%, #091623 100%);
    padding: 50px 0;
}
.model-title{
    color: #FFF;
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 700;
}
.model-title img{
    width: clamp(50px, 6vw, 75px);
}
.model-item{
    color: #FFF;
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 700;
    display: flex;
    align-items: center;
}
.model-item-hint{
    font-size: 14px;
    color: #fbad05;
}
.model-item img{
    width: clamp(20px, 3vw, 33px);
}
.additional-purchase{
    width: 100%;
    height: 50px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
    background-color: #ffffff;
    margin-top: 30px;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 10px;
}
.additional-purchase.active{
    border: 3px solid #fbad05;
}
.additional-purchase input{
    transform: scale(2);
    margin: 0 !important;
}
.additional-purchase span{
    font-size: 18px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #333333;
    margin-left: 40px;
}
.outfit-box {
    display: flex;
    height: 132px;
    padding: 16px;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--Gray-400, #CED4DA);
    background: #FFF;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.50);
    border-radius: 10px;
}
.outfit-box.active{
    border: 3px solid #fbad05;
}
.outfit-box-img {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
}
.outfit-box-img img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.outfit-box span{
    font-size: 18px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #333333;
    margin-left: 20px;
    font-weight: 700;
}
.outfit-box-price{
    color: #212529;
    text-align: left;
    font-size: 16px;
    font-style: normal;
    line-height: 20px;
    font-weight: normal;
    margin-top: 10px;
}
.outfit-box-qua{
    max-width: 40px;
}
.outfit-box-qua input{
    max-width: 40px;
    color: #777;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    border-width: 0px;
}
.outfit-box-qua button{
    min-width: unset;
    border: 0;
    background-color: #ffffff;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 30%;
    background: #F1F4F3;
}
.minus-btn:hover, .plus-btn:hover{
    background: #fbad05;
}
.outfit-box-qua img{
    width: 12px;
}

.car-list .swiper-slide {
    display: flex;
    height: auto;
}
.car-arrow-left, .car-arrow-right {
    height: 25px;
    position: absolute;
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
    outline: 0 !important;
    z-index: 5;
}
.car-arrow-left{
    left: -25px;
}
.car-arrow-right{
    right: -25px;
}
.car-item{
    background: #fff;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 10px;
    box-sizing: border-box;
}
.car-item.active {
    border: 3px solid #fbad05;
}
.choose-car{
    color: #7C7C7C;
    background: #fff;
    border: 2px solid #7C7C7C;
    max-width: 150px;
}
.choose-car:hover, .car-item.active .choose-car{
    color: #fff;
    background: #fbad05;
    border: 2px solid #fbad05;
}
.form-label{
    color: #fff;
}
.red-star {
    color: red;
}

.ant-select-selector{
    position: absolute !important;
    width: 100% !important;
    left: 0 !important;
    top: -2px !important;
    border: none !important;
    background: none !important;
    height: 48px !important;
    padding-left: 60px !important;
}
.ant-select-selection-search{
    width: 100% !important;
    left: 0 !important;
}
.ant-select-selector input{
    position: absolute !important;
    width: 100% !important;
    left: 0 !important;
    top: -0px !important;
    border: none !important;
    background: none !important;
    height: 38px !important;
    padding: .375rem .75rem !important;
    font-size: 1rem;
}
.ant-select-selector .ant-select-selection-placeholder {
    color: #495057 !important;
    position: absolute !important;
    width: 100% !important;
    left: 0 !important;
    top: -0px !important;
    border: none !important;
    background: none !important;
    height: 38px !important;
    padding: .375rem .75rem !important;
    font-size: 1rem;
}
.ant-select-selection-search-input:disabled {
    background-color: #e9ecef !important;
    border-radius: 5px !important;
    color: #000 !important;
}
.collapsed-btn {
    transition: 0.5s;
    background: none;
    border: none;
    cursor: pointer;
}
.fa-angles-down {
    transition: transform 0.4s ease;
}
.collapsed-true {
    transform: rotate(180deg);
}
.photo-files-box {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
    border: solid 1px #235789;
    background-color: #ffffff;
    overflow: hidden;
}
.photo-files-icon{
    position: absolute;
    width: 50px;
    height: 46px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.photo-files-input{
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
    z-index: 6;
}
.photo-files-preview {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}
.image-container::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    color: rgb(255, 0, 0);
    font-weight: bold;
    z-index: 2;
    pointer-events: none;
}

.amount-card {
    background-color: #fbad05;
    padding: 0 25px;
    border-radius: 12px;
    max-width: 450px;
    margin: 0 auto;
    color: #235789 ;
}
.amount-title {
    font-size: 20px;
    font-weight: bold;
    padding: 15px 0;
}
.amount-details {
    font-size: 16px;
}
.amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}
.amount-row-line{
    border-bottom: 1px solid rgba(255,255,255,0.4);
}
.amount-row span:first-child {
    font-weight: 500;
}
.amount-row span:last-child {
    font-weight: 600;
}


/* location-modal---------------------------------------------------------- */
#locationModal .modal-header{
    background: #235789;
}
#locationModal .modal-header h5{
    color: #fff;
}
.county-btn-box{
    padding: 0 16px 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.county-btn{
    padding: 4px 8px;
    border-radius: 100px;
    border: 1px solid #CED4DA;
    color: #6C757D;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 21px;
    width: max-content;
    cursor: pointer;
}
.county_title{
    background: #c9c9c9;
    color: #333333;
}
.location-list-box{
    max-height: 400px;
    overflow-y: auto;
}
#locationModal .modal-footer{
    min-height: 50px;
    background: #ec3341;
    color: #fff;
    text-align: center;
}
#locationModal .modal-footer span {
    color: #fff;
    transition: all 0.2s ease;
}

/* RWD---------------------------------------------------------------- */
@media (min-width: 600px) {
    #flexibleRental{
        margin-top: 90px;
    }
    .total-amount-box{
        margin-top: 90px;
    }
}
@media (min-width: 992px) {
    .hero-image img{
        max-width:  500px;
    }
}
@media (min-width: 1150px) {
    #flexibleRental{
        margin-top: 155px;
    }
    .total-amount-box{
        margin-top: 139px;
    }
}
@media (min-width: 1361px) {
    #flexibleRental{
        margin-top: 110px;
    }
    .total-amount-box{
        margin-top: 93px;
    }
}
