/* ==========================================================
   Vietnam Custom Checkout — Premium Medical Theme Styles
   ========================================================== */

/* 1. Core Card Panel Styles */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-checkout-payment {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 16px !important;
	padding: 30px !important;
	box-shadow: 0 10px 30px rgba(13, 148, 136, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
	margin-bottom: 30px !important;
	box-sizing: border-box !important;
}

.woocommerce-checkout #order_review_heading {
	font-size: 20px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin-bottom: 20px !important;
	border-bottom: 2px solid #f1f5f9 !important;
	padding-bottom: 10px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
}

/* 2. Step-by-Step Checkout Visual Guide */
.ttcvn-checkout-steps {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 35px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 15px 30px;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.ttcvn-step {
	display: flex;
	align-items: center;
	font-weight: 600;
	font-size: 15px;
	color: #64748b;
	position: relative;
	transition: all 0.3s ease;
}

.ttcvn-step-num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #cbd5e1;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	margin-right: 12px;
	transition: all 0.3s ease;
}

.ttcvn-step.active {
	color: #0d9488;
}

.ttcvn-step.active .ttcvn-step-num {
	background: #0d9488;
	box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.ttcvn-step.completed {
	color: #0f766e;
}

.ttcvn-step.completed .ttcvn-step-num {
	background: #10b981; /* Green success */
}

.ttcvn-step-arrow {
	color: #cbd5e1;
	font-weight: 300;
}

/* Collapsible Steps for better UX */
.ttcvn-checkout-section {
	transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
	overflow: hidden;
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
}
.ttcvn-checkout-section.collapsed {
	max-height: 0 !important;
	opacity: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin: 0 !important;
	pointer-events: none;
}

/* Next Step CTA Button */
.ttcvn-next-step-btn {
	display: inline-block;
	background: #0d9488 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 12px 28px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 20px;
	text-align: center;
	box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}
.ttcvn-next-step-btn:hover {
	background: #0f766e !important;
	box-shadow: 0 6px 16px rgba(13, 148, 136, 0.25);
	transform: translateY(-1px);
}

/* 3. Hide Unnecessary Country Field */
.ttcvn-hidden-country,
#billing_country_field {
	display: none !important;
}

/* 4. Dropdowns (Select fields) */
.woocommerce-checkout .form-row select,
#billing_state_field select,
#billing_city_field select,
#billing_address_2_field select {
	display: block !important;
	width: 100% !important;
	height: 48px !important;
	padding: 10px 14px !important;
	font-size: 14px !important;
	font-family: inherit !important;
	color: #1e293b !important;
	background-color: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	appearance: auto !important;
	-webkit-appearance: auto !important;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 5. Inputs (Text, Email, Tel) */
.woocommerce-checkout #customer_details input[type="text"],
.woocommerce-checkout #customer_details input[type="email"],
.woocommerce-checkout #customer_details input[type="tel"] {
	padding: 10px 14px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	width: 100% !important;
	box-sizing: border-box !important;
	height: 48px !important;
	box-shadow: none !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
	color: #1e293b !important;
	background-color: #ffffff !important;
}

/* Focus States */
.woocommerce-checkout #customer_details input:focus,
.woocommerce-checkout .form-row select:focus {
	border-color: #0d9488 !important;
	outline: none !important;
	box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1) !important;
	background-color: #ffffff !important;
}

/* Success Validation Highlights */
.woocommerce-checkout #customer_details .form-row.woocommerce-validated input {
	border-color: #10b981 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2310b981'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 18px 18px !important;
	padding-right: 40px !important;
}

/* 6. Form Fields Hierarchy & Placement */
.woocommerce-checkout #customer_details .form-row label {
	font-weight: 600 !important;
	color: #475569 !important;
	font-size: 13.5px !important;
	margin-bottom: 6px !important;
	display: block;
}

.woocommerce-checkout #customer_details .form-row {
	margin-bottom: 18px !important;
}

.woocommerce-checkout #customer_details .form-row-first {
	float: left !important;
	width: 48% !important;
	margin-right: 4% !important;
	clear: none !important;
}

.woocommerce-checkout #customer_details .form-row-last {
	float: right !important;
	width: 48% !important;
	clear: none !important;
}

.woocommerce-checkout #customer_details .form-row-wide {
	float: none !important;
	width: 100% !important;
	clear: both !important;
}

.ttcvn-province-select {
	float: left !important;
	width: 48% !important;
	margin-right: 4% !important;
}

.ttcvn-district-field {
	float: right !important;
	width: 48% !important;
}

.ttcvn-ward-field {
	float: left !important;
	width: 48% !important;
	margin-right: 4% !important;
}

/* Clearfix */
.woocommerce-checkout #customer_details::after,
.woocommerce-billing-fields::after,
.woocommerce-checkout-payment::before {
	content: "";
	display: table;
	clear: both;
}

/* 7. Premium Checkout Review Table */
.woocommerce-checkout-review-order-table {
	border-collapse: collapse !important;
	width: 100% !important;
	border: none !important;
	margin-bottom: 20px !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
	padding: 14px 0 !important;
	border-bottom: 1px solid #f1f5f9 !important;
	font-size: 14px !important;
	color: #475569 !important;
}

.woocommerce-checkout-review-order-table .product-name {
	font-weight: 500 !important;
	color: #1e293b !important;
}

.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout-review-order-table .cart-subtotal td,
.woocommerce-checkout-review-order-table .shipping td {
	font-weight: 600 !important;
	color: #0f172a !important;
	text-align: right !important;
}

.woocommerce-checkout-review-order-table .order-total th {
	font-size: 16px !important;
	color: #0f172a !important;
	font-weight: 700 !important;
}

.woocommerce-checkout-review-order-table .order-total td {
	font-size: 18px !important;
	color: #0d9488 !important;
	font-weight: 800 !important;
	text-align: right !important;
}

/* 8. Trust Badges styling */
.ttcvn-trust-badges {
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px dashed #e2e8f0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.ttcvn-badge-item {
	display: flex;
	align-items: center;
	font-size: 12px;
	color: #64748b;
	font-weight: 500;
}

.ttcvn-badge-icon {
	width: 18px;
	height: 18px;
	margin-right: 8px;
	color: #0d9488;
	flex-shrink: 0;
}

/* 9. Mobile Responsive styles */
@media (max-width: 768px) {
	.woocommerce-checkout #customer_details,
	.woocommerce-checkout #order_review,
	.woocommerce-checkout-payment {
		padding: 20px !important;
	}
	
	.ttcvn-checkout-steps {
		padding: 12px 16px;
	}
	
	.ttcvn-step {
		font-size: 13px;
	}
}

@media (max-width: 640px) {
	.woocommerce-checkout #customer_details .form-row-first,
	.woocommerce-checkout #customer_details .form-row-last,
	.ttcvn-province-select,
	.ttcvn-district-field,
	.ttcvn-ward-field {
		float: none !important;
		width: 100% !important;
		margin-right: 0 !important;
	}
	
	.ttcvn-trust-badges {
		grid-template-columns: 1fr;
	}
}
