/**
 * Reseller Access Manager - frontend (registration form) styles
 * Mobile-responsive, modern.
 */

.ram-form-wrapper {
	max-width: 920px;
	margin: 2.5rem auto;
	padding: 0 1rem;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #0f172a;
	box-sizing: border-box;
	font-size: 16px;
	line-height: 1.6;
}
.ram-form-wrapper *,
.ram-form-wrapper *::before,
.ram-form-wrapper *::after { box-sizing: inherit; }

.ram-form-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
	padding: clamp(1.5rem, 3.5vw, 3rem);
}

/* Header */
.ram-form-header { text-align: center; margin-bottom: 2rem; }
.ram-form-header .ram-logo { max-height: 72px; width: auto; margin-bottom: 1rem; }
.ram-form-header h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 700;
	line-height: 1.25;
	color: #0f172a;
	letter-spacing: -0.01em;
}
.ram-form-header .ram-lede {
	color: #475569;
	margin: 0 auto;
	max-width: 60ch;
	font-size: 1.05rem;
	line-height: 1.6;
}

/* Alerts */
.ram-alert {
	padding: 1.1rem 1.25rem;
	border-radius: 10px;
	margin-bottom: 1.5rem;
	font-size: 1rem;
	line-height: 1.55;
}
.ram-alert strong { display: block; margin-bottom: 0.35rem; font-weight: 600; }
.ram-alert ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.ram-alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.ram-alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.ram-alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* Fieldsets */
.ram-fieldset {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.5rem 1.5rem 1rem;
	margin: 0 0 1.5rem;
	background: #fafbfc;
}
.ram-fieldset legend {
	padding: 0 0.6rem;
	font-weight: 600;
	color: #0f172a;
	font-size: 1.05rem;
	background: #fff;
	border-radius: 6px;
}

/* Grid */
.ram-row { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-bottom: 0.9rem; }
.ram-field { flex: 1 1 100%; min-width: 0; }
.ram-col-6 { flex: 1 1 calc(50% - 0.55rem); min-width: 240px; }
.ram-col-12 { flex: 1 1 100%; }

/* Inputs */
.ram-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.45rem;
	font-size: 1rem;
	color: #0f172a;
}
.ram-req { color: #dc2626; font-weight: 700; }
.ram-optional { color: #64748b; font-weight: 400; font-size: 0.85em; }
.ram-field input[type="text"],
.ram-field input[type="email"],
.ram-field input[type="url"],
.ram-field input[type="tel"],
.ram-field input[type="password"],
.ram-field select,
.ram-field textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
	color: #0f172a;
	transition: border-color 120ms ease, box-shadow 120ms ease;
	-webkit-appearance: none;
	appearance: none;
	line-height: 1.4;
}
.ram-field textarea { resize: vertical; min-height: 90px; }
.ram-field input:focus,
.ram-field select:focus,
.ram-field textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.ram-field input.ram-invalid,
.ram-field select.ram-invalid,
.ram-field textarea.ram-invalid {
	border-color: #dc2626;
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}
.ram-hint { display: block; margin-top: 0.35rem; color: #64748b; font-size: 0.88rem; }

/* Actions */
.ram-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	padding-top: 0.75rem;
}
.ram-btn {
	display: inline-block;
	border: none;
	cursor: pointer;
	padding: 1rem 2rem;
	border-radius: 10px;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: transform 80ms ease, background-color 120ms ease;
	font-family: inherit;
	text-decoration: none;
	line-height: 1.2;
}
.ram-btn-primary { background: #2563eb; color: #fff; }
.ram-btn-primary:hover { background: #1d4ed8; color: #fff; }
.ram-btn-primary:active { transform: translateY(1px); }

.ram-finepr { font-size: 0.88rem; color: #64748b; margin: 0; }

/* Form footer (login link) */
.ram-form-footer {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #e2e8f0;
	text-align: center;
	font-size: 0.95rem;
	color: #475569;
}
.ram-form-footer p { margin: 0; }
.ram-link { color: #2563eb; font-weight: 600; text-decoration: none; }
.ram-link:hover { text-decoration: underline; }

/* Honeypot */
.ram-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	width: 0;
	overflow: hidden;
}

/* Reseller badge appended to product price HTML */
.ram-reseller-badge {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 3px 10px;
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	vertical-align: middle;
}

/* Responsive */
@media (max-width: 600px) {
	.ram-col-6 { flex: 1 1 100%; }
	.ram-form-card { padding: 1.25rem; }
	.ram-form-header h2 { font-size: 1.45rem; }
}
