/* Styling for the comparison form */
#insurance-comparison-form {
/*    margin-bottom: 20px; */
    background-color: #ffffff;
/*    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    z-index: 1000;
    position: relative;
}

#insurance-comparison-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

#insurance-comparison-form input[type="text"],
#insurance-comparison-form input[type="date"],
#insurance-comparison-form select {
    width: 50%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #ffffff;
}

#insurance-comparison-form button[type="submit"] {
    background-color: #28a745;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
	margin-top: 24px;
	display: block;
	width: 50%;
}

#insurance-comparison-form button[type="submit"]:hover {
    background-color: #28a745;
}

/* Styling for the insurance results */
#insurance-results {
	background-color: #ffffff;
/*    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    z-index: 1000;
    position: relative;
}

/* Styling for the input overview */
#input-overview {
    margin-top: 10px;
    padding: 10px;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

/* Styling for the results count */
#results-count {
    margin-top: 10px;
    font-weight: bold;
    font-size: 16px;
}

/* Styling for the insurance items */
.insurance-item {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 16px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.insurance-info {
    flex-grow: 1;
}

.insurance-item h3 {
    margin: 0;
    font-size: 18px;
}

.insurance-item p {
    margin: 5px 0;
    font-size: 14px;
}

/* 
the cheapest option */
.highlighted-result {
    border: 1px solid #28a745;
    background-color: #28a7451a;
}

.highlighted-result-2 {
    border: 1px solid #1e90ff;
    background-color: #1e90ff1a;
}

.highlight-message {
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

.highlight-message-1 {
    padding-bottom: 10px;
	padding-left: 22px;
}

.highlight-message-2 {
    color: #1e90ff;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Styling for the buttons */
.insurance-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.apply-now {
    background-color: #28a745;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

a.apply-now {
    color: white !important;
	text-decoration: none !important;
}

.get-offer {
    background-color: white;
    color: #1e90ff;
    padding: 8px 18px;
    border: 1px solid #1e90ff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
}

a.get-offer {
    color: #1e90ff !important;
	text-decoration: none !important;
}

/* mobile design */
@media (max-width: 768px) {
	/* buttons */
    .insurance-item {
        flex-direction: column; /* Stack elements vertically */
        align-items: flex-start; /* Align text to left */
    }

    .insurance-info {
        width: 100%; /* Ensure content takes full width */
    }

    .insurance-buttons {
        width: 100%;
        margin-top: 10px; /* Add spacing between content and buttons */
    }

    .apply-now,
    .get-offer {
        width: 100%;
        padding: 15px;
    }

    a.apply-now,
    a.get-offer {
        width: 100%;
    }
/* form */
	#insurance-comparison-form input[type="text"],
#insurance-comparison-form input[type="date"],
#insurance-comparison-form select, 
	#insurance-comparison-form button[type="submit"] {
    width: 100%;
}
}

/* Styling for the button */
#modify-details {
    display: block;
    background-color: #fff;
    color: #575760;
    padding: 10px;
    border: 1px dotted #575760;
	border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 15px;
    z-index: 1001;
    position: relative;
}

/* Styling for the insurance form section */
#insurance-form-section {
    margin-top: 20px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

#insurance-form-section button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
}

#insurance-form-section button:hover {
    background-color: #45a049;
}

#insurance-form label {
    display: block;
    margin-bottom: 5px;
}

#insurance-form input[type="text"],
#insurance-form input[type="date"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Styling for the jQuery UI Autocomplete dropdown */
.ui-autocomplete {
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 1000;
    position: absolute;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ui-menu-item {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

.ui-menu-item:hover {
    background-color: #f0f0f0;
}

.ui-state-active {
    background-color: #4CAF50 !important;
    color: white !important;
}
