/* Quote Form Container */
.quote-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* #form-7c {
    display: none;
} */
.recaptcha_quote1 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.captcha-only-form {
    display: block;
}

.form-7c-forhide {
    display: none;

}

.quote-form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* Tabs Navigation */
.quote-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.quote-tab-button {
    background: none;
    border: none;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    padding: 10px 15px;
    transition: color 0.3s;
    font-size: 16px;
    flex: 1;
    text-align: center;
}

.quote-tab-button.active {
    color: #D4AF37;
    /* Gold color */
    border-bottom: 3px solid #D4AF37;
    margin-bottom: -12px;
    /* Pull down to overlap border */
}

/* Form Steps */
.quote-step {
    display: none;
    animation: fadeIn 0.5s;
}

.quote-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #D4AF37;
    outline: none;
}

/* Autocomplete Styles */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.autocomplete-list li {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.autocomplete-list li:last-child {
    border-bottom: none;
}

.autocomplete-list li:hover,
.autocomplete-list li.active {
    background-color: #f9f9f9;
}

.current-location-item {
    font-weight: bold;
    color: #D4AF37;
    background-color: #fdfdfd;
}

.current-location-item:hover {
    background-color: #fafafa;
}

/* Vehicle Selection */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.vehicle-card {
    border: 1px solid #eee;
    /* Light border by default */
    background: #fff;
    padding: 30px 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 450px;
    /* Ensure uniform height */
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.vehicle-card.selected {
    border: 2px solid #D4AF37;
    /* Gold Border */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.vehicle-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.vehicle-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vehicle-title {
    font-family: serif;
    /* Or use a specific font if loaded */
    font-size: 22px;
    margin: 10px 0;
    color: #1a1a1a;
    font-weight: 700;
}

.vehicle-desc {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 90%;
}

.vehicle-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    width: 100%;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.meta-icon svg {
    /* Handled by inline SVG attributes */
}

.meta-text {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.btn-vehicle-select {
    background-color: #D4AF37;
    color: #fff;
    border: none;
    padding: 12px 30px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin-top: auto;
}

.btn-vehicle-select:hover {
    background-color: #bfa030;
}

/* Buttons */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-nav {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-back {
    background-color: #f0f0f0;
    color: #333;
}

.btn-back:hover {
    background-color: #e0e0e0;
}

.btn-next,
.btn-submit {
    background-color: #000;
    color: #fff;
}

.btn-next:hover,
.btn-submit:hover {
    background-color: #333;
}

/* Summary Section */
.summary-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.summary-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    width: 30%;
    color: #555;
    word-break: break-word;
    /* Prevent overflow */
}

.summary-value {
    width: 70%;
    color: #000;
    word-break: break-word;
    /* Prevent overflow */
}

/* Error Messages */
.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
    /* Hidden by default */
    display: block;
    /* Overridden by JS when creating, but let's keep it clean. Actually removing display:none here might show empty spaces if not careful, but spans are inline. Let's make it display: block but empty content won't show much. Better: keep display:none and toggle it via JS or just rely on textContent being empty. */
    min-height: 0;
    /* logic change: let JS handle display property or just text presence */
}

/* Specific fix for error span visibility */
span.error-message {
    display: none;
    width: 100%;
}

span.error-message.visible {
    display: block;
}

.input-error {
    border-color: #e74c3c !important;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .quote-tabs {
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
    }

    .quote-tab-button {
        flex: 0 0 auto;
    }
}