/* InfoQ Payment Collector — Multi-Step Form Styles */

/* ============================================================
   Wrapper & title
   ============================================================ */

.infoq-form-wrapper {
	max-width: 640px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 15px;
	color: #1a1a1a;
}

.infoq-form-title {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 28px;
	color: #1e3a5f;
}

/* ============================================================
   Progress indicator
   ============================================================ */

.infoq-progress {
	margin-bottom: 36px;
}

.infoq-progress-track {
	position: relative;
	height: 4px;
	background: #e0e7ef;
	border-radius: 4px;
	margin-bottom: 14px;
	overflow: hidden;
}

.infoq-progress-fill {
	position: absolute;
	inset: 0 auto 0 0;
	height: 100%;
	background: linear-gradient(90deg, #1e3a5f, #3a7bd5);
	border-radius: 4px;
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	width: 0%;
}

.infoq-steps-labels {
	display: flex;
	justify-content: space-between;
}

.infoq-step-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	flex: 1;
	cursor: default;
}

.infoq-step-bubble {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #e0e7ef;
	color: #8fa3b8;
	font-size: 13px;
	font-weight: 700;
	transition: background 0.3s, color 0.3s, transform 0.2s;
}

.infoq-step-name {
	font-size: 11px;
	font-weight: 500;
	color: #a0b0c2;
	letter-spacing: 0.03em;
	transition: color 0.3s;
}

.infoq-step-label.is-active .infoq-step-bubble {
	background: #1e3a5f;
	color: #fff;
	transform: scale(1.1);
	box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.15);
}

.infoq-step-label.is-active .infoq-step-name {
	color: #1e3a5f;
	font-weight: 700;
}

.infoq-step-label.is-done .infoq-step-bubble {
	background: #27ae60;
	color: #fff;
}

.infoq-step-label.is-done .infoq-step-bubble::before {
	content: '✓';
}

.infoq-step-label.is-done .infoq-step-name {
	color: #27ae60;
}

/* ============================================================
   Step panels
   ============================================================ */

.infoq-step-panel {
	display: none;
	animation: infoq-fade-in 0.28s ease;
}

.infoq-step-panel.is-active {
	display: block;
}

@keyframes infoq-fade-in {
	from { opacity: 0; transform: translateX(16px); }
	to   { opacity: 1; transform: translateX(0); }
}

.infoq-step-panel.is-leaving {
	animation: infoq-fade-out 0.2s ease forwards;
}

@keyframes infoq-fade-out {
	from { opacity: 1; transform: translateX(0); }
	to   { opacity: 0; transform: translateX(-16px); }
}

.infoq-step-header {
	margin-bottom: 24px;
}

.infoq-step-title {
	font-size: 20px;
	font-weight: 700;
	color: #1e3a5f;
	margin: 0 0 4px;
}

.infoq-step-subtitle {
	font-size: 13px;
	color: #7a90a8;
	margin: 0;
}

/* ============================================================
   Field groups
   ============================================================ */

.infoq-field-group {
	margin-bottom: 18px;
	position: relative;
}

.infoq-field-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}

.infoq-required { color: #c0392b; }
.infoq-optional { font-size: 11px; font-weight: 400; color: #aaa; margin-left: 4px; }

.infoq-field-group input[type="text"],
.infoq-field-group input[type="email"],
.infoq-field-group input[type="tel"],
.infoq-field-group input[type="password"],
.infoq-field-group textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #d0dae5;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.4;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
	background: #fff;
	color: #1a1a1a;
}

.infoq-field-group input:focus,
.infoq-field-group textarea:focus {
	border-color: #1e3a5f;
	box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
	outline: none;
}

/* Validation states */
.infoq-field-group.is-valid input,
.infoq-field-group.is-valid textarea {
	border-color: #27ae60;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2327ae60' viewBox='0 0 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 38px;
}

.infoq-field-group.is-invalid input,
.infoq-field-group.is-invalid textarea {
	border-color: #e74c3c;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23e74c3c' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 38px;
}

.infoq-field-error {
	display: block;
	font-size: 12px;
	color: #e74c3c;
	margin-top: 5px;
	min-height: 16px;
}

.infoq-char-count {
	display: block;
	text-align: right;
	font-size: 11px;
	color: #bbb;
	margin-top: 3px;
}

/* ============================================================
   Section label (Payment / Accounting divider)
   ============================================================ */

.infoq-section-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #1e3a5f;
	border-bottom: 2px solid #1e3a5f;
	padding-bottom: 6px;
	margin-bottom: 16px;
}

/* ============================================================
   Payment service cards (dynamic)
   ============================================================ */

.infoq-payment-services {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 4px;
}

