/* ==========================================================================
   AUDICOM-GO — Formulário de Associado
   Visual style: white bg, blue primary, orange section titles, soft borders
   ========================================================================== */

/* ---------- Reset & Base ---------- */
.audicom-form-wrapper {
	width: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	color: #333;
	line-height: 1.5;
	background: #fff;
	padding: 0 0 2rem;
}

/* ---------- Header ---------- */
.audicom-form-header {
	text-align: center;
	padding: 2rem 2rem 1rem;
}
.audicom-form-header h1 {
	font-size: 1.55rem;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0;
	letter-spacing: .3px;
}

/* ---------- Progress Bar ---------- */
.audicom-progress-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.5rem 1.5rem;
	gap: 0;
	flex-wrap: wrap;
}
.audicom-progress-step {
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.audicom-progress-step .step-indicator {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	background: #ccc;
	color: #fff;
	flex-shrink: 0;
	transition: background .25s;
}
.audicom-progress-step .step-label {
	font-size: 12.5px;
	color: #999;
	font-weight: 500;
	transition: color .25s;
}

/* Active step */
.audicom-progress-step.active .step-indicator {
	background: #1565c0;
}
.audicom-progress-step.active .step-label {
	color: #1a1a1a;
	font-weight: 600;
}

/* Completed step */
.audicom-progress-step.completed .step-indicator {
	background: #2e7d32;
	font-size: 15px;
}
.audicom-progress-step.completed .step-label {
	color: #666;
}

/* Warning step */
.audicom-progress-step.warning .step-indicator {
	background: #f59e0b;
	color: #1f2937;
}
.audicom-progress-step.warning .step-label {
	color: #92400e;
	font-weight: 600;
}

/* Clickable steps */
.audicom-progress-step {
	cursor: pointer;
	transition: opacity .2s ease;
}
.audicom-progress-step:hover {
	opacity: .85;
}
.audicom-progress-step:hover .step-indicator {
	box-shadow: 0 0 0 2px rgba(21,101,192,.18);
}

/* Line between steps */
.audicom-progress-line {
	width: 30px;
	height: 2px;
	background: #ddd;
	margin: 0 4px;
	flex-shrink: 0;
}

/* ---------- Steps Container ---------- */
.audicom-step {
	padding: 0 2rem;
}

/* ---------- Section Titles ---------- */
.audicom-section-title {
	font-size: 0.9rem;
	font-weight: 700;
	color: #b07020;
	text-transform: uppercase;
	letter-spacing: .5px;
	margin: 0 0 1.25rem;
	padding-bottom: 0.4rem;
	border-bottom: none;
}
.audicom-section-subtitle {
	font-size: 0.85rem;
	font-weight: 600;
	color: #555;
	margin: 1.25rem 0 0.75rem;
}

/* ---------- Grid ---------- */
.audicom-grid {
	display: grid;
	gap: 1rem;
	margin-bottom: 1rem;
}
.audicom-grid-4 {
	grid-template-columns: repeat(4, 1fr);
}
.audicom-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}
.audicom-grid-2 {
	grid-template-columns: repeat(2, 1fr);
}
.audicom-field-span-2 {
	grid-column: span 2;
}

/* ---------- Fields ---------- */
.audicom-field {
	display: flex;
	flex-direction: column;
}
.audicom-field label {
	font-size: 12px;
	color: #111;
	margin-bottom: 3px;
	font-weight: 700;
}
.audicom-label {
	color: #111;
	font-weight: 700;
}
.audicom-field input[type="text"],
.audicom-field input[type="email"],
.audicom-field input[type="number"],
.audicom-field input[type="date"],
.audicom-field select,
.audicom-field textarea {
	width: 100%;
	padding: 10px 12px;
	min-height: 44px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	color: #333;
	background: #fff;
	transition: border-color .2s;
	outline: none;
	box-sizing: border-box;
}
.audicom-field input::placeholder {
	color: #aaa;
}
.audicom-field input:focus,
.audicom-field select:focus,
.audicom-field textarea:focus {
	border-color: #1565c0;
	box-shadow: 0 0 0 2px rgba(21,101,192,.12);
}

/* Error state */
.audicom-field.has-error input,
.audicom-field.has-error select {
	border-color: #d32f2f;
}
.audicom-error {
	font-size: 11.5px;
	color: #d32f2f;
	min-height: 16px;
	margin-top: 2px;
	display: block;
}

/* ---------- Radio & Checkbox ---------- */
.audicom-label {
	font-size: 13px;
	font-weight: 700;
	color: #111;
	margin-bottom: 6px;
	display: block;
}
.audicom-radio-group {
	display: flex;
	gap: 1.25rem;
	align-items: center;
	flex-wrap: wrap;
	min-height: 44px;
}
.audicom-radio-group label,
.audicom-checkbox-label {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 13.5px;
	color: #444;
	cursor: pointer;
	font-weight: 400;
}

