/* Youth Festival Application – Public Styles */

/* ── Wrapper ─────────────────────────────────────────────── */
.yfa-wrap {
	max-width: 780px;
	margin: 0 auto;
	font-family: inherit;
	text-align: left;
}

/* ── Header image ─────────────────────────────────────────── */
.yfa-header-image {
	margin-bottom: 24px;
	border-radius: 8px;
	overflow: hidden;
}

.yfa-header-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* ── Intro block ──────────────────────────────────────────── */
.yfa-intro {
	margin-bottom: 28px;
	text-align: left;
}

.yfa-intro h2,
.yfa-intro p {
	text-align: left;
}

.yfa-intro h2 {
	margin-top: 0;
	color: #1e1e1e;
}

.yfa-hosted-by {
	color: #333;
}

.yfa-required-note {
	color: #666;
	font-size: 13px;
}

.yfa-required-star {
	color: #d63638;
	font-weight: 700;
}

/* ── Section header ───────────────────────────────────────── */
.yfa-section-header {
	background: #4a3080;
	color: #fff;
	padding: 10px 16px;
	border-radius: 4px;
	margin: 28px 0 20px;
}

.yfa-section-header h3 {
	margin: 0;
	font-size: 15px !important;
	color: #fff !important;
}

.yfa-guardian-header {
	background: #4a3080;
}

.yfa-guardian-note {
	margin: 4px 0 0;
	font-size: 13px;
	color: #ffd;
}

/* ── Form fields ──────────────────────────────────────────── */
.yfa-form .yfa-field-group {
	margin-bottom: 20px;
}

.yfa-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
	color: #333;
	text-align: left;
}

.yfa-form input[type="text"],
.yfa-form input[type="email"],
.yfa-form input[type="tel"],
.yfa-form input[type="url"],
.yfa-form input[type="date"],
.yfa-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
	color: #1e1e1e;
	background: #fff;
	box-sizing: border-box;
	transition: border-color .15s;
}

.yfa-form input[type="text"]:focus,
.yfa-form input[type="email"]:focus,
.yfa-form input[type="tel"]:focus,
.yfa-form input[type="url"]:focus,
.yfa-form input[type="date"]:focus,
.yfa-form textarea:focus {
	border-color: #4a3080;
	outline: none;
	box-shadow: 0 0 0 2px rgba(74,48,128,.15);
}

.yfa-form textarea {
	resize: vertical;
	min-height: 80px;
}

.yfa-field-hint {
	font-size: 12px;
	color: #777;
	margin: 4px 0 0;
}

/* ── Checkboxes / radio buttons ───────────────────────────── */
.yfa-checkbox-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.yfa-checkbox-label {
	display: flex !important;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400 !important;
	font-size: 14px;
	cursor: pointer;
}

.yfa-checkbox-label input[type="radio"],
.yfa-checkbox-label input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	accent-color: #4a3080;
	width: 16px;
	height: 16px;
}

.yfa-ack-label {
	padding: 12px 14px;
	background: #f8f8f8;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	line-height: 1.5;
}

/* ── Payment section ──────────────────────────────────────── */
.yfa-fee-section {
	text-align: center;
	padding: 20px;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	margin-bottom: 8px;
}

.yfa-qr-code {
	max-width: 160px;
	height: auto;
	border: 1px solid #ddd;
	padding: 6px;
	border-radius: 4px;
}

.yfa-qr-label {
	font-size: 13px;
	color: #666;
	margin: 6px 0 16px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.yfa-btn {
	display: inline-block;
	padding: 11px 24px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	border: none;
	transition: background .15s, opacity .15s;
}

.yfa-btn-submit {
	background: #4a3080;
	color: #fff;
	width: 100%;
	text-align: center;
	font-size: 16px;
	padding: 14px;
}

.yfa-btn-submit:hover:not(:disabled) {
	background: #3a2468;
}

.yfa-btn-submit:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.yfa-btn-paypal {
	background: #0070ba;
	color: #fff;
}

.yfa-btn-paypal:hover {
	background: #005a97;
	color: #fff;
}

.yfa-btn-track {
	background: #4a3080;
	color: #fff;
}

.yfa-btn-track:hover {
	background: #3a2468;
	color: #fff;
}

.yfa-submit-group {
	margin-top: 28px;
}

/* ── Messages ─────────────────────────────────────────────── */
.yfa-messages {
	padding: 14px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
}

.yfa-messages.yfa-error {
	background: #fee2e2;
	border: 1px solid #fca5a5;
	color: #7f1d1d;
}

.yfa-messages.yfa-success {
	background: #dcfce7;
	border: 1px solid #86efac;
	color: #14532d;
}

.yfa-messages ul {
	margin: 6px 0 0 18px;
	padding: 0;
}

/* ── Thank-you page ───────────────────────────────────────── */
.yfa-thankyou-wrap {
	text-align: left;
	padding: 20px 0;
}

.yfa-thankyou-wrap > p {
	text-align: left;
}

.yfa-thankyou-icon {
	width: 72px;
	height: 72px;
	background: #00a32a;
	color: #fff;
	border-radius: 50%;
	font-size: 38px;
	line-height: 72px;
	margin: 0 auto 20px;
	text-align: center;
}

.yfa-thankyou-title {
	color: #1e1e1e;
	font-size: 26px;
	margin-bottom: 12px;
	text-align: left;
}

.yfa-app-id-display {
	border: 2px dashed #4a3080;
	border-radius: 6px;
	padding: 20px;
	margin: 24px auto;
	max-width: 420px;
	text-align: center;
}

.yfa-app-id-label {
	font-size: 14px;
	color: #666;
	margin: 0 0 6px;
}

.yfa-app-id-value {
	font-size: 28px;
	font-weight: 700;
	color: #4a3080;
	letter-spacing: 2px;
	margin: 0;
}

.yfa-app-id-hint {
	font-size: 13px;
	color: #777;
	margin: 8px 0 0;
}

.yfa-thankyou-details {
	text-align: left;
	max-width: 560px;
	margin: 28px auto;
}

.yfa-summary-table {
	width: 100%;
	border-collapse: collapse;
}

.yfa-summary-table th,
.yfa-summary-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e5e7eb;
	text-align: left;
	font-size: 14px;
}

