/**
 * Submit a Tip Page Styles
 *
 * @package ABN_Theme
 */

/* ==========================================================================
   PAGE LAYOUT
   ========================================================================== */

.submit-tip-page {
	padding-bottom: var(--space-16);
}

.tip-page-header {
	padding: var(--space-10) 0;
	text-align: center;
	background: var(--color-bg-elevated);
	border-bottom: 1px solid var(--color-border);
	margin-bottom: var(--space-8);
}

.tip-page-title {
	font-family: var(--font-display);
	font-size: var(--text-4xl);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin-bottom: var(--space-3);
}

.tip-page-subtitle {
	font-size: var(--text-lg);
	color: var(--color-text-muted);
	margin: 0;
}

/* ==========================================================================
   FORM WRAPPER
   ========================================================================== */

.tip-form-wrapper {
	background: var(--color-bg-elevated);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-6);
	margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
	.tip-form-wrapper {
		padding: var(--space-8);
	}
}

/* ==========================================================================
   PRIVACY NOTICE
   ========================================================================== */

.tip-privacy-notice {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	padding: var(--space-4);
	background: var(--color-bg-muted);
	border-radius: var(--radius-md);
	margin-bottom: var(--space-6);
	border-left: 4px solid var(--color-education);
}

.tip-privacy-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	color: var(--color-education);
}

.tip-privacy-text {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	line-height: 1.5;
}

.tip-privacy-text strong {
	color: var(--color-text);
}

/* ==========================================================================
   FORM SECTIONS
   ========================================================================== */

.tip-form-section {
	margin-bottom: var(--space-8);
	padding-bottom: var(--space-6);
	border-bottom: 1px solid var(--color-border);
}

.tip-form-section:last-of-type {
	border-bottom: none;
	margin-bottom: var(--space-4);
}

.tip-form-section-title {
	font-family: var(--font-headline);
	font-size: var(--text-xl);
	font-weight: 700;
	margin-bottom: var(--space-2);
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

.optional-badge {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-text-subtle);
	background: var(--color-bg-muted);
	padding: var(--space-1) var(--space-2);
	border-radius: var(--radius-sm);
}

.tip-form-section-desc {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	margin-bottom: var(--space-4);
}

/* ==========================================================================
   FORM FIELDS
   ========================================================================== */

.tip-form-field {
	margin-bottom: var(--space-4);
}

.tip-form-row {
	display: grid;
	gap: var(--space-4);
}

@media (min-width: 640px) {
	.tip-form-row {
		grid-template-columns: 1fr 1fr;
	}
}

.tip-form-label {
	display: block;
	font-size: var(--text-sm);
	font-weight: 600;
	margin-bottom: var(--space-2);
	color: var(--color-text);
}

.tip-form-label .required {
	color: var(--color-breaking);
}

.tip-form-input,
.tip-form-select,
.tip-form-textarea {
	width: 100%;
	padding: var(--space-3) var(--space-4);
	font-family: var(--font-body);
	font-size: var(--text-base);
	color: var(--color-text);
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tip-form-input:focus,
.tip-form-select:focus,
.tip-form-textarea:focus {
	outline: none;
	border-color: var(--color-breaking);
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.tip-form-input::placeholder,
.tip-form-textarea::placeholder {
	color: var(--color-text-subtle);
}

.tip-form-textarea {
	resize: vertical;
	min-height: 120px;
}

.tip-form-select {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23737373'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right var(--space-3) center;
	background-size: 20px;
	padding-right: var(--space-10);
}

.tip-form-file {
	width: 100%;
	padding: var(--space-3);
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	background: var(--color-bg);
	border: 2px dashed var(--color-border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: border-color var(--transition-fast);
}

.tip-form-file:hover {
	border-color: var(--color-border-strong);
}

.tip-form-help {
	font-size: var(--text-xs);
	color: var(--color-text-subtle);
	margin-top: var(--space-1);
}

/* Checkbox */
.tip-form-checkbox {
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.tip-form-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--color-breaking);
	cursor: pointer;
}

.tip-form-checkbox label {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	cursor: pointer;
	margin-bottom: 0;
}

/* ==========================================================================
   FORM ACTIONS
   ========================================================================== */

.tip-form-actions {
	margin-top: var(--space-6);
}

.tip-form-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: var(--space-4) var(--space-6);
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	background: linear-gradient(135deg, var(--color-breaking) 0%, var(--color-breaking-dark) 100%);
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

@media (min-width: 640px) {
	.tip-form-submit {
		width: auto;
		min-width: 200px;
	}
}

.tip-form-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.tip-form-submit:active {
	transform: translateY(0);
}

.tip-form-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* ==========================================================================
   FORM MESSAGE
   ========================================================================== */

.tip-form-message {
	margin-top: var(--space-4);
	padding: var(--space-4);
	border-radius: var(--radius-sm);
	font-size: var(--text-sm);
}

.tip-form-message.success {
	background: var(--color-education-bg);
	color: var(--color-education);
	border: 1px solid var(--color-education);
}

.tip-form-message.error {
	background: var(--color-crime-bg);
	color: var(--color-crime);
	border: 1px solid var(--color-crime);
}

/* ==========================================================================
   ALTERNATE METHODS
   ========================================================================== */

.tip-alternate {
	text-align: center;
	padding: var(--space-6);
	background: var(--color-bg-muted);
	border-radius: var(--radius-md);
}

.tip-alternate-title {
	font-size: var(--text-lg);
	font-weight: 600;
	margin-bottom: var(--space-4);
}

.tip-alternate-methods {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

@media (min-width: 640px) {
	.tip-alternate-methods {
		flex-direction: row;
		justify-content: center;
		gap: var(--space-8);
	}
}

.tip-alternate-method {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

.tip-alternate-method a {
	color: var(--color-breaking);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tip-alternate-method a:hover {
	text-decoration: none;
}
