/* Insurance Quote UI Styles */
.insurance-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.insurance-form input,
.insurance-form select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

.insurance-form input:focus,
.insurance-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.insurance-form label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    color: #333;
}

.insurance-form .error-message {
    color: #e11d48;
    font-size: 12px;
    margin-top: 2px;
}

.insurance-form .form-group {
    margin-bottom: 10px;
}

/* OTP Verification */
.otp-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.otp-input {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.otp-input input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.otp-input input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.otp-timer {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 8px;
}

.otp-resend {
    text-align: center;
    margin-top: 8px;
}

.otp-resend button {
    background: none;
    border: none;
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

/* Insurance Quotes Display */
.quotes-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.quotes-container h3 {
    color: #111827;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* New Table Style for Insurance Quotes */
.insurance-quotes-table {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

.insurance-quotes-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.insurance-quotes-table th {
    background-color: #f3f4f6;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
}

.insurance-quotes-table td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
}

.insurance-quotes-table tr:last-child td {
    border-bottom: none;
}

.insurance-quotes-table tr:hover {
    background-color: #f9fafb;
}

/* Company Cell */
.company-cell {
    width: 40%;
    position: relative;
}

.company-info {
    display: flex;
    align-items: center;
}

.company-logo-placeholder {
    width: 40px;
    height: 40px;
    background-color: #2563eb;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.company-name {
    font-weight: 600;
    font-size: 16px;
    color: #111827;
    white-space: nowrap;
}

/* Price Cell */
.price-cell {
    width: 20%;
}

.price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

/* Installment Cell */
.installment-cell {
    width: 20%;
}

.installment-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: white;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
}

.installment-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Action Cell */
.action-cell {
    width: 20%;
}

.buy-button {
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.buy-button:hover {
    background-color: #1d4ed8;
}

/* Tags */
.tag-badge {
    position: absolute;
    top: -8px;
    left: 20px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 12px;
    color: white;
}

.tag-cheapest {
    background-color: #10b981;
}

.tag-premium {
    background-color: #8b5cf6;
}

/* More quotes link */
.more-quotes {
    width: 100%;
    background-color: #f3f4f6;
    color: #6b7280;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-top: 1px solid #e5e7eb;
}

.more-quotes:hover {
    background-color: #e5e7eb;
}

/* Coverage Comparison Table */
.coverage-comparison {
    width: 100%;
    margin-top: 15px;
}

.coverage-comparison h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111827;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 15px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #334155;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background-color: #f8fafc;
}

/* Highlighted row for special items like Unlimited IMM */
.comparison-table tr.highlighted-row td {
    background-color: #e8f5e9; /* Light green background */
    font-weight: 600;
    color: #2e7d32; /* Darker green text */
}

/* For the first column (company names) */
.comparison-table td:first-child {
    font-weight: 500;
    color: #334155;
}

/* Loading animation for quote generation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.loading .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: #2563eb;
    border-radius: 50%;
    animation: loading-animation 1.4s infinite ease-in-out both;
}

.loading .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading-animation {
    0%, 80%, 100% { 
        transform: scale(0);
    } 
    40% { 
        transform: scale(1.0);
    }
}

/* Car Info Card Styling */
.car-info-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
    border: 1px solid #e5e7eb;
    max-width: 100%;
}

.car-info-card h3 {
    color: #2563eb;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
    font-weight: 600;
}

.car-info-content {
    margin-bottom: 15px;
}

.car-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.car-name {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.car-year {
    font-size: 18px;
    font-weight: 600;
    color: #4b5563;
    padding: 5px 10px;
    background-color: #f3f4f6;
    border-radius: 6px;
}

.car-image {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    padding: 10px;
    height: 150px;
    overflow: hidden;
}

.car-image-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.car-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.car-info-item {
    padding: 10px;
    background-color: #f9fafb;
    border-radius: 8px;
    text-align: center;
}

.info-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
}

.car-details {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.car-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.car-detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: #6b7280;
    font-weight: 500;
}

.detail-value {
    color: #111827;
    font-weight: 600;
}

.car-info-question {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #2563eb;
    margin-top: 15px;
}