.yfa-summary-table th {
	color: #555;
	font-weight: 600;
	width: 40%;
}

.yfa-track-link {
	margin-top: 24px;
	text-align: left;
}

.yfa-status-url-copy {
	margin-top: 12px;
	font-size: 13px;
	color: #555;
}

.yfa-status-url-copy code {
	display: inline-block;
	word-break: break-all;
	background: #f0f0f1;
	padding: 4px 8px;
	border-radius: 3px;
	font-size: 12px;
}

/* ── Status badges (front-end) ────────────────────────────── */
.yfa-status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

.yfa-status-submitted    { background: #e8f0fe; color: #1a56db; }
.yfa-status-in-review    { background: #fef3c7; color: #92400e; }
.yfa-status-selected     { background: #dcfce7; color: #166534; }
.yfa-status-not-selected { background: #fee2e2; color: #991b1b; }

/* ── Status checker ───────────────────────────────────────── */
.yfa-status-wrap h2,
.yfa-status-wrap p {
	text-align: left;
}

.yfa-status-wrap h2 {
	margin-top: 0;
}

.yfa-status-form-row {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

#yfa-status-input {
	flex: 1;
	min-width: 220px;
	padding: 10px 12px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 14px;
	text-transform: uppercase;
}

#yfa-status-input:focus {
	border-color: #4a3080;
	outline: none;
	box-shadow: 0 0 0 2px rgba(74,48,128,.15);
}

.yfa-status-result {
	margin-top: 16px;
}

/* ── Status result card ───────────────────────────────────── */
.yfa-result-card {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	max-width: 560px;
}

.yfa-result-card-header {
	padding: 14px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.yfa-result-card-header.yfa-status-submitted  { background: #e8f0fe; }
.yfa-result-card-header.yfa-status-in-review  { background: #fef3c7; }
.yfa-result-card-header.yfa-status-selected   { background: #dcfce7; }
.yfa-result-card-header.yfa-status-not-selected { background: #fee2e2; }

.yfa-result-card-body {
	padding: 18px;
	background: #fff;
}

.yfa-result-detail {
	display: flex;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px solid #f3f4f6;
	font-size: 14px;
}

.yfa-result-detail:last-child {
	border-bottom: none;
}

.yfa-result-detail strong {
	min-width: 160px;
	color: #555;
}

.yfa-result-message {
	padding: 14px 18px;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}

.yfa-result-message.yfa-selected-msg    { background: #dcfce7; color: #166534; }
.yfa-result-message.yfa-not-selected-msg { background: #fee2e2; color: #991b1b; }

/* ── Tracker steps ────────────────────────────────────────── */
.yfa-tracker-steps {
	display: flex;
	align-items: center;
	padding: 18px;
	gap: 0;
	overflow-x: auto;
}

.yfa-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	min-width: 80px;
	position: relative;
}

.yfa-step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 18px;
	left: 55%;
	width: 90%;
	height: 2px;
	background: #e5e7eb;
	z-index: 0;
}

.yfa-step.yfa-step-active:not(:last-child)::after,
.yfa-step.yfa-step-done:not(:last-child)::after {
	background: #4a3080;
}

.yfa-step-dot {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 700;
	z-index: 1;
	color: #aaa;
}

.yfa-step.yfa-step-done .yfa-step-dot   { background: #4a3080; color: #fff; }
.yfa-step.yfa-step-active .yfa-step-dot { background: #4a3080; color: #fff; box-shadow: 0 0 0 4px rgba(74,48,128,.2); }

.yfa-step-label {
	font-size: 11px;
	text-align: center;
	margin-top: 6px;
	color: #777;
}

.yfa-step.yfa-step-active .yfa-step-label { color: #4a3080; font-weight: 700; }
.yfa-step.yfa-step-done .yfa-step-label   { color: #4a3080; }

/* ── Inline field error ───────────────────────────────────── */
.yfa-field-error {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: #d63638;
}

.yfa-input-invalid {
	border-color: #d63638 !important;
	box-shadow: 0 0 0 2px rgba(214,54,56,.15) !important;
}

/* ── Error ────────────────────────────────────────────────── */
.yfa-error {
	color: #d63638;
	font-size: 14px;
	font-style: italic;
}

/* ── Responsive ───────────────────────────────────────────── */
@media ( max-width: 600px ) {
	.yfa-section-header { margin: 20px 0 14px; }
	.yfa-app-id-value   { font-size: 22px; }
	.yfa-status-form-row { flex-direction: column; }
	#yfa-status-input   { width: 100%; }
}
