﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.inputs-section {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.cards-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}


.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: normal;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    }

.card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 95px;
    font-size: 32px;
    background: inherit;
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-align: center;
    width: 100%;
    padding: 8px 0;
    border-radius: 8px 8px 0 0;
    margin-bottom: 10px;
    background-color: currentColor;
}

.card-green .card-title {
    background-color: #6F9D35;
}

.card-blue .card-title {
    background-color: #33A5BD;
}

.card-pink .card-title {
    background-color: #D5339D;
}

.card-purple .card-title {
    background-color: #743793;
}

.card-custom .card-title {
    background-color: #6f6f6f;
}

.customPlan {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 75px
}

.card-details {
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 16px;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    position: relative; /* So we can position the loading effects */
}

    .card-details li {
        display: flex;
    justify-content: space-between;
        padding: 6px 0;
}

.card-total-cost {
    margin-top: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    position: absolute;
    bottom: 25px;
}

.card-excluded {
    background-color: #f5f5f5;
    color: #aaa;
    pointer-events: none;
    opacity: 0.6;
}

.card-recommended {
    border: 3px solid gold;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    transform: scale(1.08);
    margin: 0 15px;
    transition: transform 0.2s, box-shadow 0.2s, margin 0.2s;
}

.card-recommended:hover {
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(255, 215, 0, 1);
}

.loading .card-details::before,
.loading .card-total-cost::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    backdrop-filter: blur(4px); 
}

.loading .card-details::after,
.loading .card-total-cost::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shimmer 1.5s infinite;
    z-index: 3;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Skeleton styles for details and total cost */
.loading .card-details li,
.loading .card-total-cost {
    background-color: #e0e0e0;
    color: transparent;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.loading .card-details li::after,
.loading .card-total-cost::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shimmer 1.5s infinite;
}

.loading .card-details li {
    height: 16px;
    margin: 8px 0;
    border-radius: 4px;
}

.loading .card-total-cost {
    height: 20px;
    width: 80%;
    border-radius: 4px;
}


.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: 0.2s ease;
    background-color: #fff;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"]:checked {
    border-color: #007bff;
    background-color: #007bff;
    position: relative;
}

.checkbox-container input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    left: 3px;
    top: -1px;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

select {
    appearance: none;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' height='24' viewBox='0 0 24 24' width='24'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 12px;
    outline: none;
    transition: border-color 0.2s;
}

    select:focus {
        border-color: #007bff;
    }

.row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-end;
}

    .row div {
        max-width: 320px;
        margin-right: 30px;
    }


.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    gap: 25px;
}


.calculator {
    position: relative;
    height: 100%;
}

.calculator label {
    font-size: 0.83em;
    font-weight: bold;
}

@media (max-width: 768px) {
    .inputs-section {
        flex-direction: column;
        align-items: center;
    }

    .filters {
        flex-direction: column;
        gap: 20px;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }

    .inputs-section {
        align-items: unset;
    }

    .column {
        align-items: unset;

    }

    .column div {
        max-width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .inputs-section {
        flex-direction: column;
        align-items: center;
    }

    .filters {
        flex-direction: column;
        gap: 10px;
}

    .cards-container {
        flex-direction: column;
        align-items: center;
}

    .card {
        width: 100%;
}

    .row {
        width: 100%;
    }
}

body.veva-route-changing::after {
    display:none;
}
