#smartsheet-contact-form {
	max-width: 32rem;
	margin: 0 auto;
	font-family: system-ui, sans-serif;
	padding: 1rem;
}

.scf-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.scf-col {
	box-sizing: border-box;
}
.scf-col-half {
	width: calc(50% - 0.5rem);
}
.scf-col-2-5 {
	width: calc(40% - 0.5rem);
}
.scf-col-3-5 {
	width: calc(60% - 0.5rem);
}
.scf-col-full {
	width: 100%;
}

@media (max-width: 640px) {
	.scf-col-half,
	.scf-col-2-5,
	.scf-col-3-5 {
		width: 100%;
	}
}

.scf-label {
	display: block;
	font-weight: bold;
	margin-bottom: 0.5rem;
	color: #005295;
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
}

.scf-input,
.scf-textarea,
select.scf-input {
	width: 100%;
	background-color: #f7fafc;
	border: 2px solid #cccccc;
	font-size: 0.8rem;
	color: #1a202c;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.scf-input,
.scf-textarea {
	padding: 0.6rem 1rem;
}

select.scf-input {
	padding: 0.75rem 1rem;
}

.scf-input:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

.scf-input:focus,
.scf-textarea:focus {
	outline: none;
	background-color: #ffffff;
	border-color: #3f78e0;
}

.scf-input-error {
	border-color: #dc2626 !important;
	background-color: #fef2f2;
}

.scf-error-global {
	color: #b91c1c;
	background-color: #fee2e2;
	padding: 0.75rem;
	margin-bottom: 1rem;
	font-weight: bold;
	display: none;
}

.scf-error {
	color: #b91c1c;
}

.scf-error-text {
	color: #b91c1c;
	font-size: 0.8rem;
	display: flex;
	align-items: center;
	margin-top: 0.25rem;
}
.scf-error-text::before {
	content: "❗";
	margin-right: 0.5rem;
}

.scf-disabled {
	opacity: 0.5;
	pointer-events: none;
	position: relative;
}

.scf-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 1.2rem;
	color: #333;
	background: #fff;
	padding: 1em 1.5em;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	z-index: 10;
}
.scf-loading::after {
	content: "";
	border: 3px solid #f3f3f3;
	border-top: 3px solid #333;
	border-radius: 50%;
	width: 1rem;
	height: 1rem;
	display: inline-block;
	margin-left: 0.5rem;
	animation: spin 1s linear infinite;
}

/* Base Button */
.scf-button {
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	border: 2px solid #feb813;
	background-color: #feb813;
	color: #1a1a1a;
	font-weight: bold;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease,
		border-color 0.2s ease;
	text-align: center;
}

/* Hover & Focus States (when enabled) */
.scf-button:hover:not(:disabled),
.scf-button:focus:not(:disabled) {
	background-color: #f59e0b;
	border-color: #f59e0b;
	color: #1a1a1a;
}

/* Active state */
.scf-button:active:not(:disabled) {
	background-color: #e79600;
	border-color: #e79600;
}

/* Disabled State */
.scf-button:disabled {
	background-color: #e5e7eb; /* Tailwind gray-200 */
	border-color: #d1d5db; /* Tailwind gray-300 */
	color: #9ca3af; /* Tailwind gray-400 */
	cursor: not-allowed;
}

/* Ensure hover doesn't override disabled appearance */
.scf-button:disabled:hover,
.scf-button:disabled:focus {
	background-color: #e5e7eb;
	border-color: #d1d5db;
	color: #9ca3af;
}

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

#scf-response {
	position: relative;
	margin-top: 1em;
}

.scf-success {
	color: green;
	font-weight: bold;
}

/* Form/message wrapper */
.scf-wrapper {
	position: relative;
	min-height: 400px;
}

/* Submitted state */
.scf-submitted form {
	display: none;
}

.scf-success-message {
	text-align: center;
	padding: 2rem 1rem;
	color: #065f46;
}

.scf-success-icon svg {
	width: 3rem;
	height: 3rem;
	color: #10b981; /* emerald-500 */
	margin: 0 auto 1rem;
}

.scf-success-heading {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.scf-success-text {
	font-size: 1rem;
	color: #374151;
}
.scf-link {
	color: #1d4ed8;
	text-decoration: underline;
	font-weight: 500;
}

.scf-legal-links {
	text-align: center;
	margin-top: 0.5rem;
	font-size: 0.6rem;
}
.scf-legal-links .sep {
	margin: 0 0.25rem;
}

/* Add to existing file */
.scf-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 20;
}

.scf-spinner::after {
	content: "";
	border: 4px solid #f3f3f3;
	border-top: 4px solid #333;
	border-radius: 50%;
	width: 2rem;
	height: 2rem;
	animation: spin 1s linear infinite;
}

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