@import url('./reset.css');
@import url('./config.css');
@import url('./hero.css');
@import url('./hook.css');

/* ── BUTTONS ──────────────────────────────────────────────────── */
.wr-btn-submit {
	padding: 14px 40px;
	font-size: 1rem;
}

/* ── SUBMIT FORM — NOTICES ────────────────────────────────────── */
.wr-form-error {
	background: var(--wr-error-bg);
	color: var(--wr-error-text);
	border-radius: var(--wr-radius-md);
	padding: 14px 20px;
	font-size: 0.9rem;
	font-weight: 500;
	margin-bottom: 20px;
	line-height: 1.5;
}

.wr-form-notice {
	border-radius: var(--wr-radius-md);
	padding: 14px 20px;
	font-size: 0.88rem;
	line-height: 1.6;
	margin-bottom: var(--wr-spacing-lg);
}

.wr-form-notice--trial {
	background: var(--wr-pending-bg);
	color: var(--wr-pending-text);
}

.wr-form-notice--trial a {
	color: var(--wr-deep);
	font-weight: 600;
	text-decoration: underline;
}

.wr-form-notice--credits {
	background: var(--wr-done-bg);
	color: var(--wr-done-text);
}

.wr-form-notice--plain {
	text-align: center;
	color: var(--wr-muted);
	padding: 60px 20px;
}

.wr-form-notice--plain a {
	color: var(--wr-deep);
	font-weight: 600;
	text-decoration: underline;
}

/* ── SUBMIT FORM — PROGRESS STEPS ─────────────────────────────── */
.wr-steps {
	display: flex;
	align-items: center;
	margin-bottom: 28px;
}

.wr-step {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--wr-muted);
	white-space: nowrap;
	line-height: 1.2;
}

.wr-step--active {
	color: var(--wr-deep);
}

.wr-step-dot {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--wr-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--wr-muted);
	flex-shrink: 0;
	line-height: 1;
}

.wr-step--active .wr-step-dot {
	background: var(--wr-deep);
	color: #fff;
}

.wr-step-line {
	flex: 1;
	height: 1px;
	background: var(--wr-border);
	margin: 0 10px;
}

/* ── SUBMIT FORM — FIELDS ─────────────────────────────────────── */
.wr-form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: var(--wr-spacing-md);
}

.wr-form-group:last-child {
	margin-bottom: 0;
}

.wr-form-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wr-spacing-md);
}

.wr-form-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--wr-text);
	display: flex;
	align-items: center;
	justify-content: space-between;
	line-height: 1.3;
}

.wr-form-label-hint {
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--wr-muted);
}

.wr-form-input,
.wr-form-select,
.wr-form-textarea {
	width: 100%;
	border: 1px solid var(--wr-border);
	border-radius: var(--wr-radius-sm);
	font-family: inherit;
	color: var(--wr-text);
	background: var(--wr-white);
	box-sizing: border-box;
	transition: border-color 0.15s ease;
	padding: 10px 14px;
	line-height: 1.5;
}

.wr-form-input:focus,
.wr-form-select:focus,
.wr-form-textarea:focus {
	outline: none;
	border-color: var(--wr-deep);
	box-shadow: 0 0 0 3px rgba(6, 0, 151, 0.1);
}

.wr-form-textarea {
	resize: vertical;
	line-height: 1.7;
	min-height: 280px;
}

.wr-form-select {
	appearance: auto;
	cursor: pointer;
    padding: 0;
}

/* ── SUBMIT FORM — WORD COUNT BAR ─────────────────────────────── */
.wr-word-bar {
	margin-top: 10px;
}

.wr-word-bar-track {
	height: 3px;
	background: var(--wr-border);
	border-radius: 99px;
	margin-bottom: 6px;
	overflow: hidden;
}

.wr-word-bar-fill {
	height: 3px;
	background: var(--wr-deep);
	border-radius: 99px;
	width: 0%;
	transition: width 0.2s ease, background 0.2s ease;
}

.wr-word-bar-label {
	font-size: 0.78rem;
	color: var(--wr-muted);
	text-align: right;
	line-height: 1.3;
}

/* ── SUBMIT FORM — FOOTER ─────────────────────────────────────── */
.wr-form-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wr-spacing-md);
	margin-top: 8px;
}

.wr-form-footnote {
	font-size: 0.78rem;
	color: var(--wr-muted);
	margin: 0;
	line-height: 1.4;
}

/* ── SUBMIT FORM — TABS ───────────────────────────────────────── */
.wr-tab-card {
	padding: 0;
	overflow: hidden;
}