/* Custom radio & checkbox — same as admin */
.audicom-form-wrapper input[type="radio"],
.audicom-form-wrapper input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	min-height: 16px !important;
	border: 1.5px solid #94a3b8;
	background: #fff;
	margin: 0 !important;
	padding: 0 !important;
	position: relative;
	display: inline-block !important;
	vertical-align: middle;
	cursor: pointer;
	flex-shrink: 0;
}
.audicom-form-wrapper input[type="radio"] {
	border-radius: 50%;
}
.audicom-form-wrapper input[type="checkbox"] {
	border-radius: 4px;
}
.audicom-form-wrapper input[type="radio"]:checked::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: #1565c0;
}
.audicom-form-wrapper input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid #1565c0;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* ---------- Photo Upload ---------- */
.audicom-field-upload-photo {
	display: flex;
	align-items: flex-start;
	gap: 6px;
}
.audicom-photo-remove {
	display: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: none;
	background: #d32f2f;
	color: #fff;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0;
	margin-top: 2px;
}
.audicom-photo-remove:hover {
	background: #b71c1c;
}
.audicom-photo-upload {
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.audicom-photo-upload input[type="file"] {
	display: none;
}
.audicom-photo-preview {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 90px;
	height: 90px;
	border: 2px dashed #ccc;
	border-radius: 6px;
	color: #aaa;
	font-size: 12px;
	gap: 4px;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	transition: border-color .2s;
}
.audicom-photo-preview:hover {
	border-color: #1565c0;
	color: #1565c0;
}
.audicom-photo-preview.has-image {
	border-style: solid;
	border-color: #1565c0;
}
.audicom-photo-preview.has-image svg,
.audicom-photo-preview.has-image span {
	display: none;
}

/* ---------- File Upload ---------- */
.audicom-upload-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	margin-bottom: 6px;
}
.audicom-field input[type="file"] {
	font-size: 13px;
	color: #555;
}
.audicom-file-name {
	font-size: 12px;
	color: #1565c0;
	margin-top: 2px;
}

/* ---------- Declaration Boxes ---------- */
.audicom-declaration-box {
	background: #fafafa;
	border: 1px solid #e8e8e8;
	border-radius: 6px;
	padding: 1.25rem;
	margin-bottom: 1rem;
}
.audicom-declaration-box p {
	font-size: 13px;
	color: #444;
	line-height: 1.65;
	margin: 0 0 0.75rem;
}
.audicom-declaration-box .audicom-checkbox-label {
	font-weight: 500;
}

/* ---------- Navigation Buttons ---------- */
.audicom-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid #eee;
}

.audicom-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 10px 28px;
	font-size: 13.5px;
	font-weight: 700;
	border-radius: 4px;
	cursor: pointer;
	transition: background .2s, opacity .2s;
	text-transform: uppercase;
	letter-spacing: .4px;
	border: none;
	outline: none;
}
.audicom-btn-back {
	background: #fff;
	color: #777;
	border: 1px solid #ddd;
}
.audicom-btn-back:hover {
	background: #f5f5f5;
	color: #555;
}
.audicom-btn-next,
.audicom-btn-submit {
	background: #1565c0;
	color: #fff;
}
.audicom-btn-next:hover,
.audicom-btn-submit:hover {
	background: #0d47a1;
}
.audicom-btn-submit:disabled {
	background: #bbb;
	cursor: not-allowed;
}
.audicom-btn.is-loading {
	opacity: .7;
	pointer-events: none;
}

/* ---------- Success ---------- */
.audicom-success {
	text-align: center;
	padding: 4rem 2rem;
}
.audicom-success h2 {
	color: #2e7d32;
	font-size: 1.5rem;
	margin: 1rem 0 0.5rem;
}
.audicom-success p {
	color: #666;
	font-size: 15px;
}

/* ---------- Required marker & empty label ---------- */
.audicom-form-wrapper .audicom-required-label::after {
	content: " *";
	color: #c62828;
	font-weight: 700;
}
.audicom-form-wrapper .audicom-empty-label {
	visibility: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.audicom-form-wrapper {
		border-radius: 0;
		box-shadow: none;
	}
	.audicom-form-header h1 {
		font-size: 1.15rem;
	}
	.audicom-progress-bar {
		padding: 0.5rem 1rem 1rem;
		gap: 2px;
	}
	.audicom-progress-step .step-label {
		display: none;
	}
	.audicom-progress-line {
		width: 16px;
	}
	.audicom-step {
		padding: 0 1rem;
	}
	.audicom-grid-4,
	.audicom-grid-3,
	.audicom-grid-2 {
		grid-template-columns: 1fr;
	}
	.audicom-field-span-2 {
		grid-column: span 1;
	}
	.audicom-nav {
		flex-direction: column-reverse;
		gap: 0.75rem;
	}
	.audicom-btn {
		width: 100%;
		justify-content: center;
	}
}

@media (min-width: 769px) and (max-width: 960px) {
	.audicom-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}
