/* File Fix Manager — scoped frontend component styles.
   Theme-level branding lives in the GeneratePress child theme. */

/* ---- Intake fields & add-ons on product pages ---- */
.ffm-intake,
.ffm-addons,
.ffm-uploader {
	margin: 0 0 1.5em;
	padding: 1.25em;
	background: var(--ffm-panel, #f7f8fa);
	border: 1px solid var(--ffm-border, #e2e5ea);
	border-radius: 10px;
}

.ffm-section-title {
	margin: 0 0 0.75em;
	font-size: 1.05em;
}

.ffm-required {
	color: #d63638;
}

.ffm-notice {
	padding: 0.75em 1em;
	background: #fff8e5;
	border-left: 4px solid #dba617;
	border-radius: 4px;
	font-size: 0.92em;
}

.ffm-field {
	margin-bottom: 1.4em;
}

.ffm-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.45em;
	font-size: 0.9rem;
	letter-spacing: 0.01em;
	color: #0b1220;
}

.ffm-field input[type="text"],
.ffm-field input[type="email"],
.ffm-field input[type="url"],
.ffm-field input[type="date"],
.ffm-field input[type="number"],
.ffm-field select,
.ffm-field textarea {
	width: 100%;
	padding: 0.8em 1em;
	border: 1.5px solid var(--ffm-border, #dde2ea);
	border-radius: 10px;
	font-size: 16px;
	font-family: inherit;
	color: #0b1220;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ffm-field input[type="text"]:focus,
.ffm-field input[type="email"]:focus,
.ffm-field input[type="url"]:focus,
.ffm-field input[type="date"]:focus,
.ffm-field input[type="number"]:focus,
.ffm-field select:focus,
.ffm-field textarea:focus {
	border-color: var(--ffm-accent, #2563eb);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
	outline: none;
}

/* Custom dropdown arrow */
.ffm-field select {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4a5c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
	padding-right: 2.5em;
	cursor: pointer;
}

/* File input: style the native button, keep the field minimal */
.ffm-field input[type="file"] {
	display: block;
	padding: 0;
	border: none;
	border-radius: 0;
	background: none;
	box-shadow: none !important;
	cursor: pointer;
}

.ffm-field small {
	display: block;
	margin-top: 0.4em;
	font-size: 0.82rem;
	color: #6b7585;
}

.ffm-field input[type="file"]::file-selector-button {
	background: var(--ffm-accent, #2563eb);
	color: #fff;
	border: 0;
	padding: 0.55em 1.2em;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 600;
	margin-right: 0.75em;
	transition: background 0.15s ease;
	font-family: inherit;
}

.ffm-field input[type="file"]::file-selector-button:hover {
	background: #1d4ed8;
}

.ffm-field input[type="file"]::-webkit-file-upload-button {
	background: var(--ffm-accent, #2563eb);
	color: #fff;
	border: 0;
	padding: 0.55em 1.2em;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 600;
	margin-right: 0.75em;
	transition: background 0.15s ease;
	font-family: inherit;
}

.ffm-checkbox-group {
	display: grid;
	gap: 0.4em;
}

.ffm-checkbox {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-weight: 400 !important;
}

/* ---- Add-ons ---- */
.ffm-addon {
	display: flex;
	align-items: flex-start;
	gap: 0.65em;
	padding: 0.65em 0;
	border-bottom: 1px solid var(--ffm-border, #e2e5ea);
	cursor: pointer;
}

.ffm-addon:last-child {
	border-bottom: 0;
}

.ffm-addon input[type="checkbox"] {
	margin-top: 0.25em;
	flex: none;
}

.ffm-addon-label {
	flex: 1;
}

.ffm-addon-name {
	display: block;
	font-weight: 600;
	font-size: 0.95em;
}

.ffm-addon-price {
	white-space: nowrap;
}

.ffm-addon-desc {
	display: block;
	font-size: 0.85em;
	opacity: 0.75;
}

.ffm-addon-qty {
	flex: none;
	width: 64px;
}

/* ---- Uploader ---- */
.ffm-upload-help {
	font-size: 0.85em;
	opacity: 0.8;
}

.ffm-dropzone {
	display: block;
	padding: 1.5em 1em;
	border: 2px dashed var(--ffm-accent, #2271b1);
	border-radius: 10px;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s ease;
	background: #fff;
}

.ffm-dropzone.is-dragover {
	background: #eef4fb;
}

.ffm-dropzone.is-error {
	border-color: #d63638;
}

.ffm-dropzone .ffm-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.ffm-dropzone-text {
	font-weight: 600;
}

.ffm-upload-list {
	list-style: none;
	margin: 0.75em 0 0;
	padding: 0;
}

.ffm-upload-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75em;
	padding: 0.5em 0.75em;
	margin-bottom: 0.4em;
	border-radius: 6px;
	background: #fff;
	border: 1px solid var(--ffm-border, #e2e5ea);
	font-size: 0.9em;
	word-break: break-all;
}

.ffm-upload-item.is-done {
	border-color: #00a32a;
}

.ffm-upload-item.is-failed {
	border-color: #d63638;
	color: #d63638;
}

.ffm-upload-remove {
	flex: none;
	background: none;
	border: 0;
	color: #d63638;
	cursor: pointer;
	font-size: 0.85em;
	text-decoration: underline;
	padding: 0;
}

/* ---- My Account: projects ---- */
.ffm-status {
	display: inline-block;
	padding: 0.2em 0.7em;
	border-radius: 999px;
	font-size: 0.82em;
	font-weight: 600;
	background: #e2e5ea;
	color: #1d2327;
	white-space: nowrap;
}

.ffm-status--new-order,
.ffm-status--file-review { background: #d5e3f5; color: #163b5c; }
.ffm-status--needs-quote,
.ffm-status--quote-sent,
.ffm-status--waiting-on-customer { background: #fff0c7; color: #6b4d00; }
.ffm-status--approved,
.ffm-status--in-progress { background: #d9e9ff; color: #1d3f6e; }
.ffm-status--proof-sent { background: #ecdcff; color: #4b2a76; }
.ffm-status--revision-requested { background: #ffe1d6; color: #7a2e12; }
.ffm-status--final-files-delivered,
.ffm-status--completed { background: #d3efd9; color: #1a5c2a; }
.ffm-status--archived { background: #eceff2; color: #5a6470; }

.ffm-file-list {
	list-style: none;
	margin: 0 0 1.5em;
	padding: 0;
}

.ffm-file-list li {
	padding: 0.65em 0.85em;
	margin-bottom: 0.45em;
	border: 1px solid var(--ffm-border, #e2e5ea);
	border-radius: 8px;
	background: #fff;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em 0.75em;
	align-items: baseline;
}

.ffm-file-list--final li {
	border-left: 4px solid #00a32a;
}

.ffm-file-link {
	font-weight: 600;
	word-break: break-all;
}

.ffm-file-meta {
	font-size: 0.82em;
	opacity: 0.7;
}

.ffm-account-note {
	font-size: 0.9em;
	opacity: 0.85;
	border-top: 1px solid var(--ffm-border, #e2e5ea);
	padding-top: 1em;
}

/* ---- Quote form ---- */
.ffm-quote-form {
	max-width: 660px;
	background: #fff;
	border: 1px solid #e5e9f0;
	border-radius: 20px;
	padding: 40px 44px;
	box-shadow: 0 2px 6px rgba(11, 18, 32, 0.04), 0 12px 36px rgba(11, 18, 32, 0.09);
	margin-top: 0.5em;
}

.ffm-quote-form .ffm-field:last-of-type {
	margin-bottom: 0.6em;
}

/* Submit button */
.ffm-quote-submit {
	display: block;
	width: 100%;
	padding: 1em 1.5em;
	font-size: 1.05rem;
	font-weight: 700;
	font-family: inherit;
	letter-spacing: 0.01em;
	border-radius: 12px;
	border: none;
	background: var(--ffm-accent, #2563eb);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
	margin-top: 1.2em;
}

.ffm-quote-submit:hover {
	background: #1d4ed8;
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
	transform: translateY(-1px);
}

.ffm-quote-submit:active {
	transform: none;
	box-shadow: none;
}

.ffm-hp {
	position: absolute !important;
	left: -9999px !important;
}

.ffm-form-success {
	padding: 1em 1.25em;
	background: #d3efd9;
	border-radius: 8px;
	margin-bottom: 1.5em;
}

/* Responsive: reduce padding on small screens */
@media (max-width: 599px) {
	.ffm-quote-form {
		padding: 28px 22px;
		border-radius: 14px;
	}
}