.wr-tab-bar {
	display: flex;
	border-bottom: 1px solid var(--wr-border);
}

.wr-tab {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 14px 22px;
	font-size: 0.85rem;
	font-weight: 600;
	font-family: inherit;
	color: var(--wr-muted);
	background: var(--wr-bg);
	border: none;
	border-bottom: 2px solid transparent;
    border-radius: 0;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
	margin-bottom: -1px;
	white-space: nowrap;
	line-height: 1.2;
}

.wr-tab:hover {
	color: var(--wr-text);
	background: var(--wr-white);
}

.wr-tab--active {
	color: var(--wr-deep);
	background: var(--wr-white);
	border-bottom-color: var(--wr-deep);
}

.wr-tab-panel {
	display: none;
	padding: var(--wr-spacing-lg);
}

.wr-tab-panel--active {
	display: block;
}

/* ── SUBMIT FORM — DROPZONE ───────────────────────────────────── */
.wr-dropzone {
	position: relative;
	border: 2px dashed var(--wr-border);
	border-radius: var(--wr-radius-md);
	padding: 48px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
	text-align: center;
	background: transparent;
}

.wr-dropzone:hover,
.wr-dropzone--over {
	border-color: var(--wr-deep);
	background: rgba(6, 0, 151, 0.02);
}

.wr-dropzone-input {
	position: absolute;
	inset: 0;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	font-size: 0;
}

.wr-dropzone-icon {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: #eeedfe;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 4px;
}

.wr-dropzone-text strong {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--wr-text);
	margin-bottom: 3px;
	line-height: 1.3;
}

.wr-dropzone-text span {
	display: block;
	font-size: 0.82rem;
	color: var(--wr-muted);
	line-height: 1.4;
}

.wr-dropzone-hint {
	font-size: 0.75rem;
	color: var(--wr-muted);
	margin-top: 4px;
	line-height: 1.3;
}

.wr-dropzone-selected {
	margin-top: 8px;
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.wr-file-name {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--wr-deep);
	line-height: 1.3;
}

.wr-file-remove {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--wr-error-text);
	background: var(--wr-error-bg);
	border: none;
	border-radius: 6px;
	padding: 3px 10px;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s ease;
	line-height: 1.2;
}

.wr-file-remove:hover {
	background: #fee2e2;
}

.wr-file-error {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--wr-error-text);
	line-height: 1.4;
}

.wr-file-reading {
	font-size: 0.85rem;
	color: var(--wr-muted);
	font-style: italic;
	line-height: 1.4;
}

.wr-file-wordcount {
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--wr-muted);
	margin-left: 6px;
	line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ══════════════════════════════════════════════════════════════ */
/* ── TABLET (768px and below) ─────────────────────────────────── */
@media (max-width: 768px) {
	.wr-tab {
		padding: 12px 18px;
		font-size: 0.82rem;
	}
	
	.wr-dropzone {
		padding: 36px 20px;
	}
}

/* ── MOBILE (600px and below) ─────────────────────────────────── */
@media (max-width: 600px) {
	/* Two column form to single column */
	.wr-form-two-col {
		grid-template-columns: 1fr;
	}
	
	/* Stack form footer */
	.wr-form-footer {
		flex-direction: column;
		align-items: stretch;
	}
	
	.wr-btn-submit {
		width: 100%;
	}
	
	.wr-form-footnote {
		text-align: center;
	}
	
	/* Simplify progress steps on mobile */
	.wr-steps .wr-step span {
		display: none;
	}
	
	.wr-step-line {
		margin: 0 6px;
	}
	
	.wr-step-dot {
		width: 24px;
		height: 24px;
		font-size: 0.68rem;
	}
	
	/* Compact tabs */
	.wr-tab {
		padding: 10px 14px;
		font-size: 0.78rem;
		gap: 5px;
	}
	
	.wr-tab-panel {
		padding: 18px;
	}
	
	/* Smaller dropzone on mobile */
	.wr-dropzone {
		padding: 32px 16px;
	}
	
	.wr-dropzone-icon {
		width: 48px;
		height: 48px;
	}
	
	.wr-dropzone-text strong {
		font-size: 0.88rem;
	}
	
	.wr-dropzone-text span {
		font-size: 0.78rem;
	}
	
	.wr-form-input,
	.wr-form-select,
	.wr-form-textarea {
		font-size: 16px; /* Prevents zoom on iOS */
		padding: 12px 14px;
	}
	
	.wr-form-textarea {
		min-height: 220px;
	}
}
