:root {
	--primary: #71b469;
	--primary-hover: #5e9a56;
	--border: #e2e8f0;
	--text: #1e293b;
	--bg-card: #ffffff;
	--danger: #ff5c5c;
}

.tm-form-main {
	font-family: "Inter", -apple-system, sans-serif;
	max-width: 1000px;
	margin: 40px auto;
	color: var(--text);
}

.form-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	padding: 35px;
	border-radius: 16px;
	margin-bottom: 30px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.section-title {
	margin: 0 0 25px 0;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--text);
	border-bottom: 2px solid #f8fafc;
	padding-bottom: 15px;
}

.mark-type-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.mark-card-ui {
	cursor: pointer;
	position: relative;
}

.mark-card-ui input {
	position: absolute;
	opacity: 0;
}

.card-ui-box {
	border: 2px solid var(--border);
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	transition: all 0.3s ease;
}

.mark-card-ui input:checked + .card-ui-box {
	border-color: var(--primary);
	background: #f0fdf4;
	box-shadow: 0 4px 6px -1px rgba(113, 180, 105, 0.2);
}

.card-label {
	margin-top: 15px;
	font-size: 1.1rem;
	color: var(--text);
}

.mark-card-ui input:checked + .card-ui-box .card-label {
	color: var(--primary);
}

.word-mark-preview,
.combined-mark-preview {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 160px;
}

.tm-logo-text {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.2rem;
	font-weight: 400;
	color: #333;
	letter-spacing: -1px;
}

.tm-logo-image {
	max-height: 100%;
	width: auto;
}

.field-group {
	display: flex;
	flex-direction: column;
	padding-top: 20px;
}

.field-label {
	font-weight: 600;
	margin-bottom: 8px;
	font-size: 0.95rem;
}

.input-standard {
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
	font-size: 1rem;
	transition: border 0.2s;
}

.input-standard:focus {
	outline: none;
	border-color: var(--primary);
}

.drop-zone {
	border: 2px dashed var(--border);
	border-radius: 12px;
	padding: 30px;
	text-align: center;
	background: #fdfdfd;
	cursor: pointer;
	padding-top: 60px;
	padding-bottom: 60px;
	position: relative;
}

.drop-zone:hover {
	border-color: var(--primary);
	background: #f0fdf4;
}

.drop-zone input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.repeater-row {
	background: #fcfcfc;
	border: 1px solid #edf2f7;
	padding: 25px;
	border-radius: 14px;
	margin-bottom: 20px;
	position: relative;
	animation: tmRfFadeIn 0.3s ease-out;
}

.btn-del {
	position: absolute;
	top: -10px;
	right: -10px;
	background: var(--danger);
	color: white;
	border: none;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	z-index: 10;
}

.btn-add-item {
	width: 100%;
	padding: 15px;
	background: #fff;
	border: 2px dashed var(--primary);
	border-radius: 12px;
	color: var(--primary);
	font-weight: 700;
	cursor: pointer;
}

.submission-footer {
	background: #1e293b;
	color: #fff;
	padding: 35px;
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: stretch;
}

.submission-footer-grid {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 24px;
}

.submission-footer .price-container {
	text-align: center;
}

.submission-footer .tm-rf-product-id-group .field-label {
	color: #e2e8f0;
}

.submission-footer .tm-rf-product-id-input {
	background: #fff;
	color: var(--text);
}

.tm-rf-field-hint {
	font-size: 0.8rem;
	color: #94a3b8;
	margin: 8px 0 0;
	line-height: 1.4;
}

.mark-type-section {
	border-radius: 12px;
}

.tm-rf-field-error {
	border-color: var(--danger) !important;
	box-shadow: 0 0 0 1px var(--danger);
}

.field-group.tm-rf-field-group-error,
.repeater-row.tm-rf-field-group-error {
	border-left: 4px solid var(--danger);
	padding-left: 12px;
	margin-left: -4px;
}

.mark-type-section.tm-rf-field-group-error {
	outline: 2px solid var(--danger);
	outline-offset: 4px;
}

