/* Selection page styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    color: #131c20;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.selection-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #f6f6f6;
}

.selection-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.selection-content {
    padding: 32px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Intro / greeting */
.selection-intro {
    text-align: center;
}

.selection-intro h1 {
    font-size: 22px;
    font-weight: 700;
    color: #131c20;
    margin: 0 0 12px;
    line-height: 1;
}

.selection-intro p {
    font-size: 14px;
    color: #42494d;
    line-height: 1.15;
    margin: 0;
}

.accent-orange {
    color: #ef6020;
    font-weight: 600;
}

/* About AI Mechanic card */
.about-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-card h2 {
    font-size: 16px;
    font-weight: 500;
    color: #131c20;
    margin: 0;
    line-height: 1;
}

.about-card p {
    font-size: 14px;
    color: #42494d;
    margin: 0;
    line-height: 1.15;
}

.disclaimer-link {
    color: #2166d7;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 400;
}

/* Selected car section */
.selected-car-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-label {
    font-size: 16px;
    font-weight: 500;
    color: #131c20;
    margin: 0;
    line-height: 1;
}

.car-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.car-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.car-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.car-title {
    font-size: 12px;
    font-weight: 700;
    color: #131c20;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.car-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #42494d;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Add new car button */
.btn-add-car {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #ef6020;
    border-radius: 12px;
    min-height: 52px;
    padding: 8px 16px;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    color: #ef6020;
    transition: background-color 0.15s ease;
}

.btn-add-car:active {
    background-color: #fef5f0;
}

.garage-icon {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.garage-icon .plus-icon {
    flex-shrink: 0;
}

.garage-icon img {
    object-fit: contain;
}

/* Sticky footer */
.selection-footer {
    background: #fff;
    padding: 16px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.helper-text {
    font-size: 14px;
    color: #42494d;
    margin: 0;
    line-height: 1;
}

.btn-cta {
    background-color: #d1d1d6;
    color: #fff;
    border: none;
    border-radius: 12px;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: default;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-cta.active {
    background-color: #ef6020;
    cursor: pointer;
}

.btn-cta.active:active {
    background-color: #d9551b;
}

.footer-disclaimer {
    font-size: 12px;
    color: #42494d;
    text-align: center;
    line-height: 1.15;
    margin: 0;
}

.footer-disclaimer a {
    color: #2166d7;
    text-decoration: underline;
}

/* Disclaimer overlay */
.disclaimer-overlay {
    position: fixed;
    inset: 0;
    background: #f6f6f6;
    z-index: 100;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.25s ease-out;
}

.disclaimer-overlay.hidden {
    display: none !important;
}

.disclaimer-header {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 4px 16px 4px 4px;
    background: #fff;
    gap: 4px;
}

.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.disclaimer-title {
    font-size: 18px;
    font-weight: 700;
    color: #131c20;
}

.disclaimer-body {
    padding: 24px 16px;
    overflow-y: auto;
    flex: 1;
}

.disclaimer-body p {
    font-size: 14px;
    color: #42494d;
    line-height: 1.4;
    margin: 0 0 16px;
}

.disclaimer-body p:last-child {
    margin-bottom: 0;
}

.disclaimer-body a {
    color: #2166d7;
    text-decoration: underline;
}

/* Utilities */
.hidden {
    display: none !important;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}