.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 24px;
    justify-content: center;
    max-width: 500px;
    margin: 50px auto 32px;
}

.card {
    position: relative;
    background: #fff;
    border: 2px solid #f1f1f1;
    border-radius: 16px;
    padding: 24px 16px 16px;
    width: 100%;
    max-width: 200px;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.icon {
    height: 40px;
    margin-bottom: 16px;
}

.icon img {
    max-height: 100%;
    width: auto;
}

.card p {
    font-weight: 500;
    font-size: 14px;
    margin: 0;
    color: #333;
}

/* Custom checkbox */
.card .check {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    border: 2px solid #999;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.card .check:checked {
    background-color: #df2e52;
    border-color: #df2e52;
}

.card .check:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.selected-output {
    font-size: 32px;
    color: #df2e52;
    font-weight: bold;
    font-family: 'Georgia', serif;
}

.sub-text {
    margin-top: 35px;
}

.zip-code-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 40px;
}

.go-button {
    background: linear-gradient(173deg, #fd2f6a, #ff905b);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-wrapper {
    border: 2px solid #ff905b;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto 50px auto;
    flex-direction: column;
    gap: 20px;
    max-width: max(50%, 500px);
}

.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.card.dimmed {
    opacity: 0.4;
    pointer-events: none;
}

.card.disabled {
    pointer-events: none;
    opacity: 0.4;
}

.custom-message {
    color: red;
    font-size: 16px;
    margin-top: 10px;
}

.vehicle-form {
    border: 1px solid #e3e3e3;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #fff;
    position: relative;
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.vehicle-header h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
}

.remove-vehicle {
    background: none;
    border: none;
    color: #d43c3c;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.vehicle-fields {
    display: flex;
    gap: 5px;
    flex-direction: column;
}

.vehicle-fields .form-group {
    display: flex;
    flex-direction: column;
}

.vehicle-fields label {
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 15px;
    color: #333;
}

.vehicle-fields select,
.vehicle-fields input {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    transition: border 0.2s ease;
}

.vehicle-fields select:focus,
.vehicle-fields input:focus {
    border-color: #8240f5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(130, 64, 245, 0.1);
}

.vehicle-fields select.error,
.vehicle-fields input.error {
    border-color: #ff5f5f;
    background-color: #ffecec;
}

/* Add vehicle button */
#add-vehicle {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    background: #f7f7f7;
    border: 2px dashed #ccc;
    border-radius: 6px;
    font-size: 16px;
    color: #444;
    cursor: pointer;
    transition: all 0.3s ease;
}

#add-vehicle:hover {
    background: #eee;
    border-color: #999;
}

/* Continue button */
.continue-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #ff4f7b 0%, #ff8052 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 20px;
}

.continue-button:hover {
    background: linear-gradient(90deg, #ff3668 0%, #ff6432 100%);
}

.vehicle-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 15px;
    font-family: sans-serif;
}

.vehicle-card strong {
    font-size: 16px;
    color: #222;
}

.vehicle-card small {
    font-size: 13px;
    color: #999;
}

.vehicle-card .actions {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.vehicle-card .actions a {
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.vehicle-card .actions .edit {
    color: #0066cc;
}

.vehicle-card .actions .remove {
    color: #c60000;
}

.save-vehicle {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    background: linear-gradient(90deg, #ff4f7b 0%, #ff8052 100%);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.2s ease;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(255, 79, 123, 0.3);
}

.save-vehicle:hover {
    background: linear-gradient(90deg, #ff3668 0%, #ff6432 100%);
    box-shadow: 0 4px 12px rgba(255, 79, 123, 0.5);
}

.save-vehicle:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

#car-section-next:disabled {
    background-color: #ccc !important;
    color: #fff !important;
    cursor: not-allowed!important;
    opacity: 0.3;
}

.hidden {
    display: none;
}

#progress-bar-container {
    margin: 30px 0 20px;
    font-family: 'Georgia', serif;
}

#progress-bar {
    width: 100%;
    height: 10px;
    background-color: #f1f1f1;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

#progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #fd2f6a, #ff905b);
    transition: width 0.4s ease-in-out;
    border-radius: 999px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: bold;
    color: #3a3a3a;
    margin-top: 8px;
    padding: 0 2px;
}
