:root {
    --gap: 12px;
    --radius: 10px;
    --primary: transparent linear-gradient(132deg, #6037AE 0%, #2D33C7 100%) 0% 0% no-repeat padding-box;
    --secondary: #6037AE;
    --border: #2D33C7;
    --confirm: #0b5;
    --error: #f44336;
}

body {
    font-family: system-ui, sans-serif;
    margin: 0;
    background: #f6f7fb;
}

header {
    padding: 20px;
    background: white;
    border-bottom: 1px solid #ddd;

    .wrap {
        margin-block: 0;
        display: flex;
        justify-content: space-between;

    }
}

.wrap {
    max-width: 992px;
    margin: 24px auto;
    padding: 0 16px;
}

#tripsContainer {
    position: relative;
    padding-bottom: 80px;
}

.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.2);
    padding: 16px;

    &.settings {
        padding: 0;
    }

    summary + .grid {
        padding: 0 16px 16px 16px;
    }

    summary {
        padding: 16px;
        cursor: pointer;
    }
}

summary {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    &::-webkit-details-marker,
    &::before,
    &::after,
    &::marker {
        display: none !important;
        content: "" !important;
        visibility: hidden !important;
    }
}

.grid {
    display: grid;
    gap: var(--gap);

    .full-column {
        grid-column: 1 / span 2;
    }
}

.grid.two {
    grid-template-columns: 1fr 1fr;
}

.grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.flex {
    display: flex;
    flex-direction: column;
    gap: var(--gap);

    > div {
        flex: 1;

        &:last-child {
            flex: 0;
        }
    }
}

@media screen and (min-width: 768px) {
    .flex {
        flex-direction: row;
    }
}

label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

input, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.row {
    display: flex;
    gap: var(--gap);
    flex-wrap: wrap;
    align-items: center;
}

.btn-ghost {
    position: absolute;
    bottom: 16px;
    left: 0;
    background: none;
    border: none;
    width: 100%;
    text-align: center;
    margin-top: var(--gap);
    border: 0;
    color: var(--secondary);
    font-size: 15px;
}

.pill {
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    input[type="radio"] {
        opacity: 0;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        cursor: pointer;

        &:hover + label,
        &:checked + label {
            color: white;
            background: var(--primary);
        }

        &:checked + label {
            font-weight: bold;
        }
    }

    label {
        border: 1px solid var(--border);
        background: #fff;
        padding: 10px 20px;
        border-radius: 999px;
        margin-bottom: 0;
    }
}

.section-title {
    font-weight: 700;
    margin: 16px 0 6px;
}

.btn {
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.result {
    background: var(--confirm);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
}

.danger {
    color: var(--error);
}

/* Google Autocomplete dropdown (pac-container) */
.pac-container {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: inherit;
    z-index: 99999 !important; /* zodat hij boven je formulier staat */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.pac-item {
    padding: 8px 12px;
    cursor: pointer;
}

.pac-item:hover {
    background-color: #f5f5f5;
}

.pac-item-query {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}