#jr-pass-calculator {
    background: #ffffff;
    /* padding: 40px; Removed as per request */
    /* border: 1px solid #eeeeee; Removed as per request */
    /* Sharp corners */
    border-radius: 0;
    max-width: 900px;
    margin: 40px auto;
    /* font-family: 'PT Serif', serif; -- Inherit from theme */
    color: #313131;
    line-height: 1.8;
}

#jr-pass-calculator h2,
#jr-pass-calculator h3 {
    /* font-family: 'Raleway', sans-serif; -- Inherit from theme */
    color: #313131;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

#jr-pass-calculator h2 {
    font-size: 2em;
    text-align: center;
    border-bottom: 3px double #eee;
    padding-bottom: 20px;
}

#jr-pass-calculator h3 {
    font-size: 1.2em;
    border-left: 5px solid #DD3333;
    /* Red Accent */
    padding-left: 15px;
}

.jpc-step {
    margin-bottom: 50px;
}

.jpc-helper-text {
    font-size: 0.9em;
    color: #000;
    margin-bottom: 15px;
    font-style: italic;
}

/* Tabs - IMPROVED: Less crowded */
.jpc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* Added gap */
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    /* Give space for wrap */
}

.jpc-tab-btn {
    background: #f9f9f9;
    /* font-family: 'Raleway', sans-serif; -- Inherit */
    font-weight: 700;
    border: 1px solid #ddd;
    /* border-bottom: none; Removed merge style for button-like appearance */
    padding: 12px 25px;
    /* More padding */
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 0;
    transition: all 0.3s ease;
    color: #888;
    margin-right: 0;
    /* Handled by gap */
    flex-grow: 1;
    /* Stretch to fill space nicely */
    text-align: center;
}

.jpc-tab-btn:hover {
    background: #fff;
    color: #DD3333;
    border-color: #ccc;
}

.jpc-tab-btn.active {
    background: #DD3333;
    color: #ffffff;
    border-color: #DD3333;
}

/* Region Content */
.jpc-region-content {
    display: none;
    animation: fadeIn 0.3s;
}

.jpc-region-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Pass Grid - Gap 30px */
.jpc-pass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.jpc-pass-card {
    border: 1px solid #ddd;
    border-radius: 0;
    /* Sharp */
    padding: 25px 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s;
    position: relative;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.jpc-pass-card:hover {
    border-color: #DD3333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Hide actual radio but keep functionality */
.jpc-pass-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    top: 0;
    left: 0;
    margin: 0;
}

/* Selected State */
.jpc-pass-card.selected {
    border: 2px solid #DD3333;
    background: #fffafa;
    /* Very faint red tinge */
}

.card-title {
    /* font-family: 'Raleway', sans-serif; -- Inherit */
    font-weight: 700;
    font-size: 0.95em;
    display: block;
    margin-bottom: 10px;
    color: #313131;
    line-height: 1.4;
}

.card-price {
    /* font-family: 'PT Serif', serif; -- Inherit */
    font-style: italic;
    font-size: 1.1em;
    color: #000;
}

/* --- Trip Builder (Smart Inputs) --- */
.jpc-trip-builder {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.jpc-input-group {
    flex: 1;
    min-width: 200px;
    position: relative;
    /* For dropdown positioning */
}

.jpc-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.jpc-input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    /* No rounded corners */
    font-size: 1rem;
    /* font-family: 'PT Serif', serif; -- Inherit */
    height: 48px;
    /* Enforce explicit height */
    box-sizing: border-box;
}

.jpc-input-group input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.jpc-input-action {
    /* Align with input height approx 45px */
    flex-shrink: 0;
}

#jpc-add-trip-btn {
    padding: 0 25px;
    /* Remove vertical padding, use line-height/height */
    background: #DD3333;
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 0;
    /* Square */
    cursor: pointer;
    /* font-family: 'Raleway', sans-serif; -- Inherit */
    transition: background 0.2s;
    height: 48px;
    /* Match input height */
    line-height: 48px;
    /* Center text vertically */
    font-size: 1rem;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: bottom;
}

#jpc-add-trip-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#jpc-add-trip-btn:not(:disabled):hover {
    background: #b71c1c;
}


/* Suggestion Lists - Reset styles */
.jpc-suggestion-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    list-style: none !important;
    /* Force reset */
    padding: 0 !important;
    /* Force reset */
    margin-left: 0 !important;
    /* Force reset */
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden by default */
}