#upload-container.tm-rf-field-group-error .drop-zone {
	border-color: var(--danger);
	background: #fff5f5;
}

.price-value {
	font-size: 2rem;
	font-weight: 800;
	color: #7dd3fc;
}

.btn-submit {
	background: var(--primary);
	color: #fff;
	border: none;
	padding: 14px 35px;
	border-radius: 10px;
	font-weight: 700;
	cursor: pointer;
}

.btn-submit:hover:not(:disabled) {
	background: #22c55e;
}

.submission-footer .btn-submit {
	align-self: center;
}

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

.radio-option {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
	gap: 10px;
	cursor: pointer;
}

.tm-rf-usage-group .field-label {
	margin-bottom: 14px;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.error-text {
	color: var(--danger);
	font-size: 0.85rem;
	margin-top: 8px;
}

.tm-rf-form-message {
	max-width: 1000px;
	margin: 16px auto 0;
	padding: 12px 16px;
	border-radius: 8px;
	display: none;
}

.tm-rf-form-message.is-visible {
	display: block;
}

.tm-rf-form-message.is-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.mt-20 {
	margin-top: 20px;
}

.mt-15 {
	margin-top: 15px;
}

.mb-20 {
	margin-bottom: 20px;
}

/* Pricing tiers (Standard / Premium) */
.tm-rf-pricing-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 8px;
}

.tm-rf-pricing-grid:has(.tm-rf-tier-card:only-child) {
	grid-template-columns: 1fr;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}

.tm-rf-tier-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 28px 24px 24px;
	border: 2px solid var(--border);
	border-radius: 16px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
	min-height: 260px;
}

.tm-rf-tier-card:focus-within {
	outline: 2px solid rgba(113, 180, 105, 0.5);
	outline-offset: 2px;
}

.tm-rf-tier-card:has(.tm-rf-tier-input:checked) {
	border-color: var(--primary);
	box-shadow: 0 8px 24px rgba(113, 180, 105, 0.28);
	background: #f0fdf4;
}

.tm-rf-tier-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.tm-rf-tier-badge {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #fff;
	margin-bottom: 14px;
}

.tm-rf-tier-badge--standard {
	background: #0f172a;
}

.tm-rf-tier-badge--premium {
	background: #22c55e;
}

.tm-rf-tier-price {
	font-size: 2.2rem;
	font-weight: 800;
	color: var(--text);
	line-height: 1.1;
	margin-bottom: 4px;
}

.tm-rf-tier-extra {
	font-size: 0.8rem;
	color: #64748b;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 14px;
}

.tm-rf-tier-desc {
	font-size: 0.95rem;
	line-height: 1.55;
	color: #475569;
	margin-bottom: auto;
	padding-top: 4px;
}

.tm-rf-tier-desc strong {
	color: var(--text);
}

.tm-rf-tier-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 22px;
	padding: 12px 16px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.95rem;
	border: 2px solid var(--border);
	background: #fff;
	color: var(--text);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tm-rf-tier-card:not(:has(.tm-rf-tier-input:checked)):hover .tm-rf-tier-cta {
	background: #f8fafc;
	border-color: #cbd5e1;
}

.tm-rf-tier-card:has(.tm-rf-tier-input:checked) .tm-rf-tier-cta {
	border-color: #22c55e;
	background: #22c55e;
	color: #fff;
}

.tm-rf-tier-card:has(.tm-rf-tier-input:checked) .tm-rf-tier-cta:hover {
	background: #16a34a;
	border-color: #16a34a;
	color: #fff;
}

@keyframes tmRfFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	.tm-rf-pricing-grid {
		grid-template-columns: 1fr;
	}

	.form-grid,
	.mark-type-grid {
		grid-template-columns: 1fr;
	}

	.submission-footer-grid {
		grid-template-columns: 1fr;
	}

	.submission-footer {
		text-align: center;
	}

	.submission-footer .price-container {
		text-align: center;
	}

	.submission-footer .btn-submit {
		align-self: center;
		width: 100%;
		max-width: 320px;
	}
}
