/**
 * Phone Input Styles for DE validation
 * Fixed GEO - Germany (+49)
 */

/* ============================================
   Unified Form Field Styles - All fields white & same size
   ============================================ */

/* Base styles for all form controls */
.contact-form .form-control,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="password"],
.contact-form select,
.contact-form .custom-select-categories {
	background: #ffffff !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 4px !important;
	height: 56px !important;
	padding: 15px 20px !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	color: #17305e !important;
	box-shadow: none !important;
	transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.contact-form .form-control:focus,
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form input[type="password"]:focus,
.contact-form select:focus,
.contact-form .custom-select-categories:focus {
	border-color: #db5a0c !important;
	box-shadow: 0 0 0 3px rgba(219, 90, 12, 0.15) !important;
	background: #ffffff !important;
}

/* Textarea - same white, taller height */
.contact-form textarea.form-control {
	background: #ffffff !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 4px !important;
	min-height: 150px !important;
	height: auto !important;
	padding: 15px 20px !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	color: #17305e !important;
	resize: vertical !important;
}

.contact-form textarea.form-control:focus {
	border-color: #db5a0c !important;
	box-shadow: 0 0 0 3px rgba(219, 90, 12, 0.15) !important;
}

/* Select dropdown styling */
.contact-form select.custom-select-categories {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2317305e' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 15px center !important;
	padding-right: 40px !important;
	cursor: pointer !important;
}

/* Placeholder color */
.contact-form .form-control::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: #8e9aaf !important;
	opacity: 1 !important;
}

/* ============================================
   Phone Input Wrapper Styles
   ============================================ */

.phone-input-wrapper {
	display: flex;
	align-items: center;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	background: #ffffff;
	overflow: hidden;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	height: 56px;
}

.phone-input-wrapper:focus-within {
	border-color: #db5a0c;
	box-shadow: 0 0 0 3px rgba(219, 90, 12, 0.15);
}

.phone-input-wrapper.is-invalid {
	border-color: #dc3545;
}

.phone-input-wrapper.is-invalid:focus-within {
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.phone-input-wrapper.is-valid {
	border-color: #28a745;
}

.phone-input-wrapper.is-valid:focus-within {
	box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.phone-prefix {
	display: flex;
	align-items: center;
	padding: 0 15px;
	background: #f8f9fa;
	border-right: 1px solid #e0e0e0;
	height: 100%;
	flex-shrink: 0;
}

.phone-flag {
	width: 24px;
	height: 16px;
	margin-right: 8px;
	border-radius: 2px;
	object-fit: cover;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.phone-dial-code {
	font-weight: 600;
	color: #17305e;
	font-size: 16px;
	white-space: nowrap;
}

.phone-local-input {
	border: none !important;
	box-shadow: none !important;
	padding: 15px 20px 15px 15px !important;
	flex: 1;
	height: 100% !important;
	min-width: 0;
	background: #ffffff !important;
	font-size: 16px !important;
	color: #17305e !important;
}

.phone-local-input:focus {
	outline: none !important;
	box-shadow: none !important;
	background: #ffffff !important;
}

.phone-local-input::placeholder {
	color: #8e9aaf !important;
	opacity: 1 !important;
}

.phone-error {
	color: #dc3545;
	font-size: 12px;
	margin-top: 5px;
	min-height: 18px;
	line-height: 1.4;
}

/* ============================================
   Validation states for regular inputs
   ============================================ */

.contact-form .form-control.is-invalid,
.contact-form input.is-invalid,
.contact-form select.is-invalid,
.contact-form textarea.is-invalid {
	border-color: #dc3545 !important;
}

.contact-form .form-control.is-valid,
.contact-form input.is-valid,
.contact-form select.is-valid,
.contact-form textarea.is-valid {
	border-color: #28a745 !important;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 576px) {
	.contact-form .form-control,
	.contact-form input[type="text"],
	.contact-form input[type="email"],
	.contact-form input[type="tel"],
	.contact-form input[type="password"],
	.contact-form select,
	.contact-form .custom-select-categories,
	.phone-input-wrapper {
		height: 50px !important;
	}
	
	.phone-prefix {
		padding: 0 10px;
	}
	
	.phone-flag {
		width: 20px;
		height: 14px;
		margin-right: 6px;
	}
	
	.phone-dial-code {
		font-size: 14px;
	}
	
	.phone-local-input {
		padding: 12px 15px 12px 10px !important;
		font-size: 14px !important;
	}
	
	.contact-form .form-control,
	.contact-form input,
	.contact-form select {
		font-size: 14px !important;
		padding: 12px 15px !important;
	}
}