.infoq-paysvc-card {
	border: 1.5px solid #dde3ec;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.15s;
}

.infoq-paysvc-card:has(.infoq-paysvc-chk:checked) {
	border-color: #1e3a5f;
}

.infoq-paysvc-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	cursor: pointer;
	user-select: none;
}

.infoq-paysvc-header input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #1e3a5f;
	flex-shrink: 0;
	cursor: pointer;
}

.infoq-paysvc-icon {
	font-size: 22px;
	line-height: 1;
}

.infoq-paysvc-title {
	font-weight: 600;
	font-size: 15px;
	color: #1a2a3a;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.infoq-paysvc-title small {
	font-weight: 400;
	font-size: 12px;
	color: #6b7280;
}

/* Collapsible detail panel */
.infoq-paysvc-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.infoq-paysvc-panel.is-open {
	max-height: 900px;
}

.infoq-paysvc-fields {
	padding: 0 16px 18px;
	border-top: 1px solid #eef1f6;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 14px;
}

/* Type chip row */
.infoq-paysvc-type-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.infoq-type-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 12px;
	border: 1.5px solid #c9d4e3;
	border-radius: 20px;
	font-size: 13px;
	cursor: pointer;
	user-select: none;
	transition: border-color 0.12s, background 0.12s;
}

.infoq-type-chip:has(input:checked) {
	border-color: #1e3a5f;
	background: #eef3fa;
}

.infoq-type-chip input {
	appearance: none;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
}

/* Two-column row inside a panel */
.infoq-paysvc-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media ( max-width: 500px ) {
	.infoq-paysvc-row { grid-template-columns: 1fr; }
}

/* Input inside panel */
.infoq-paysvc-input {
	width: 100%;
	padding: 9px 12px;
	border: 1.5px solid #c9d4e3;
	border-radius: 8px;
	font-size: 14px;
	color: #1a2a3a;
	background: #fff;
	transition: border-color 0.15s;
	box-sizing: border-box;
}

.infoq-paysvc-input:focus {
	outline: none;
	border-color: #1e3a5f;
	box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.infoq-paysvc-invalid {
	border-color: #e74c3c !important;
	background: #fff8f8;
}

/* Amount row inside each panel */
.infoq-paysvc-amount-row {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 14px;
	border-top: 1px dashed #dde3ec;
	margin-top: 4px;
}

.infoq-amount-group {
	flex: 0 0 auto;
	margin: 0;
}

.infoq-amount-wrap {
	display: flex;
	align-items: center;
	border: 1.5px solid #c9d4e3;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.15s;
}

.infoq-amount-wrap:focus-within {
	border-color: #1e3a5f;
	box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.infoq-amount-symbol {
	padding: 0 10px;
	font-weight: 600;
	color: #1e3a5f;
	background: #f0f4fa;
	border-right: 1.5px solid #c9d4e3;
	line-height: 38px;
	font-size: 15px;
	user-select: none;
}

.infoq-amount-input {
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	width: 110px;
	font-size: 15px;
	font-weight: 600;
	padding: 9px 10px !important;
}

.infoq-amount-input:focus {
	outline: none;
}

.infoq-amount-input:disabled {
	background: #f5f7fa;
	color: #aaa;
	cursor: not-allowed;
}

.infoq-unknown-amount-label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: #555;
	cursor: pointer;
	user-select: none;
}

.infoq-unknown-amount-label input[type="checkbox"] {
	width: 15px;
	height: 15px;
	accent-color: #1e3a5f;
	cursor: pointer;
}

/* Review step — amount badge */
.infoq-review-amount {
	display: inline-block;
	background: #e8f5e9;
	color: #2e7d32;
	font-size: 12px;
	font-weight: 600;
	padding: 1px 7px;
	border-radius: 10px;
	margin-left: 4px;
}

.infoq-review-amount--unknown {
	background: #fff8e1;
	color: #f57f17;
}

/* Balance note */
.infoq-balance-note {
	font-size: 13px;
	color: #555;
	text-align: center;
	margin: 18px 0 4px;
	font-style: italic;
}

/* ============================================================
   Services grid
   ============================================================ */

.infoq-services-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px 28px;
	margin-bottom: 8px;
}

@media ( max-width: 560px ) {
	.infoq-services-grid { grid-template-columns: 1fr; }
}

.infoq-service-group-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #1e3a5f;
	margin: 0 0 10px;
}

.infoq-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	cursor: pointer;
	font-size: 13px;
	color: #333;
	margin-bottom: 7px;
	line-height: 1.4;
	transition: color 0.15s;
}

.infoq-checkbox-label:hover { color: #1e3a5f; }

.infoq-checkbox-label input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	accent-color: #1e3a5f;
	cursor: pointer;
}

