/*

Theme Name: Thinksmart Insuarrance

Theme URI: https://github.com/elementor/hello-theme/

Description: Thinksmart Insuarrance

Author: thietkewebdc.com

Author URI: https://thietkewebdc.com/

Template: hello-elementor

Version: 1.0.1

Text Domain: hello-elementor-child

License: GNU General Public License v3 or later.

License URI: https://www.gnu.org/licenses/gpl-3.0.html

*/
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

body {
  font-family: 'Roboto', sans-serif;
}


.ct-search-box {
	display: flex;
	align-items: center;
	background: linear-gradient(93.64deg, #EC4B4B 3.47%, #BB0000 97.14%);
	border-radius: 30px;
	overflow: hidden;
	padding: 0 10px;
	max-width: 680px;
	margin: auto;
	box-shadow: 0px 4px 4px 0px #00000040;

}

.ct-search-box .ct-search-category {
	border: none;
	background: transparent;
	color: white;
	padding: 12px;
	font-size: 16px;
	font-weight: 300 !important;
	width: 160px;
	cursor: pointer;
	outline: none;
}

.ct-search-box .ct-search-input {
	flex-grow: 1;
	border: none;
	padding: 12px 20px;
	font-size: 18px;
	color: white;
	background: transparent;
    font-weight: 300 !important;
    outline: none;
}

.ct-search-box .ct-search-input::placeholder {
	color: #fff;
}

.ct-search-box .ct-search-button {
	background: transparent !important;
	border: none;
	color: white;
	padding: 10px;
	cursor: pointer;
	font-size: 18px;
	outline: none;
}

.ct-search-box .ct-search-button:hover {
    color: #ddd;
}

.ct-search-box .ct-search-button i {
	font-style: normal;
}

.ct-search-button {
	display: flex;
	align-items: center;
	border: none;
	background: transparent;
	color: white;
	padding: 10px 15px;
	cursor: pointer;
	font-size: 18px;
}

.ct-search-separator {
	display: inline-block;
	width: 2px;
	height: 20px;
	background-color: #fff;
	margin-right: 10px;
	opacity: 0.3;
	transform: translateY(3px);
}

/* Cố gắng style phần item trong dropdown */
.ct-search-category option {
	color: #000;
	padding: 10px;
	font-size: 14px;
}

@media (max-width: 768px) {
	.ct-search-box .ct-search-category {
		color: transparent;
		text-indent: 100%;
		white-space: nowrap;
		overflow: hidden;
		width: 40px;
		padding: 12px;
		background-position: center right 10px;
		background-image: url("data:image/svg+xml,%3Csvg fill='white' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-size: 14px;
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none;
	}
	.ct-search-box .ct-search-input {
	    font-size: 16px;
	}
}

.cf7-custom-form {
    margin: 0 auto;
    background: #fff;
}

.cf7-custom-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.cf7-custom-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cf7-custom-form label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}
.radio-text p {
    margin-bottom: 8px;
}
.cf7-custom-form .required {
    color: #e74c3c;
}

.cf7-custom-form input[type="text"],
.cf7-custom-form input[type="email"],
.cf7-custom-form input[type="tel"],
.cf7-custom-form input[type="date"],
.cf7-custom-form select,
.cf7-custom-form textarea {
    padding: 10px 15px;
    border: 1px solid #E5EAF4;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.cf7-custom-form input[type="text"]:focus,
.cf7-custom-form input[type="email"]:focus,
.cf7-custom-form input[type="tel"]:focus,
.cf7-custom-form input[type="date"]:focus,
.cf7-custom-form select:focus,
.cf7-custom-form textarea:focus {
    outline: none;
    border-color: #333;
}

.cf7-custom-form input::placeholder,
.cf7-custom-form textarea::placeholder {
    color: #999;
    font-style: italic;
}

.cf7-custom-form .radio-wrapper  .wpcf7-radio {
    display: flex;
    gap: 30px;
}

.cf7-custom-form .wpcf7-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
}

.cf7-custom-form input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #e74c3c;
    margin: 0 !important;
}

.cf7-custom-form .wpcf7-list-item label {
    margin: 0 !important;
    font-weight: normal;
    cursor: pointer;
}

/* Textarea styling */
.cf7-custom-form textarea {
    resize: vertical;
    height: 213px;
    font-family: inherit;
}

/* Select dropdown styling */
.cf7-custom-form select {
    cursor: pointer;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M6 9l6 6 6-6" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    appearance: none;
}

.cf7-custom-form .agreement-section p {
    display: flex;
    gap: 10px;
}

.cf7-custom-form .agreement-section input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007cba;
    margin-top: 2px;
    flex-shrink: 0;
}

.cf7-custom-form .agreement-section .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cf7-custom-form .agreement-section label {
    margin: 0;
    font-weight: normal;
    line-height: 1.4;
    cursor: pointer;
}

/* Submit button */
.cf7-custom-form .submit-section {
    margin-top: 20px;
    text-align: center;
}

.cf7-custom-form input[type="submit"] {
    background: linear-gradient(93.64deg, #EC4B4B 3.47%, #BB0000 97.14%);
    color: white;
    padding: 8px 30px;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
}

.cf7-custom-form input[type="submit"]:hover {
opacity: 0.8;
}

/* Date input styling */
.cf7-custom-form input[type="date"] {
    color: #999;
}

.cf7-custom-form input[type="date"]:valid {
    color: #333;
}

.cf7-custom-form input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cf7-custom-form .form-row {
        flex-direction: column;
        gap: 0;
    }    
    
    .cf7-custom-form .radio-wrapper {
        gap: 20px;
    }
}

/* Remove default CF7 styling */
.cf7-custom-form .wpcf7-form p {
    margin: 0;
}

.cf7-custom-form .wpcf7-list-item {
    margin-left: 0;
}

.cf7-custom-form .wpcf7-list-item-label {
    margin-left: 0;
}
