/**
 * Peptides Affiliate Application Form & Landing Page Styles
 * Brand-cohesive design: teal/mint pharmaceutical aesthetic
 */

/* --- CSS Variables --- */
.pep-apply-hero,
.pep-application-form-wrap,
.pep-application-notice,
.pep-affiliate-landing {
	--pep-teal-900: #1a3c34;
	--pep-teal-800: #1e4d42;
	--pep-teal-700: #246b5a;
	--pep-teal-600: #2d7d6a;
	--pep-teal-500: #359e84;
	--pep-teal-400: #4db899;
	--pep-teal-300: #7ed4b8;
	--pep-teal-200: #b0e8d5;
	--pep-teal-100: #d5f3ea;
	--pep-teal-50: #ecf9f4;

	--pep-mint-bg: #f0f9f5;
	--pep-card-bg: #ffffff;
	--pep-card-border: rgba(45, 125, 106, 0.12);
	--pep-card-shadow: 0 1px 3px rgba(26, 60, 52, 0.06), 0 1px 2px rgba(26, 60, 52, 0.04);
	--pep-card-shadow-hover: 0 8px 25px rgba(26, 60, 52, 0.10), 0 3px 8px rgba(26, 60, 52, 0.06);

	--pep-green-positive: #16a34a;
	--pep-green-positive-bg: #dcfce7;
	--pep-red-negative: #dc2626;
	--pep-red-negative-bg: #fef2f2;
	--pep-amber-pending: #d97706;
	--pep-amber-pending-bg: #fef3c7;

	--pep-text-primary: #1a2e28;
	--pep-text-secondary: #4a6960;
	--pep-text-muted: #7a958c;

	--pep-radius: 14px;
	--pep-radius-sm: 8px;
	--pep-radius-xs: 6px;
}

/* =============================================
   HERO CTA - Login/Create Account
   ============================================= */

.pep-apply-hero {
	background: linear-gradient(145deg, var(--pep-teal-800) 0%, var(--pep-teal-900) 100%);
	border-radius: var(--pep-radius);
	padding: 48px 40px;
	text-align: center;
	margin-bottom: 40px;
	position: relative;
	overflow: hidden;
}

.pep-apply-hero::before {
	content: '';
	position: absolute;
	top: -60%;
	right: -20%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(77, 184, 153, 0.12) 0%, transparent 70%);
	pointer-events: none;
}

.pep-apply-hero::after {
	content: '';
	position: absolute;
	bottom: -40%;
	left: -10%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(77, 184, 153, 0.08) 0%, transparent 70%);
	pointer-events: none;
}

.pep-apply-hero__badge {
	display: inline-block;
	padding: 4px 16px;
	background: rgba(77, 184, 153, 0.15);
	border: 1px solid rgba(77, 184, 153, 0.25);
	border-radius: 20px;
	color: var(--pep-teal-200);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pep-apply-hero__title {
	color: #ffffff;
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 12px 0;
	line-height: 1.2;
	position: relative;
	z-index: 1;
}

.pep-apply-hero__subtitle {
	color: var(--pep-teal-200);
	font-size: 16px;
	line-height: 1.6;
	margin: 0 auto 28px;
	max-width: 480px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	position: relative;
	z-index: 1;
}

.pep-apply-hero__btn {
	display: inline-block;
	padding: 16px 40px;
	background: linear-gradient(135deg, var(--pep-teal-400) 0%, var(--pep-teal-500) 100%);
	color: #fff !important;
	border: none;
	border-radius: var(--pep-radius-sm);
	font-size: 17px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.25s ease;
	letter-spacing: 0.01em;
	position: relative;
	z-index: 1;
	box-shadow: 0 4px 14px rgba(26, 60, 52, 0.3);
}

.pep-apply-hero__btn:hover {
	background: linear-gradient(135deg, var(--pep-teal-300) 0%, var(--pep-teal-400) 100%);
	color: #fff !important;
	text-decoration: none !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(26, 60, 52, 0.4);
}

.pep-apply-hero__stats {
	display: flex;
	justify-content: center;
	gap: 40px;
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid rgba(77, 184, 153, 0.15);
	position: relative;
	z-index: 1;
}

.pep-apply-hero__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.pep-apply-hero__stat-value {
	font-size: 28px;
	font-weight: 800;
	color: var(--pep-teal-300);
	line-height: 1;
	margin-bottom: 4px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pep-apply-hero__stat-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--pep-teal-300);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.7;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* =============================================
   LANDING PAGE SECTIONS (below shortcode)
   ============================================= */

.pep-affiliate-landing {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--pep-text-primary);
}

/* --- Value Props Cards --- */
.pep-landing-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 48px;
}

.pep-landing-card {
	background: var(--pep-card-bg);
	border: 1px solid var(--pep-card-border);
	border-radius: var(--pep-radius);
	padding: 28px 24px;
	text-align: center;
	box-shadow: var(--pep-card-shadow);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pep-landing-card:hover {
	box-shadow: var(--pep-card-shadow-hover);
	transform: translateY(-2px);
}

.pep-landing-card__icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 16px;
	background: linear-gradient(135deg, var(--pep-teal-50) 0%, var(--pep-teal-100) 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	line-height: 1;
}

.pep-landing-card__title {
	font-size: 17px;
	font-weight: 700;
	color: var(--pep-teal-800);
	margin: 0 0 8px 0;
}

.pep-landing-card__text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--pep-text-secondary);
	margin: 0;
}

/* --- Section Headings --- */
.pep-landing-section {
	margin-bottom: 44px;
}

.pep-landing-section__title {
	font-size: 22px;
	font-weight: 700;
	color: var(--pep-teal-800);
	margin: 0 0 24px 0;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--pep-teal-100);
}

