/* OpenConf Forms — front-end styles */

.ocf-form { max-width: 680px; }

.ocf-field { margin-bottom: 20px; }
.ocf-label { display: block; font-weight: 600; margin-bottom: 6px; }
.ocf-required-mark { color: #d63638; }
.ocf-sublabel { display: block; font-size: 12px; color: #666; margin-top: 4px; }
.ocf-description { font-size: 13px; color: #666; margin-top: 6px; }

.ocf-input {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font-size: 15px;
	box-sizing: border-box;
	background: #fff;
}
.ocf-input:focus { outline: 2px solid #2271b1; outline-offset: -1px; border-color: #2271b1; }

.ocf-row { display: flex; gap: 12px; }
.ocf-col { flex: 1; min-width: 0; }
.ocf-address { display: flex; flex-wrap: wrap; gap: 12px; }
.ocf-address .ocf-full { flex: 1 1 100%; }
.ocf-address .ocf-col { flex: 1 1 45%; }

.ocf-choices { display: flex; flex-direction: column; gap: 6px; }
.ocf-choice { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 400; }
.ocf-choice input { margin: 0; }
.ocf-choice-full { opacity: .5; cursor: not-allowed; text-decoration: line-through; }

/* Slider */
.ocf-slider-wrap { display: flex; align-items: center; gap: 14px; }
.ocf-slider { flex: 1; }
.ocf-slider-output { font-weight: 700; min-width: 3ch; text-align: right; }

/* Rating stars */
.ocf-rating { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.ocf-rating input { position: absolute; opacity: 0; width: 0; }
.ocf-rating label { font-size: 30px; color: #ccc; cursor: pointer; transition: color .1s; }
.ocf-rating label:hover,
.ocf-rating label:hover ~ label,
.ocf-rating input:checked ~ label { color: #dba617; }
.ocf-rating input:focus-visible + label { outline: 2px solid #2271b1; border-radius: 3px; }

/* NPS */
.ocf-nps { display: flex; gap: 4px; flex-wrap: wrap; }
.ocf-nps-item input { position: absolute; opacity: 0; width: 0; }
.ocf-nps-item label {
	display: flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border: 1px solid #c3c4c7; border-radius: 4px;
	cursor: pointer; font-weight: 600; background: #fff;
}
.ocf-nps-item input:checked + label { background: #2271b1; color: #fff; border-color: #2271b1; }
.ocf-nps-item input:focus-visible + label { outline: 2px solid #2271b1; outline-offset: 1px; }
.ocf-nps-legend { display: flex; justify-content: space-between; font-size: 12px; color: #666; margin-top: 4px; }

/* Likert */
.ocf-likert-wrap { overflow-x: auto; }
.ocf-likert { border-collapse: collapse; width: 100%; }
.ocf-likert th, .ocf-likert td { padding: 8px 10px; text-align: center; border-bottom: 1px solid #eee; }
.ocf-likert tbody th { text-align: left; font-weight: 500; }
.ocf-likert thead th { font-size: 12px; color: #555; }

/* Signature */
.ocf-signature-pad {
	width: 100%; max-width: 600px; height: 180px;
	border: 1px dashed #c3c4c7; border-radius: 4px; background: #fff;
	touch-action: none; display: block;
}
.ocf-signature-current { display: block; max-width: 300px; border: 1px solid #eee; margin-bottom: 8px; background: #fff; }
.ocf-signature-clear { margin-top: 6px; }

/* Rich text */
.ocf-richtext-toolbar { display: flex; gap: 4px; margin-bottom: 4px; }
.ocf-richtext-toolbar button {
	border: 1px solid #c3c4c7; background: #f6f7f7; border-radius: 3px;
	padding: 3px 10px; cursor: pointer; font-size: 13px;
}
.ocf-richtext-toolbar button:hover { background: #eee; }
.ocf-richtext {
	border: 1px solid #c3c4c7; border-radius: 4px; padding: 10px 12px; background: #fff;
}
.ocf-richtext:focus { outline: 2px solid #2271b1; outline-offset: -1px; }

/* Captcha */
.ocf-captcha { display: flex; align-items: center; gap: 10px; }
.ocf-captcha-question { font-weight: 600; }
.ocf-captcha-input { max-width: 110px; }

/* Payments */
.ocf-payment-single, .ocf-payment-total { font-size: 18px; font-weight: 700; }
.ocf-payment-total { color: #00a32a; }

.ocf-divider { border: 0; border-top: 2px solid #e0e0e0; margin: 8px 0; }
.ocf-content { line-height: 1.6; }

/* Buttons */
.ocf-btn, .ocf-btn-secondary {
	display: inline-block; padding: 10px 22px; border-radius: 4px; font-size: 15px;
	cursor: pointer; border: 1px solid transparent; text-decoration: none;
}
.ocf-btn { background: #2271b1; color: #fff; }
.ocf-btn:hover { background: #135e96; color: #fff; }
.ocf-btn-secondary { background: #f6f7f7; border-color: #c3c4c7; color: #2c3338; }
.ocf-btn-danger {
	display: inline-block; padding: 10px 22px; border-radius: 4px; font-size: 15px;
	cursor: pointer; background: #fff; border: 1px solid #d63638; color: #d63638;
}
.ocf-btn-danger:hover { background: #d63638; color: #fff; }
.ocf-submit-row .ocf-btn-danger { margin-left: 10px; }
.ocf-entry-actions { display: flex; gap: 10px; align-items: center; }
.ocf-inline-delete { margin: 0; }
.ocf-page-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.ocf-page-nav .ocf-next:only-child { margin-left: auto; }

/* Honeypot */
.ocf-hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }

/* Notices */
.ocf-notice { padding: 12px 16px; border-radius: 4px; margin: 12px 0; border: 1px solid; }
.ocf-notice-success { background: #edfaef; border-color: #00a32a; color: #1a4731; }
.ocf-notice-error { background: #fcf0f1; border-color: #d63638; color: #8a1f21; }
.ocf-notice-info { background: #f0f6fc; border-color: #2271b1; color: #1d3c5c; }
.ocf-field-error { color: #d63638; font-size: 13px; margin: 4px 0 0; }

/* File upload */
.ocf-file-current { font-size: 13px; margin-top: 6px; }

/* My Entries */
.ocf-my-entries { display: flex; flex-direction: column; gap: 20px; }
.ocf-entry-card { border: 1px solid #ddd; border-radius: 6px; padding: 18px 20px; background: #fff; }
.ocf-entry-title { margin: 0 0 4px; }
.ocf-entry-date { font-size: 13px; color: #666; margin-bottom: 12px; }
.ocf-entry-values { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.ocf-entry-values th { text-align: left; padding: 6px 12px 6px 0; width: 35%; vertical-align: top; }
.ocf-entry-values td { padding: 6px 0; }
.ocf-entry-values tr { border-bottom: 1px solid #f0f0f0; }

/* Account (login / sign up) */
.ocf-account { max-width: 440px; margin: 16px 0; }
.ocf-account-logged-in { border: 1px solid #ddd; border-radius: 6px; padding: 16px 20px; background: #fff; }
.ocf-acct-tabs { display: flex; border-bottom: 2px solid #e0e0e0; margin-bottom: 18px; }
.ocf-acct-tab {
	border: 0; background: none; padding: 10px 18px; font-size: 15px; font-weight: 600;
	color: #666; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.ocf-acct-tab.active { color: #2271b1; border-bottom-color: #2271b1; }
.ocf-acct-panel .ocf-field { margin-bottom: 14px; }
.ocf-acct-links { font-size: 13px; margin-top: 12px; }

@media (max-width: 600px) {
	.ocf-row { flex-direction: column; }
	.ocf-nps-item label { width: 30px; height: 30px; }
}
