:root {
    --clr-primary: #12b76a;
    /* green CTA */
    --clr-primary-dark: #039455;
    --clr-neutral-100: #ffffff;
    --clr-neutral-200: #f9fafb;
    --clr-neutral-300: #f2f4f7;
    --clr-neutral-400: #d0d5dd;
    --clr-neutral-700: #344054;
    --radius: 0.75rem;
    /* 12px */
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.1), 0 1px 3px rgba(16, 24, 40, 0.06);
    --max-width: 740px;
    --step-gap: 2.5rem;
    font-family: "Inter", system-ui, sans-serif;
}

/* =====  RESETS  ===== */
*,
*::before,
*::after {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--clr-neutral-200);
    color: var(--clr-neutral-700);
}

.step {
    display: none;
}

.step.step--active {
    display: block;
}

input,
select,
button,
textarea {
    font: inherit
}

textarea {
    margin-top: 12px;
}

button {
    cursor: pointer;
    border: none;
}

fieldset {
    border: none;
    margin: 0;
    padding: 0
}

legend {
    font-weight: 600;
    margin-bottom: 0.7rem
}

#addPassenger {
    margin-top: 10px;
}

/* =====  WIZARD LAYOUT  ===== */
#wizardShell {
    max-width: var(--max-width);
    margin-inline: auto;
    background: var(--clr-neutral-100);
    padding: 2.5rem 2rem 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 150px;
}

.step {
    /*display: none;*/
    flex-direction: column;
    gap: var(--step-gap);
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ccc;
}

.step--active {
    display: flex;
}

/* =====  INPUTS  ===== */
.input-field,
.select-field {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--clr-neutral-400);
    border-radius: var(--radius);
    background: var(--clr-neutral-100);
}

.input-field:focus,
.select-field:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 2px rgba(18, 183, 106, .2);
}

/* =====  RADIO / CHECK TOGGLE PILL  ===== */
.toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--clr-neutral-400);
    border-radius: var(--radius);
    background: var(--clr-neutral-100);
    transition: .15s;
    user-select: none;
    margin-bottom: 15px;
}

.toggle-pill input {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--clr-neutral-400);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.toggle-pill input:checked {
    border-color: var(--clr-primary);
    background: radial-gradient(circle, var(--clr-primary) 40%, transparent 41%);
}

.toggle-pill:hover {
    border-color: var(--clr-primary-dark);
}

.toggle-pill input:focus-visible + span {
    outline: 2px solid var(--clr-primary);
    outline-offset: 4px;
}

/* active state */
.toggle-pill.active {
    border-color: var(--clr-primary);
    background: rgba(18, 183, 106, .05);
}

/* =====  CTA / NAV BUTTONS  ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.9rem 1.7rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: .15s;
}

.btn-primary {
    background: var(--clr-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--clr-primary-dark);
}

.btn-secondary {
    background: var(--clr-neutral-100);
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
}

.btn-secondary:hover {
    background: rgba(18, 183, 106, .05);
}

/* =====  GRID HELPERS  ===== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem
}

/* =====  SUPPORT CLASSES  ===== */
.mb-1 {
    margin-bottom: 1rem
}

#stopCount {
    display: none;
}

.d-block {
    display: block !important;
}

.d-none {
    display: none !important;
}

.classic-toggle-pill-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.airport-autocomplete {
    position: relative;
}

/* Dropdown */
.autocomplete-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #cfd4dc;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    max-height: 320px;
    overflow-y: auto;
    z-index: 9999;
    margin-top: 6px;
    padding: 6px 0;
}

/* Svaka stavka */
.autocomplete-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
    border-bottom: 1px solid #f0f2f5;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #f1f5f9;
    border-radius: 8px;
}

/* Leva strana - ime i mesto */
.autocomplete-item div {
    display: flex;
    flex-direction: column;
}

.autocomplete-item strong {
    font-weight: 500;
    font-size: 15px;
    color: #111827;
}

.autocomplete-item small {
    font-size: 13px;
    color: #6b7280;
}

/* Desna strana - IATA kod */
.autocomplete-item span {
    background-color: #f3f4f6;
    color: #111827;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    min-width: 38px;
    text-align: center;
}

.continue-btn-wrapper {
    margin-top: 40px !important;
}

.continue-btn {
    opacity: .5;
    cursor: not-allowed;
}

.continue-btn.available {
    opacity: 1;
    cursor: pointer;
}

.single-stop-input {
    margin-bottom: 16px;
}

.single-stop-input label {
    margin-bottom: 4px;
}