/* RATEC Contact Form Styles */

/* Container */
.ratec-cf-container {
	width: 50%;
	padding: 40px 20px;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	margin: 0 auto;
	min-height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 25px;
}

/* Wrapper */
.ratec-cf-wrapper {
	width: 100%;
	max-width: 480px;
	background: #ffffff;
	border-radius: 25px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
	padding: 40px;
	transition: box-shadow 0.3s ease;
}

.ratec-cf-wrapper:hover {
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

/* Header */
.ratec-cf-header {
	text-align: center;
	margin-bottom: 40px;
}

.ratec-cf-title {
	font-size: 32px;
	font-weight: 700;
	color: #1a2332;
	margin: 0 0 12px 0;
	line-height: 1.2;
}

.ratec-cf-subtitle {
	font-size: 16px;
	color: #6c757d;
	margin: 0;
	line-height: 1.5;
}

/* Form */
.ratec-cf-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Form Group */
.ratec-cf-form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Label */
.ratec-cf-label {
	font-size: 14px;
	font-weight: 600;
	color: #1a2332;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Input Fields */
.ratec-cf-input,
.ratec-cf-textarea {
	padding: 14px 16px;
	border: 2px solid #e0e6ed;
	border-radius: 8px;
	font-size: 15px;
	color: #1a2332;
	background: #f8f9fb;
	transition: all 0.3s ease;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', Arial, sans-serif;
}

.ratec-cf-input:focus,
.ratec-cf-textarea:focus {
	outline: none;
	border-color: #4a90e2;
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.ratec-cf-input::placeholder,
.ratec-cf-textarea::placeholder {
	color: #a3aed5;
}

/* Textarea */
.ratec-cf-textarea {
	resize: vertical;
	min-height: 140px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', Arial, sans-serif;
}

/* Error Message */
.ratec-cf-error {
	font-size: 13px;
	color: #e74c3c;
	display: none;
	margin-top: -4px;
}

.ratec-cf-error.show {
	display: block;
}

/* Honeypot */
.ratec-cf-honeypot {
	display: none !important;
}

/* Message Box */
.ratec-cf-message-box {
	padding: 16px 20px;
	border-radius: 8px;
	display: none;
	font-size: 14px;
	font-weight: 500;
	animation: slideDown 0.3s ease;
}

.ratec-cf-message-box.show {
	display: block;
}

.ratec-cf-message-box.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.ratec-cf-message-box.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Submit Button */
.ratec-cf-submit {
	padding: 16px 32px;
	background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	margin-top: 12px;
}

.ratec-cf-submit:hover:not(:disabled) {
	background: linear-gradient(135deg, #357abd 0%, #2a5a8d 100%);
	box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
	transform: translateY(-2px);
}

.ratec-cf-submit:active:not(:disabled) {
	transform: translateY(0);
}

.ratec-cf-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Submit Text */
.ratec-cf-submit-text {
	display: inline-block;
}

/* Spinner */
.ratec-cf-spinner {
	width: 18px;
	height: 18px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	display: none;
}

.ratec-cf-submit.loading .ratec-cf-spinner {
	display: block;
}

.ratec-cf-submit.loading .ratec-cf-submit-text {
	display: none;
}

/* Animations */
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive Design */
@media (max-width: 768px) {
	.ratec-cf-container {
		padding: 20px 10px;
	}

	.ratec-cf-wrapper {
		padding: 30px;
	}

	.ratec-cf-title {
		font-size: 26px;
	}

	.ratec-cf-subtitle {
		font-size: 14px;
	}

	.ratec-cf-form {
		gap: 20px;
	}

	.ratec-cf-input,
	.ratec-cf-textarea {
		padding: 12px 14px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.ratec-cf-wrapper {
		padding: 20px;
	}

	.ratec-cf-title {
		font-size: 22px;
	}

	.ratec-cf-subtitle {
		font-size: 13px;
	}

	.ratec-cf-label {
		font-size: 13px;
	}

	.ratec-cf-input,
	.ratec-cf-textarea {
		padding: 12px;
		font-size: 13px;
	}

	.ratec-cf-textarea {
		min-height: 120px;
	}

	.ratec-cf-submit {
		padding: 14px 24px;
		font-size: 14px;
		min-height: 44px;
	}
}
