/**
 * HJ Music - Styles formulaire de contact
 */

/* Layout 2 colonnes */
.hj-contact-layout {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 3rem;
	align-items: start;
}

@media (max-width: 900px) {
	.hj-contact-layout {
		grid-template-columns: 1fr;
	}
}

/* Colonne infos */
.hj-contact-info {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.hj-contact-card {
	display: flex;
	gap: 1rem;
	padding: 1.25rem;
	background: var(--hj-bg-card);
	border: 1px solid var(--hj-border);
	border-radius: var(--hj-radius);
}

.hj-contact-card-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--hj-accent);
	color: white;
	border-radius: 50%;
}

.hj-contact-card-content h3 {
	margin: 0 0 0.25rem;
	font-size: 0.875rem;
	color: var(--hj-text-muted);
	font-weight: 500;
}

.hj-contact-card-content p,
.hj-contact-card-content a {
	margin: 0;
	font-size: 1rem;
	color: var(--hj-text);
}

.hj-contact-card-content a:hover {
	color: var(--hj-accent);
}

/* Réseaux sociaux */
.hj-contact-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.25rem;
}

.hj-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--hj-bg);
	border: 1px solid var(--hj-border);
	color: var(--hj-text);
	transition: var(--hj-transition);
}

.hj-social-link:hover {
	background: var(--hj-accent);
	border-color: var(--hj-accent);
	color: white;
}

/* Contenu extra */
.hj-contact-extra {
	padding: 1.25rem;
	background: var(--hj-bg-card);
	border: 1px solid var(--hj-border);
	border-radius: var(--hj-radius);
}

/* Formulaire */
.hj-contact-form-wrapper {
	padding: 2rem;
	background: var(--hj-bg-card);
	border: 1px solid var(--hj-border);
	border-radius: var(--hj-radius);
}

.hj-contact-form-title {
	margin: 0 0 1.5rem;
	font-size: 1.5rem;
}

.hj-form-row {
	margin-bottom: 1.25rem;
}

.hj-form-row-half {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 600px) {
	.hj-form-row-half {
		grid-template-columns: 1fr;
	}
}

.hj-form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.hj-form-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--hj-text);
}

.hj-form-input,
.hj-form-select,
.hj-form-textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	font-family: inherit;
	background: var(--hj-bg);
	border: 1px solid var(--hj-border);
	border-radius: var(--hj-radius);
	color: var(--hj-text);
	transition: var(--hj-transition);
}

.hj-form-input:focus,
.hj-form-select:focus,
.hj-form-textarea:focus {
	outline: none;
	border-color: var(--hj-accent);
	box-shadow: 0 0 0 3px rgba(var(--hj-accent-rgb, 233, 69, 96), 0.15);
}

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

.hj-form-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
	cursor: pointer;
}

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

/* Challenge anti-spam */
.hj-form-challenge {
	padding: 1rem;
	background: rgba(var(--hj-accent-rgb, 233, 69, 96), 0.05);
	border: 1px dashed var(--hj-border);
	border-radius: var(--hj-radius);
}

.hj-form-challenge .hj-form-label {
	color: var(--hj-text-muted);
}

/* Bouton submit */
.hj-btn-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	background: var(--hj-accent);
	color: white;
	border: none;
	border-radius: var(--hj-radius);
	cursor: pointer;
	transition: var(--hj-transition);
	min-width: 180px;
}

.hj-btn-submit:hover:not(:disabled) {
	filter: brightness(1.1);
	transform: translateY(-1px);
}

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

.hj-btn-submit.is-loading .hj-btn-text {
	display: none;
}

.hj-btn-submit .hj-btn-loading {
	display: none;
}

.hj-btn-submit.is-loading .hj-btn-loading {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.hj-spinner {
	width: 18px;
	height: 18px;
	animation: hj-spin 1s linear infinite;
}

@keyframes hj-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Messages de feedback */
.hj-form-message {
	display: none;
	padding: 1rem;
	border-radius: var(--hj-radius);
	margin-top: 1rem;
}

.hj-form-message.is-visible {
	display: block;
}

.hj-form-message.is-success {
	background: rgba(16, 185, 129, 0.1);
	border: 1px solid rgba(16, 185, 129, 0.3);
	color: #10b981;
}

.hj-form-message.is-error {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
	color: #ef4444;
}

select option {
    color: #171721;
}

[data-theme="dark"] .hj-form-message.is-success {
	color: #34d399;
}

[data-theme="dark"] .hj-form-message.is-error {
	color: #f87171;
}

/* HONEYPOT - Champ invisible pour les humains, visible pour les bots */
.hj-hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Email protégé */
.hj-email-placeholder {
	font-style: italic;
	color: var(--hj-text-muted);
}