/* --- Steps --- */
.pep-landing-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.pep-landing-step {
	position: relative;
	padding: 20px;
	background: var(--pep-mint-bg);
	border-radius: var(--pep-radius-sm);
	text-align: center;
}

.pep-landing-step__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: linear-gradient(135deg, var(--pep-teal-600) 0%, var(--pep-teal-700) 100%);
	color: #fff;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pep-landing-step__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--pep-teal-800);
	margin: 0 0 4px 0;
}

.pep-landing-step__text {
	font-size: 13px;
	color: var(--pep-text-secondary);
	margin: 0;
	line-height: 1.5;
}

/* --- Eligibility list --- */
.pep-landing-eligibility {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.pep-landing-eligibility li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: var(--pep-mint-bg);
	border-radius: var(--pep-radius-sm);
	font-size: 14px;
	color: var(--pep-text-primary);
}

.pep-landing-eligibility li::before {
	content: '\2713';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	min-width: 22px;
	background: var(--pep-teal-100);
	color: var(--pep-teal-700);
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
}

/* --- Bottom CTA --- */
.pep-landing-bottom-cta {
	text-align: center;
	padding: 36px 28px;
	background: linear-gradient(135deg, var(--pep-teal-50) 0%, var(--pep-teal-100) 100%);
	border-radius: var(--pep-radius);
	border: 1px solid var(--pep-teal-200);
}

.pep-landing-bottom-cta p {
	font-size: 16px;
	color: var(--pep-teal-800);
	margin: 0 0 16px 0;
	font-weight: 500;
}

/* =============================================
   NOTICES (shortcode states)
   ============================================= */

.pep-application-notice {
	padding: 24px 28px;
	border-radius: var(--pep-radius);
	margin-bottom: 24px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--pep-text-primary);
}

.pep-application-notice h3 {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 600;
}

.pep-application-notice p {
	margin: 0 0 12px 0;
	line-height: 1.6;
}

.pep-application-notice p:last-child {
	margin-bottom: 0;
}

.pep-application-notice--warning {
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
	border: 1px solid #fbbf24;
	color: #92400e;
}

.pep-application-notice--info {
	background: linear-gradient(135deg, var(--pep-teal-50) 0%, var(--pep-teal-100) 100%);
	border: 1px solid var(--pep-teal-200);
	color: var(--pep-teal-800);
}

.pep-application-notice--success {
	background: linear-gradient(135deg, #ecfdf5 0%, var(--pep-green-positive-bg) 100%);
	border: 1px solid #86efac;
	color: #14532d;
}

.pep-application-notice--rejected {
	background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
	border: 1px solid #fca5a5;
	color: #7f1d1d;
}

/* =============================================
   BUTTON
   ============================================= */

.pep-application-btn {
	display: inline-block;
	padding: 12px 28px;
	background: linear-gradient(135deg, var(--pep-teal-600) 0%, var(--pep-teal-700) 100%);
	color: #fff !important;
	border: none;
	border-radius: var(--pep-radius-sm);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.2s ease;
	letter-spacing: 0.01em;
}

.pep-application-btn:hover {
	background: linear-gradient(135deg, var(--pep-teal-700) 0%, var(--pep-teal-800) 100%);
	color: #fff !important;
	text-decoration: none !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(26, 60, 52, 0.2);
}

/* =============================================
   APPLICATION FORM
   ============================================= */

.pep-application-form-wrap {
	max-width: 640px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--pep-text-primary);
}

.pep-application-form {
	background: var(--pep-card-bg);
	border: 1px solid var(--pep-card-border);
	border-radius: var(--pep-radius);
	padding: 32px;
	box-shadow: var(--pep-card-shadow);
}

.pep-application-field {
	margin-bottom: 24px;
}

.pep-application-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--pep-text-primary);
	margin-bottom: 8px;
}

.pep-application-field label .required {
	color: var(--pep-red-negative);
	margin-left: 2px;
}

.pep-application-field textarea,
.pep-application-field input[type="url"] {
	display: block;
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--pep-card-border);
	border-radius: var(--pep-radius-sm);
	font-size: 14px;
	line-height: 1.5;
	color: var(--pep-text-primary);
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	font-family: inherit;
	box-sizing: border-box;
}

.pep-application-field textarea:focus,
.pep-application-field input[type="url"]:focus {
	outline: none;
	border-color: var(--pep-teal-400);
	box-shadow: 0 0 0 3px rgba(77, 184, 153, 0.15);
}

.pep-application-field textarea {
	resize: vertical;
	min-height: 120px;
}

.pep-application-char-count {
	display: block;
	text-align: right;
	font-size: 12px;
	color: var(--pep-text-muted);
	margin-top: 4px;
}

.pep-application-btn--submit {
	width: 100%;
	padding: 14px 28px;
	font-size: 16px;
	margin-top: 8px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
	.pep-apply-hero {
		padding: 36px 24px;
	}

	.pep-apply-hero__title {
		font-size: 26px;
	}

	.pep-apply-hero__stats {
		gap: 24px;
	}

	.pep-apply-hero__stat-value {
		font-size: 24px;
	}

	.pep-landing-cards {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.pep-landing-steps {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.pep-landing-eligibility {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.pep-apply-hero {
		padding: 28px 20px;
	}

	.pep-apply-hero__title {
		font-size: 22px;
	}

	.pep-apply-hero__subtitle {
		font-size: 14px;
	}

	.pep-apply-hero__btn {
		padding: 14px 32px;
		font-size: 15px;
		display: block;
	}

	.pep-apply-hero__stats {
		gap: 16px;
	}

	.pep-landing-steps {
		grid-template-columns: 1fr;
	}

	.pep-application-form {
		padding: 20px;
	}

	.pep-application-notice {
		padding: 18px 20px;
	}
}
