/* ═══════════════════════════════════════════════════════════════
   Janaz Public Submission — Front-end styles
   Design system: forest green (#2D5016), parchment (#F0ECE4), gold (#C9973A)
   ═══════════════════════════════════════════════════════════════ */

/* ── Wrap ─────────────────────────────────────────────────────── */
.jps-form-wrap {
	max-width: 760px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	color: #1a1a1a;
}

.jps-intro {
	text-align: center;
	margin-bottom: 2rem;
}

.jps-form-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 1.85rem;
	color: #1B3A0D;
	margin: 0 0 .5rem;
}

.jps-form-desc {
	font-family: Georgia, serif;
	font-size: 1rem;
	color: #2D5016;
	direction: rtl;
	margin: 0 0 .75rem;
}

.jps-form-note {
	font-size: .875rem;
	color: #666;
	margin: 0;
}

/* ── Fieldsets ────────────────────────────────────────────────── */
.jps-fieldset {
	border: 1.5px solid #E5E0D5;
	border-radius: 14px;
	padding: 1.5rem 1.5rem 1rem;
	margin-bottom: 1.5rem;
	background: #fff;
}

.jps-legend {
	font-size: .9rem;
	font-weight: 700;
	color: #1B3A0D;
	padding: 0 .5rem;
	display: flex;
	align-items: center;
	gap: .4rem;
}

.jps-legend-icon {
	font-size: 1.05rem;
}

.jps-legend-opt {
	font-weight: 400;
	font-size: .8rem;
	color: #999;
}

/* ── Field rows ───────────────────────────────────────────────── */
.jps-field {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	margin-bottom: 1rem;
}

.jps-field label {
	font-size: .8rem;
	font-weight: 600;
	color: #444;
	letter-spacing: .02em;
}

.jps-input {
	padding: .6rem .9rem;
	border: 1.5px solid #D8D0C4;
	border-radius: 8px;
	font-size: .9rem;
	font-family: inherit;
	color: #1a1a1a;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
	width: 100%;
	box-sizing: border-box;
}

.jps-input:focus {
	outline: none;
	border-color: #2D5016;
	box-shadow: 0 0 0 3px rgba(45, 80, 22, .12);
}

.jps-input::placeholder {
	color: #bbb;
}

select.jps-input {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .8rem center;
	padding-right: 2rem;
}

textarea.jps-input {
	resize: vertical;
	min-height: 72px;
}

.jps-help {
	font-size: .78rem;
	color: #888;
	line-height: 1.4;
}

.jps-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.jps-row-3 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 580px) {
	.jps-row-2,
	.jps-row-3 {
		grid-template-columns: 1fr;
	}
	.jps-fieldset {
		padding: 1.2rem 1rem .75rem;
	}
}

/* ── Photos ───────────────────────────────────────────────────── */
.jps-photo-slots {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.jps-photo-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .4rem;
	width: 120px;
}

.jps-photo-preview {
	width: 100px;
	height: 100px;
	border: 2px dashed #D8D0C4;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #F8F7F4;
	cursor: pointer;
	transition: border-color .15s;
}

.jps-photo-preview:hover {
	border-color: #2D5016;
}

.jps-photo-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jps-photo-empty {
	font-size: 1.8rem;
	opacity: .4;
}

.jps-photo-label {
	font-size: .75rem;
	font-weight: 600;
	color: #666;
	text-align: center;
}

.jps-photo-btn {
	font-size: .75rem;
	padding: .35rem .8rem;
	border: 1.5px solid #D8D0C4;
	border-radius: 6px;
	background: #fff;
	color: #444;
	cursor: pointer;
	transition: all .15s;
	font-family: inherit;
}

.jps-photo-btn:hover {
	border-color: #2D5016;
	color: #2D5016;
}

.jps-photo-status {
	font-size: .7rem;
	color: #888;
	text-align: center;
	min-height: 1em;
	margin: 0;
}

/* ── Submit ───────────────────────────────────────────────────── */
.jps-submit-wrap {
	text-align: center;
	padding: .5rem 0 1.5rem;
}

.jps-privacy-note {
	font-size: .78rem;
	color: #888;
	max-width: 520px;
	margin: 0 auto 1.25rem;
	line-height: 1.55;
}

.jps-submit-btn {
	display: inline-block;
	background: linear-gradient(135deg, #2D5016, #1B3A0D);
	color: #fff;
	border: none;
	padding: .9rem 3rem;
	border-radius: 100px;
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	letter-spacing: .02em;
	box-shadow: 0 4px 18px rgba(45, 80, 22, .35);
	transition: transform .15s, box-shadow .15s;
}

.jps-submit-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 24px rgba(45, 80, 22, .45);
}

.jps-submit-btn:disabled {
	opacity: .65;
	cursor: not-allowed;
	transform: none;
}

.jps-form-msg {
	margin-top: 1rem;
	padding: .75rem 1rem;
	border-radius: 8px;
	font-size: .9rem;
	font-weight: 600;
}

.jps-form-msg.jps-error {
	background: #fdf0ee;
	border: 1.5px solid #e8b4b0;
	color: #b32d2e;
}

.jps-form-msg.jps-info {
	background: #f8f4ec;
	border: 1.5px solid #e0d4b4;
	color: #7a5c10;
}

/* ── Success state ────────────────────────────────────────────── */
.jps-success {
	text-align: center;
	padding: 3rem 1rem;
	background: #fff;
	border: 1.5px solid #C9E8D2;
	border-radius: 16px;
}

.jps-success-icon {
	font-size: 3rem;
	margin-bottom: .75rem;
}

.jps-success h2 {
	font-family: Georgia, serif;
	font-size: 1.75rem;
	color: #1B3A0D;
	margin: 0 0 .75rem;
}

.jps-success p {
	font-size: .95rem;
	color: #555;
	max-width: 480px;
	margin: 0 auto .75rem;
	line-height: 1.65;
}

.jps-success-note {
	font-size: .88rem;
	color: #888;
	font-style: italic;
}
