
/* Upload preview modal */
.ntta-upload-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ntta-upload-modal[hidden] {
	display: none !important;
}

.ntta-upload-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.ntta-upload-modal__panel {
	position: relative;
	background: #fff;
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	max-width: 420px;
	width: calc(100% - 2rem);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ntta-upload-modal__preview {
	max-width: 100%;
	max-height: 240px;
	display: block;
	margin: 0.75rem auto;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
}

.ntta-upload-modal__error {
	color: #b91c1c;
	font-weight: 600;
}

.ntta-upload-status {
	font-weight: 600;
	font-size: 0.85rem;
}

.ntta-upload-status--error {
	color: #b91c1c;
}

.ntta-upload-status--ok {
	color: #15803d;
}

.ntta-upload-modal__actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

/* Shared player surface layout */
.ntta-player-surface {
	max-width: 960px;
	margin: 2rem auto;
	padding: 1.5rem 1.75rem 2rem;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
	box-sizing: border-box;
}

.ntta-player-surface__title {
	margin: 0 0 1.25rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: #0f172a;
}

.ntta-player-surface__back {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
}

.ntta-player-surface__back a {
	color: var(--wp--preset--color--primary, #0d9488);
	text-decoration: none;
	font-weight: 600;
}

.ntta-player-surface__back a:hover,
.ntta-player-surface__back a:focus {
	text-decoration: underline;
}

/* Register page wrapper */
.ntta-register-page {
	max-width: 520px;
	margin: 2.5rem auto;
	padding: 1.25rem 1rem 1.75rem;
	background: #f9fafb;
	border-radius: 12px;
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
	box-sizing: border-box;
}

.ntta-register-page__card {
	max-width: 440px;
	margin: 0 auto;
}

.ntta-register-page__title {
	margin: 0 0 1.5rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: #0f172a;
	text-align: center;
}

.ntta-register-form p {
	margin: 0 0 1rem;
}

.ntta-register-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
	color: #0f172a;
}

.ntta-register-form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1.5rem;
	border-radius: 999px;
	border: none;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	color: #ffffff;
	background: var(--wp--preset--color--primary, #0d9488);
	box-shadow: 0 10px 25px rgba(13, 148, 136, 0.35);
}

.ntta-register-form button[type="submit"]:hover,
.ntta-register-form button[type="submit"]:focus {
	background: var(--wp--preset--color--primary, #0b7664);
}

.ntta-register-form button[type="submit"][disabled],
.ntta-profile-form button[type="submit"][disabled],
.ntta-profile-edit-form button[type="submit"][disabled] {
	background: #cbd5e1 !important;
	color: #64748b !important;
	box-shadow: none !important;
	cursor: not-allowed;
	border-color: #cbd5e1 !important;
}

.ntta-register-form button[type="submit"][disabled]:hover,
.ntta-register-form button[type="submit"][disabled]:focus,
.ntta-profile-form button[type="submit"][disabled]:hover,
.ntta-profile-form button[type="submit"][disabled]:focus,
.ntta-profile-edit-form button[type="submit"][disabled]:hover,
.ntta-profile-edit-form button[type="submit"][disabled]:focus {
	background: #cbd5e1 !important;
	box-shadow: none !important;
}

/* Shared form grid + fields */
.ntta-form-grid-wrapper {
	margin-top: 1.5rem;
}

.ntta-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
}

.ntta-form-grid__full {
	grid-column: 1 / -1;
}

.ntta-form-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.95rem;
}

.ntta-form-field label {
	font-weight: 600;
	color: #0f172a;
}

.ntta-form-field .description {
	margin: 0;
	font-size: 0.8125rem;
	color: #64748b;
}

.ntta-gender-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.ntta-gender-radios label {
	font-weight: 500;
}

.ntta-document-sections {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Shared input styling for register + profile */
.ntta-register-form input[type="email"],
.ntta-register-form input[type="password"],
.ntta-profile-form input[type="text"],
.ntta-profile-form input[type="email"],
.ntta-profile-form input[type="tel"],
.ntta-profile-form input[type="number"],
.ntta-profile-form input[type="date"],
.ntta-profile-form input[type="file"],
.ntta-profile-form textarea,
.ntta-profile-form select {
	display: block;
	width: 100%;
	padding: 0.55rem 0.75rem;
	border-radius: 6px;
	border: 1px solid #cbd5e1;
	background-color: #ffffff;
	color: #0f172a;
	font: inherit;
	box-sizing: border-box;
}

.ntta-register-form input[type="email"]:focus,
.ntta-register-form input[type="password"]:focus,
.ntta-profile-form input[type="text"]:focus,
.ntta-profile-form input[type="email"]:focus,
.ntta-profile-form input[type="tel"]:focus,
.ntta-profile-form input[type="number"]:focus,
.ntta-profile-form input[type="date"]:focus,
.ntta-profile-form input[type="file"]:focus,
.ntta-profile-form textarea:focus,
.ntta-profile-form select:focus {
	outline: 2px solid var(--wp--preset--color--primary, #0d9488);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--primary, #0d9488);
	box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.25);
}

.ntta-profile-form fieldset {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	margin: 0;
}

.ntta-profile-form legend {
	padding: 0 0.25rem;
	font-weight: 600;
	color: #0f172a;
}

.ntta-profile-form .required {
	color: #b91c1c;
}

.ntta-age-display {
	font-size: 0.875rem;
	font-weight: 600;
	color: #0f172a;
}

@media (max-width: 768px) {
	.ntta-player-surface {
		margin: 1.25rem auto;
		padding: 1.25rem 1rem 1.5rem;
	}

	.ntta-register-page {
		margin: 1.75rem 1rem;
	}

	.ntta-form-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
