/* Tax Exemption Form Styles - Iframe Optimized */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 15px;
	color: #333333;
	background: transparent;
	min-height: auto;
	padding: 0;
	margin: 0;
}

.main-container {
	width: 100%;
	max-width: none;
	padding: 0;
}

.form-wrapper {
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	width: 100%;
}

/* Header Styles */
.form-header {
	background: transparent;
	color: inherit;
	padding: 10px 0 20px 0;
	text-align: left;
}

.form-header-icon {
	display: none; /* Hide icon for compact layout */
}

.form-header h1 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 4px;
	letter-spacing: -0.3px;
	color: inherit;
}

.form-header p {
	font-size: 13px;
	opacity: 0.85;
	font-weight: 400;
	color: inherit;
}

/* Form Body */
.form-body {
	padding: 0;
}

/* Requirements Box */
.requirements-box {
	background: rgba(37, 93, 157, 0.05);
	border-left: 4px solid #255d9d;
	border-radius: 6px;
	padding: 14px;
	margin-bottom: 20px;
}

.requirements-box h3 {
	font-size: 13px;
	font-weight: 600;
	color: #255d9d;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.requirements-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	list-style: none;
}

.requirements-list li {
	font-size: 13px;
	color: inherit;
	display: flex;
	align-items: center;
	gap: 6px;
}

.requirements-list li:before {
	content: "✓";
	color: #255d9d;
	font-weight: 700;
	flex-shrink: 0;
}

/* Form Group */
.form-group {
	margin-bottom: 18px;
}

.form-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: inherit;
	margin-bottom: 6px;
}

.required-indicator {
	color: #ff6b6b;
	margin-left: 2px;
}

/* Form Inputs */
.form-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: inherit;
	font-family: inherit;
	transition: all 0.3s ease;
	background-color: #fafbfc;
	color: inherit;
}

.form-input:focus {
	outline: none;
	border-color: #255d9d;
	background-color: white;
	box-shadow: 0 0 0 3px rgba(37, 93, 157, 0.15);
}

.form-input:disabled {
	background-color: #f5f6f7;
	color: #999;
	cursor: not-allowed;
	border-color: #e1e4e8;
}

/* Dropzone Styles */
.dropzone-wrapper {
	margin-bottom: 20px;
}

.dropzone-area {
	background: rgba(37, 93, 157, 0.02);
	border: 2px dashed #255d9d;
	border-radius: 8px;
	padding: 30px 15px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	min-height: 160px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
}

.dropzone-area:hover {
	background: rgba(51, 151, 209, 0.05);
	border-color: #3397d1;
}

.dropzone-area.dragover {
	background: rgba(51, 151, 209, 0.08);
	border-color: #3397d1;
}

.dropzone-icon {
	font-size: 32px;
	color: #255d9d;
	margin-bottom: 8px;
	transition: all 0.3s ease;
}

.dropzone-area:hover .dropzone-icon {
	transform: scale(1.1);
	color: #3397d1;
}

.dropzone-text {
	font-size: 14px;
	font-weight: 600;
	color: inherit;
	margin-bottom: 2px;
}

.dropzone-hint {
	font-size: 12px;
	color: inherit;
	opacity: 0.7;
}

/* ===== Status & Error Messages ===== */
/* Shared base for both message types */
.alert-msg {
	display: none;
	width: 100%;
	padding: 14px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 16px;
	border: 1.5px solid transparent;
	box-shadow: 0 4px 14px rgba(0,0,0,0.12);
	animation: slideInMsg 0.25s ease;
	position: relative;
}

@keyframes slideInMsg {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Success variant */
.alert-msg.success {
	background: #e8f5e9;
	border-color: #43a047;
	color: #1b5e20;
}

.alert-msg.success::before {
	content: "✅ ";
	font-style: normal;
}

/* Error variant */
.alert-msg.error {
	background: #fdecea;
	border-color: #e53935;
	color: #b71c1c;
}

.alert-msg.error::before {
	content: "⛔ ";
	font-style: normal;
}

/* Legacy selectors kept for backwards-compat but neutralised */
.status-message,
.error-message {
	display: none !important;
}

/* Form Actions */
.form-actions {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}

.btn {
	flex: 1;
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	font-size: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: inherit;
}

.btn-primary {
	background: #255d9d;
	color: white;
	box-shadow: 0 2px 6px rgba(37, 93, 157, 0.3);
}

.btn-primary:hover:not(:disabled) {
	background: #3397d1;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(51, 151, 209, 0.4);
}

.btn-primary:active:not(:disabled) {
	transform: translateY(0);
}

.btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.btn-reset {
	background: #f0f2f5;
	color: inherit;
	border: 1px solid #ccc;
}

.btn-reset:hover:not(:disabled) {
	background: #e4e6eb;
}



/* Dropzone JS overrides */
.dz-default { display: none; }
#tax-form-upload .dz-preview { display: none; }

/* Loading Spinner */
.loading-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: white;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 600px) {
	.requirements-list {
		grid-template-columns: 1fr;
	}
	.form-actions {
		flex-direction: column;
	}
}
