/**
 * Trade Flow — Frontend Styles
 *
 * Styles for the application form and status display.
 *
 * @package BloomStack\TradeFlow
 * @since 1.2.0
 */

/* ==========================================================================
   Application Form
   ========================================================================== */

.tf-application-form-wrap {
	max-width: 640px;
}

.tf-hp-field {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
	opacity: 0;
}

.tf-form-field {
	margin-bottom: 20px;
}

.tf-form-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
	color: #1F2937;
}

.tf-form-label--sub {
	font-weight: 500;
	font-size: 13px;
	margin-top: 10px;
	color: #6B7280;
}

.tf-required {
	color: #EF4444;
}

.tf-form-input,
.tf-form-textarea,
.tf-form-select {
	display: block;
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	border: 1px solid #E5E7EB;
	border-radius: 6px;
	background: #FFFFFF;
	color: #1F2937;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}

.tf-form-input:focus,
.tf-form-textarea:focus,
.tf-form-select:focus {
	border-color: #7C3AED;
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
	outline: none;
}

.tf-form-textarea {
	resize: vertical;
	min-height: 100px;
}

.tf-form-radio-group,
.tf-form-checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tf-form-radio-label,
.tf-form-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #1F2937;
	cursor: pointer;
}

.tf-form-file {
	font-size: 14px;
}

.tf-form-help {
	margin: 6px 0 0;
	font-size: 12px;
	color: #6B7280;
}

.tf-cohort-other-wrap {
	margin-top: 10px;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */

.tf-form-submit {
	margin-top: 28px;
}

.tf-form-button {
	display: inline-block;
	padding: 12px 32px;
	font-size: 15px;
	font-weight: 600;
	color: #FFFFFF;
	background: #7C3AED;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.tf-form-button:hover {
	background: #6D28D9;
}

.tf-form-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ==========================================================================
   Form Messages
   ========================================================================== */

.tf-form-messages {
	margin-top: 20px;
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.tf-form-messages p {
	margin: 0;
}

.tf-form-messages--success {
	background: #D1FAE5;
	color: #065F46;
	border-left: 4px solid #10B981;
}

.tf-form-messages--error {
	background: #FEE2E2;
	color: #991B1B;
	border-left: 4px solid #EF4444;
}

/* ==========================================================================
   Application Status (Frontend)
   ========================================================================== */

.tf-application-notice {
	padding: 20px 24px;
	border-radius: 8px;
	border-left: 4px solid;
	margin-bottom: 20px;
}

.tf-application-notice h3 {
	margin: 0 0 8px;
	font-size: 16px;
}

.tf-application-notice p {
	margin: 0;
	line-height: 1.6;
}

.tf-application-notice--info {
	background: #DBEAFE;
	color: #1E40AF;
	border-left-color: #3B82F6;
}

.tf-application-notice--success {
	background: #D1FAE5;
	color: #065F46;
	border-left-color: #10B981;
}

.tf-application-notice--warning {
	background: #FEF3C7;
	color: #92400E;
	border-left-color: #F59E0B;
}

.tf-application-status-date {
	margin-top: 8px !important;
	font-size: 13px;
	opacity: 0.8;
}

/* ==========================================================================
   Trade Price Display
   ========================================================================== */

.tf-trade-price-wrap {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
}

.tf-original-price {
	color: #9CA3AF;
	text-decoration: line-through;
	font-size: 0.9em;
}

.tf-original-price .woocommerce-Price-amount {
	color: inherit;
}

.tf-trade-price {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
}

.tf-trade-price-label {
	font-size: 0.85em;
	font-weight: 600;
	color: #7C3AED;
	white-space: nowrap;
}

.tf-trade-price-amount {
	text-decoration: none;
	font-weight: 600;
	color: #1F2937;
}

.tf-trade-price-amount .woocommerce-Price-amount {
	color: inherit;
}

ul.products .tf-trade-price-wrap {
	flex-direction: column;
	gap: 2px;
}

.single-product .tf-trade-price-wrap {
	gap: 8px;
}

.single-product .tf-trade-price-label {
	font-size: 0.9em;
}

.single-product .tf-trade-price-amount {
	font-size: 1.1em;
}

/* ==========================================================================
   Trade Dashboard (My Account)
   ========================================================================== */

.tf-dashboard {
	max-width: 800px;
}

.tf-dashboard-section {
	margin-bottom: 32px;
}

.tf-dashboard-section h3 {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 600;
	color: #1F2937;
}

.tf-dashboard-summary-table th {
	width: 180px;
	font-weight: 500;
	color: #6B7280;
}

.tf-dashboard-badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: 13px;
	font-weight: 600;
	color: #7C3AED;
	background: #EDE9FE;
	border-radius: 4px;
}

.tf-dashboard-discount {
	font-weight: 600;
	color: #059669;
}

.tf-dashboard-orders-table th {
	font-size: 13px;
	font-weight: 600;
	color: #6B7280;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

.tf-dashboard-orders-table td {
	vertical-align: middle;
}

.tf-dashboard-orders-table .button.view {
	padding: 4px 12px;
	font-size: 13px;
}

.tf-dashboard-application-status {
	max-width: 640px;
}

/* ==========================================================================
   Checkout Trade Savings Row
   ========================================================================== */

.tf-checkout-savings {
	color: #059669;
	font-weight: 600;
}

.tf-block-checkout-savings {
	display: block;
	color: #6B7280;
	font-size: inherit;
	font-weight: normal;
}
