/* Gharardad-Express™ — frontend styles */

.ge-wizard, .ge-sign-wrap, .ge-dashboard, .ge-verify-wrap {
	max-width: 720px;
	margin: 0 auto;
	font-family: inherit;
	line-height: 1.8;
}

.ge-wizard.ge-locked, .ge-dashboard.ge-locked {
	background: #fff8e1;
	border: 1px solid #ffe08a;
	border-radius: 10px;
	padding: 20px;
	text-align: center;
}

/* Step indicator */
.ge-steps { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.ge-step-dot {
	width: 32px; height: 32px; border-radius: 50%;
	background: #eee; color: #888;
	display: flex; align-items: center; justify-content: center;
	font-weight: bold; font-size: 14px;
}
.ge-step-dot.active { background: #22d3ee; color: #06222a; }
.ge-step-dot.done { background: #c6ff1a; color: #1a2b00; }

/* Template picker */
.ge-template-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
	margin-top: 12px;
}
.ge-template-card {
	border: 2px solid #e5e5e5;
	border-radius: 12px;
	background: #fff;
	padding: 20px 12px;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s ease, transform .15s ease;
}
.ge-template-card:hover { border-color: #22d3ee; transform: translateY(-2px); }
.ge-template-card.selected { border-color: #c6ff1a; background: #f9ffe8; }
.ge-template-card .dashicons { font-size: 28px; width: 28px; height: 28px; display: block; margin: 0 auto 8px; }

/* Dynamic form fields */
.ge-fields-form .ge-field { margin-bottom: 16px; }
.ge-fields-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.ge-fields-form input[type=text],
.ge-fields-form input[type=number],
.ge-fields-form input[type=tel],
.ge-fields-form select,
.ge-fields-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 8px;
	font-size: 14px; box-sizing: border-box;
}
.ge-fields-form textarea { min-height: 80px; resize: vertical; }
.ge-field-error { color: #d32f2f; font-size: 12px; margin-top: 4px; display: none; }

/* Buttons */
.ge-btn {
	display: inline-block; padding: 10px 22px; border-radius: 8px; border: none;
	font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.ge-btn-primary { background: linear-gradient(90deg, #c6ff1a, #22d3ee); color: #06222a; }
.ge-btn-secondary { background: #eee; color: #333; }
.ge-btn-link { background: transparent; color: #22a; text-decoration: underline; padding: 6px; }
.ge-btn-small { padding: 6px 14px; font-size: 12px; }
.ge-btn[disabled] { opacity: .55; cursor: not-allowed; }
.ge-nav { display: flex; justify-content: space-between; margin-top: 20px; }

/* Review box */
.ge-review-box { background: #fafafa; border-radius: 10px; padding: 16px; font-size: 13px; white-space: pre-line; max-height: 320px; overflow-y: auto; border: 1px solid #eee; }
.ge-review-note { font-size: 12px; color: #666; margin-top: 10px; }

/* Alerts */
.ge-alert { padding: 12px 16px; border-radius: 8px; margin: 14px 0; font-size: 14px; }
.ge-alert-error { background: #fdecea; color: #7a1f1f; border: 1px solid #f4b5b0; }
.ge-alert-success { background: #eafcef; color: #1c5c2f; border: 1px solid #a9e8bb; }

/* Signing page */
.ge-sign-standalone { background: #f4f4f4; padding: 40px 16px; }
.ge-sign-meta { color: #555; font-size: 13px; }
.ge-contract-body { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 20px; margin: 16px 0; font-size: 13px; }
.ge-contract-body .ge-section { margin-bottom: 14px; }
.ge-contract-body .ge-section h2 { font-size: 13px; background: #f2f2f2; padding: 6px 10px; margin: 0 0 6px 0; border-right: 3px solid #22d3ee; }
.ge-sign-box { background: #fff; border-radius: 10px; padding: 20px; border: 1px solid #eee; }
.ge-otp-input { font-size: 22px; letter-spacing: 6px; text-align: center; padding: 10px; width: 160px; border: 1px solid #ccc; border-radius: 8px; margin: 10px 0; }

/* Dashboard table */
.ge-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.ge-table th, .ge-table td { padding: 10px; border-bottom: 1px solid #eee; text-align: right; }
.ge-status { padding: 3px 10px; border-radius: 20px; font-size: 12px; background: #eee; }
.ge-status-signed { background: #d9f7e3; color: #1c5c2f; }
.ge-status-awaiting_signature { background: #fff3cd; color: #7a5b00; }
.ge-credit-balance { font-size: 13px; color: #555; }

/* Verify page */
.ge-verify-wrap form { display: flex; gap: 8px; margin: 12px 0; }
.ge-verify-input { flex: 1; padding: 10px 12px; border: 1px solid #ccc; border-radius: 8px; font-family: monospace; }
.ge-verify-summary { margin: 8px 0 0; padding-right: 18px; }
