/* Sundrejse Vaccine Calculator — v0.4.2 */

.svm-calc {
    max-width: 920px;
    margin: 0 auto;
    font-family: inherit;
    color: #222;
    line-height: 1.5;
}

.svm-calc * { box-sizing: border-box; }

.svm-calc__step {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    padding: 22px 24px;
    margin: 0 0 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.svm-calc__step-title {
    margin: 0 0 6px;
    font-size: 1.15em;
    font-weight: 700;
    color: #1c3050;
}
.svm-calc__step-help {
    margin: 0 0 14px;
    color: #666;
    font-size: 0.92em;
}

/* ---------- Country picker ---------- */
.svm-calc__country-picker {
    position: relative;
}
.svm-calc__search {
    width: 100%;
    padding: 12px 14px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
}
.svm-calc__search:focus {
    outline: none;
    border-color: #1c3050;
    box-shadow: 0 0 0 3px rgba(28,48,80,0.1);
}

.svm-calc__suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
}
.svm-calc__suggestions li {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}
.svm-calc__suggestions li:last-child { border-bottom: none; }
.svm-calc__suggestions li:hover,
.svm-calc__suggestions li.is-active {
    background: #f0f4fa;
}

/* ---------- Country list (per-land cards med datoer) ---------- */
.svm-calc__country-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.svm-calc__country {
    background: #f9fafb;
    border: 1px solid #dde1e6;
    border-radius: 8px;
    padding: 12px 14px;
}

.svm-calc__country-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.svm-calc__country-name {
    font-size: 1.05em;
    color: #1c3050;
}
.svm-calc__country-remove {
    border: none;
    background: #e0e3e7;
    color: #555;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.svm-calc__country-remove:hover { background: #d62828; color: #fff; }

.svm-calc__country-dates {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hele datofeltet er klikbart — input udfylder hele feltet
   så native click på hvor som helst åbner browserens datepicker */
.svm-calc__date-field {
    position: relative;
    flex: 1 1 180px;
    background: #fff;
    border: 1px solid #c9cfd5;
    border-radius: 6px;
    transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
    overflow: hidden;
}
.svm-calc__date-field:hover {
    border-color: #1c3050;
    background: #fafbfc;
}
.svm-calc__date-field:focus-within {
    border-color: #1c3050;
    box-shadow: 0 0 0 3px rgba(28,48,80,0.1);
}

.svm-calc__date-label {
    position: absolute;
    top: 6px;
    left: 12px;
    pointer-events: none;
    font-size: 0.72em;
    font-weight: 700;
    color: #6b7785;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
}

.svm-calc__date-field input[type="date"] {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 24px 12px 10px 12px;
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    color: #1c3050;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
}
.svm-calc__date-field input[type="date"]:focus { outline: none; }
.svm-calc__date-field input[type="date"]::-webkit-datetime-edit { padding: 0; }

.svm-calc__country-duration {
    margin-top: 8px;
    padding: 6px 10px;
    background: #fff;
    border-left: 3px solid #1c3050;
    color: #555;
    font-size: 0.85em;
    border-radius: 0 4px 4px 0;
}

/* ---------- Risk checkboxes ---------- */
.svm-calc__checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}
.svm-calc__check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f6f7f8;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    cursor: pointer;
    transition: all .12s ease;
}
.svm-calc__check input { margin: 0; transform: scale(1.15); }
.svm-calc__check:has(input:checked) {
    background: #fff;
    border-color: #f5a623;
    color: #8a6500;
    font-weight: 600;
}

/* ---------- Results ---------- */
.svm-calc__results {
    margin-top: 24px;
    min-height: 60px;
}
.svm-calc__no-results {
    background: #fff8e1;
    border: 1px solid #ffd54f;
    color: #6f5a00;
    padding: 16px;
    border-radius: 6px;
}
.svm-calc__no-results--empty {
    background: #f0f4fa;
    border-color: #c0d0e3;
    color: #4a6280;
}

.svm-calc__summary {
    background: linear-gradient(135deg, #1c3050 0%, #2a4670 100%);
    color: #fff;
    padding: 24px 28px;
    border-radius: 10px;
    margin: 0 0 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
    align-items: center;
}
.svm-calc__summary-item .label {
    display: block;
    font-size: 0.85em;
    opacity: 0.78;
    margin-bottom: 4px;
}
.svm-calc__summary-item .value {
    font-size: 1.4em;
    font-weight: 700;
}

.svm-calc__cta-row {
    text-align: center;
    margin: 24px 0;
}
.svm-calc__cta {
    display: inline-block;
    padding: 14px 32px;
    background: #1c3050;
    color: #fff !important;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.05em;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(28,48,80,0.25);
    transition: background .12s ease, transform .12s ease, box-shadow .12s ease;
}
.svm-calc__cta:hover {
    background: #2a4670;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28,48,80,0.35);
    color: #fff !important;
}

.svm-calc__group {
    margin: 0 0 22px;
}
.svm-calc__group-title {
    font-size: 1.08em;
    font-weight: 700;
    margin: 0 0 10px;
    padding-left: 14px;
    border-left: 4px solid;
}
.svm-calc__group--required .svm-calc__group-title    { color: #d62828; border-color: #d62828; }
.svm-calc__group--recommended .svm-calc__group-title { color: #00a651; border-color: #00a651; }
.svm-calc__group--considered .svm-calc__group-title  { color: #b87900; border-color: #f5a623; }

.svm-calc__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}
.svm-calc__card {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-left-width: 4px;
    border-radius: 8px;
    padding: 14px 16px;
}
.svm-calc__card--required    { border-left-color: #d62828; }
.svm-calc__card--recommended { border-left-color: #00a651; }
.svm-calc__card--considered  { border-left-color: #f5a623; }

.svm-calc__card-name {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 1.02em;
}
.svm-calc__card-name a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted #888;
}
.svm-calc__card-name a:hover { border-bottom-style: solid; }

.svm-calc__card-meta {
    font-size: 0.88em;
    color: #555;
    display: grid;
    gap: 3px;
}
.svm-calc__card-meta .lead-warning {
    color: #d62828;
    font-weight: 600;
}
.svm-calc__sources {
    color: #888;
    font-style: italic;
    font-size: 0.92em;
}

@media (max-width: 600px) {
    .svm-calc__step { padding: 18px 16px; }
    .svm-calc__summary {
        grid-template-columns: 1fr;
        padding: 18px 20px;
    }
    .svm-calc__summary-item .value { font-size: 1.2em; }
    .svm-calc__date-field { flex: 1 1 100%; }
}