.infoq-other-input {
	width: 100%;
	padding: 9px 12px;
	border: 1.5px solid #d0dae5;
	border-radius: 7px;
	font-size: 13px;
	box-sizing: border-box;
}

/* ============================================================
   Card inputs
   ============================================================ */

.infoq-card-inputs-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media ( max-width: 400px ) {
	.infoq-card-inputs-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Review summary (step 4)
   ============================================================ */

.infoq-review-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 24px;
}

@media ( max-width: 520px ) {
	.infoq-review-grid { grid-template-columns: 1fr; }
}

.infoq-review-block {
	background: #f5f8fc;
	border: 1px solid #dde6f0;
	border-radius: 10px;
	padding: 14px 16px;
}

.infoq-review-block-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.infoq-review-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #1e3a5f;
}

.infoq-review-edit {
	font-size: 12px;
	color: #3a7bd5;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	font-weight: 600;
	text-decoration: underline;
}

.infoq-review-edit:hover { color: #1e3a5f; }

.infoq-review-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.infoq-review-list li {
	font-size: 13px;
	color: #333;
	padding: 2px 0;
	line-height: 1.45;
	word-break: break-word;
}

.infoq-review-list li strong {
	color: #555;
	font-weight: 600;
}

/* Card spans full width in review grid */
#infoq-review-card {
	grid-column: 1 / -1;
}

/* ============================================================
   Disclaimer
   ============================================================ */

.infoq-disclaimer {
	background: #fff8e1;
	border-left: 4px solid #f9a825;
	border-radius: 6px;
	padding: 14px 18px;
	margin: 0 0 20px;
	font-size: 13px;
	line-height: 1.6;
	color: #5d4037;
}

.infoq-disclaimer strong {
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 6px;
	color: #e65100;
}

.infoq-disclaimer p { margin: 4px 0 0; }

/* ============================================================
   Consent
   ============================================================ */

.infoq-consent-block {
	margin-bottom: 20px;
}

.infoq-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 13px;
	color: #444;
	line-height: 1.5;
	margin-bottom: 6px;
}

.infoq-consent-label input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	accent-color: #1e3a5f;
}

/* ============================================================
   reCAPTCHA
   ============================================================ */

.infoq-recaptcha-wrapper {
	margin: 0 0 20px;
}

/* ============================================================
   Step navigation
   ============================================================ */

.infoq-step-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #eaf0f7;
}

.infoq-btn-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 1.5px solid #d0dae5;
	color: #5a7a9a;
	border-radius: 8px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.infoq-btn-back:hover {
	border-color: #1e3a5f;
	color: #1e3a5f;
	background: #f0f4f9;
}

.infoq-btn-next {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #1e3a5f;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 11px 26px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
	box-shadow: 0 4px 14px rgba(30, 58, 95, 0.28);
	margin-left: auto;
}

.infoq-btn-next:hover {
	background: #163050;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(30, 58, 95, 0.35);
}

.infoq-btn-next:active { transform: translateY(0); }

.infoq-nav-arrow { font-size: 16px; line-height: 1; }

/* ============================================================
   Submit button
   ============================================================ */

.infoq-submit-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #27ae60;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
	box-shadow: 0 4px 14px rgba(39, 174, 96, 0.3);
}

.infoq-submit-btn:hover:not(:disabled) {
	background: #219a55;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(39, 174, 96, 0.36);
}

.infoq-submit-btn:active:not(:disabled) { transform: translateY(0); }

.infoq-submit-btn:disabled {
	background: #a8d5b8;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.infoq-btn-spinner {
	width: 17px;
	height: 17px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: infoq-spin 0.7s linear infinite;
	flex-shrink: 0;
}

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

/* ============================================================
   Form messages
   ============================================================ */

.infoq-form-message {
	margin-top: 16px;
	padding: 20px 22px;
	border-radius: 10px;
	font-size: 15px;
	line-height: 1.6;
}

.infoq-form-message.is-success {
	background: #d4edda;
	border: 1px solid #b8dfc6;
	color: #155724;
}

.infoq-form-message.is-error {
	background: #f8d7da;
	border: 1px solid #f1b5ba;
	color: #721c24;
}

/* ============================================================
   Responsive
   ============================================================ */

@media ( max-width: 480px ) {
	.infoq-step-name { display: none; }
	.infoq-step-nav { flex-wrap: wrap; gap: 10px; }
	.infoq-btn-next { margin-left: 0; width: 100%; justify-content: center; }
	.infoq-btn-back { width: 100%; justify-content: center; order: 2; }
	.infoq-submit-btn { width: 100%; justify-content: center; }
}