.jpc-suggestion-list.active {
    display: block;
}

.jpc-suggestion-list li {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    list-style-type: none !important;
    /* Force reset */
    background: none;
    /* No theme background images for bullets */
    color: #000;
}

.jpc-suggestion-list li:last-child {
    border-bottom: none;
}

.jpc-suggestion-list li:hover {
    background-color: #f9f9f9;
}

/* Itinerary List */
#jpc-itinerary-list {
    background: #fdfdfd;
    border: 1px dashed #eee;
    padding: 15px;
    min-height: 50px;
}

.jpc-empty-state {
    color: #000;
    /* Was gray */
    font-style: italic;
    text-align: center;
    padding: 10px;
}

/* Itinerary Items (Updated remove button) */
.jpc-itinerary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    padding: 10px 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.jpc-itinerary-item:last-child {
    margin-bottom: 0;
}

.jpc-itinerary-item:hover {
    border-color: #ddd;
    transform: translateX(2px);
}

.jpc-trip-info {
    /* font-family: 'PT Serif', serif; -- Inherit */
    font-size: 1em;
    color: #000;
    /* Was #313131, now strictly black per request */
}

.jpc-trip-price {
    font-weight: bold;
    color: #000;
    /* Was #666 */
    margin-left: 10px;
}

#jr-pass-calculator .jpc-remove-item {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #DD3333 !important;
    border: none !important;
    /* No circle */
    border-radius: 0 !important;
    width: auto !important;
    /* Auto fit */
    height: auto !important;
    min-width: 24px !important;
    min-height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    /* Larger X */
    font-weight: 900 !important;
    /* Bold X */
    font-family: Arial, sans-serif !important;
    /* Reliable cross-platform bold X */
    line-height: 1 !important;
    cursor: pointer !important;
    margin-left: 15px !important;
    transition: all 0.2s !important;
    padding: 0 5px !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

#jr-pass-calculator .jpc-remove-item:hover {
    background-color: transparent !important;
    color: #b71c1c !important;
    /* Darker red on hover */
    border: none !important;
    transform: scale(1.2);
    /* Slight zoom effect */
}

/* Mobile Responsiveness for Selector */
@media (max-width: 600px) {
    .jpc-trip-selector-area {
        flex-direction: column;
    }

    .jpc-btn-primary {
        width: 100%;
    }

    .jpc-itinerary-item {
        flex-direction: row;
        /* Keep row even on mobile for chips */
        align-items: center;
    }
}

/* Result Area */
.jpc-result {
    margin-top: 40px;
    padding: 30px;
    background: #fdfdfd;
    border-top: 2px solid #333;
    /* Elegant separation */
}

/* Clean table for result alignment */
.jpc-result-table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

.jpc-result-table tr {
    border-bottom: 1px dotted #ccc;
}

.jpc-result-table td {
    padding: 10px 0;
    font-size: 1.1em;
}

.jpc-result-table .label-col {
    color: #000;
    /* Was #313131 */
}

.jpc-result-table .value-col {
    text-align: right;
    font-weight: 700;
    color: #000;
    /* Was #313131 */
    /* font-family: 'Raleway', sans-serif; -- Inherit */
}

/* Verdict Boxes */
.jpc-verdict-box {
    padding: 20px;
    margin-top: 20px;
    border-radius: 0;
    /* Sharp */
    text-align: center;
    border: 1px solid transparent;
}

.jpc-verdict-box.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.jpc-verdict-box.fail {
    background: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.jpc-verdict-text {
    /* font-family: 'Raleway', sans-serif; -- Inherit */
    font-weight: 700;
    font-size: 1.2em;
    display: block;
    margin-bottom: 5px;
    color: inherit;
}

.jpc-verdict-detail {
    /* font-family: 'PT Serif', serif; -- Inherit */
    font-size: 1em;
    color: inherit;
}

/* Warning Box */
.jpc-warning-box {
    background: #fff8e1;
    color: #856404;
    padding: 15px;
    border: 1px solid #ffeeba;
    /* Sharp corners */
    /* font-family: 'PT Serif', serif; -- Inherit */
}

/* Logo Styles */
.jpc-logo {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 200px;
    height: auto;
}

/* Disclaimer Spacing */
.jpc-disclaimer {
    margin-top: 20px;
    color: #000;
}