/**
 * Elite Pain & Health — Contact Form Styles
 *
 * @package ElitePainHealthForm
 */

 .wpcf7 p, label{
	padding: 0 !important;
 }

/* ─── Wrapper ────────────────────────────────── */
.ephf-form-wrapper {
	max-width: 600px;
	margin: 0 auto;
	padding: 32px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	color: #333;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ─── Fields ─────────────────────────────────── */
.ephf-field {
	margin-bottom: 10px;
}

.ephf-field label {
	display: block;
	margin-bottom: 2px;
	font-weight: 600;
	font-size: 14px;
	color: #222;
	text-transform: uppercase;
}

.ephf-required {
	color: #e53935;
	margin-left: 2px;
}

.ephf-field input[type="text"],
.ephf-field input[type="email"],
.ephf-field input[type="tel"],
.ephf-otp-row input[type="text"] {
	width: 100%;
	padding: 10px 14px;
	font-size: 15px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fafafa;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.ephf-field input:focus,
.ephf-otp-row input:focus {
	outline: none;
	border-color: #1976d2;
	box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.12);
	background: #fff;
	color: #9f9696 !important; ;
}

.ephf-field input.ephf-input-error {
	border-color: #e53935;
}

/* ─── Phone row ──────────────────────────────── */
.ephf-phone-row {
	display: flex;
	gap: 10px;
	align-items: center;
}

.ephf-phone-row input[type="tel"] {
	flex: 1;
}

/* ─── OTP section ────────────────────────────── */
.ephf-otp-section {
	margin-top: 12px;
	padding: 14px;
	background: #f5f7fa;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
}

.ephf-otp-row {
	display: flex;
	gap: 10px;
	align-items: center;
}

.ephf-otp-row input {
	flex: 1;
	max-width: 200px;
	letter-spacing: 4px;
	font-size: 18px;
	text-align: center;
}

.ephf-otp-timer {
	margin-top: 8px;
	font-size: 13px;
	color: #888;
}

/* ─── Phone status ───────────────────────────── */
.ephf-phone-status:empty {
	display: none;
}

.ephf-phone-status {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
}

.ephf-phone-status.ephf-status-success {
	color: #2e7d32;
}

.ephf-phone-status.ephf-status-error {
	color: #e53935;
}

.ephf-phone-status.ephf-status-warning {
	color: #f57c00;
}

/* ─── Buttons ────────────────────────────────── */
.ephf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s;
	white-space: nowrap;
}

.ephf-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ephf-btn-otp {
	background: #1976d2;
	color: #fff;
}

.ephf-btn-otp:hover:not(:disabled) {
	background: #1565c0;
}

.ephf-btn-verify {
	background: #2e7d32;
	color: #fff;
}

.ephf-btn-verify:hover:not(:disabled) {
	background: #256029;
}

.ephf-btn-submit {
	width: 100%;
	padding: 14px 20px;
	font-size: 16px;
	background: #1976d2;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.ephf-btn-submit:hover:not(:disabled) {
	background: #1565c0;
}

.ephf-btn-link {
	background: none;
	border: none;
	color: #1976d2;
	cursor: pointer;
	padding: 4px 0;
	margin-top: 8px;
	font-size: 13px;
	text-decoration: underline;
}

.ephf-btn-link:hover {
	color: #0d47a1;
}

/* ─── Consent checkbox ───────────────────────── */
.ephf-field-consent {
	margin-top: 20px;
	padding: 16px 18px;
	background: #f8f9fb;
	border: 1px solid #e0e3e8;
	border-radius: 8px;
}

.ephf-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-weight: 400 !important;
	cursor: pointer;
}

.ephf-checkbox-label input[type="checkbox"] {
	margin-top: 2px;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	accent-color: #1976d2;
	cursor: pointer;
}

.ephf-consent-text {
	font-size: 12.5px;
	line-height: 1.6;
	color: #555;
	text-transform: none;
}

.ephf-consent-text a {
	color: #1976d2;
	font-weight: 600;
	text-decoration: none;
}

.ephf-consent-text a:hover {
	color: #0d47a1;
	text-decoration: underline;
}

/* ─── Messages ───────────────────────────────── */
.ephf-form-messages:empty {
	display: none;
}

.ephf-form-messages {
	margin-bottom: 12px;
	font-size: 14px;
}

.ephf-form-messages.ephf-msg-error {
	color: #e53935;
	padding: 10px 14px;
	background: #ffebee;
	border-radius: 6px;
	border: 1px solid #ef9a9a;
}

.ephf-form-messages.ephf-msg-success {
	color: #2e7d32;
	padding: 10px 14px;
	background: #e8f5e9;
	border-radius: 6px;
	border: 1px solid #a5d6a7;
}

/* ─── Success screen ─────────────────────────── */
.ephf-success-message {
	text-align: center;
	padding: 40px 20px;
}

.ephf-success-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	background: #2e7d32;
	color: #fff;
	font-size: 32px;
	line-height: 64px;
	border-radius: 50%;
}

.ephf-success-message h3 {
	margin: 0 0 8px;
	font-size: 22px;
	color: #222;
}

.ephf-success-message p {
	margin: 0;
	color: #555;
	font-size: 15px;
}

/* ─── Loading spinner ────────────────────────── */
.ephf-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ephf-spin 0.6s linear infinite;
	margin-right: 6px;
	vertical-align: middle;
}

@keyframes ephf-spin {
	to { transform: rotate(360deg); }
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 600px) {
	.ephf-form-wrapper {
		padding: 20px 16px;
		margin: 0 12px;
		border-radius: 6px;
	}

	.ephf-phone-row {
		flex-direction: column;
		align-items: stretch;
	}

	.ephf-phone-row input[type="tel"] {
		width: 100%;
	}

	.ephf-otp-row {
		flex-direction: column;
		align-items: stretch;
	}

	.ephf-otp-row input {
		max-width: 100%;
	}

	.ephf-btn-otp,
	.ephf-btn-verify {
		width: 100%;
	}
}
