/**
 * Formularze kontaktowe (CF7, WPForms) + układ strony „Kontakt - B.S.G”
 * Paleta: granat #0c2340 · miedź · mint · Outfit + Plus Jakarta Sans
 */

:root {
	--cf-bsg-navy: #0c2340;
	--cf-bsg-navy-deep: #061018;
	--cf-bsg-mint: #7dd3c0;
	--cf-bsg-amber: #d4892a;
	--cf-bsg-amber-light: #e8a04a;
	--cf-bsg-font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
	--cf-bsg-font-display: "Outfit", system-ui, -apple-system, sans-serif;
	--cf-bsg-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--cf-bsg-line: rgba(255, 255, 255, 0.1);
	--cf-bsg-ink: rgba(255, 255, 255, 0.9);
	--cf-bsg-mut: rgba(255, 255, 255, 0.62);
}

/* ========== Kontener formularza ========== */
.wpforms-container,
.wpcf7,
form[class*="contact"]:not(.admin),
form[class*="wpcf7-form"] {
	font-family: var(--cf-bsg-font-body) !important;
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
	padding: clamp(1.5rem, 4vw, 2.25rem) !important;
	border-radius: 18px !important;
	border: 1px solid var(--cf-bsg-line) !important;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
	backdrop-filter: blur(14px);
	position: relative;
}

.wpforms-container::before,
.wpcf7::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	border-radius: 18px 18px 0 0;
	background: linear-gradient(90deg, transparent, rgba(125, 211, 192, 0.5), var(--cf-bsg-amber-light), transparent);
	opacity: 0.85;
	pointer-events: none;
}

/* ========== Etykiety ========== */
.wpforms-field-label,
.wpcf7 label,
form[class*="wpcf7-form"] label {
	color: var(--cf-bsg-ink) !important;
	font-family: var(--cf-bsg-font-display) !important;
	font-weight: 600 !important;
	font-size: 0.875rem !important;
	margin-bottom: 0.45rem !important;
	display: block !important;
	letter-spacing: 0.02em;
	text-shadow: none;
}

.wpforms-required-label,
.wpcf7 .wpcf7-form-control-wrap abbr,
abbr[title="wymagane"] {
	color: var(--cf-bsg-amber-light) !important;
	font-weight: 700;
}

/* ========== Pola ========== */
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field input[type="url"],
.wpforms-field input[type="number"],
.wpforms-field select,
.wpforms-field textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea,
form[class*="wpcf7-form"] input[type="text"],
form[class*="wpcf7-form"] input[type="email"],
form[class*="wpcf7-form"] input[type="tel"],
form[class*="wpcf7-form"] textarea,
form[class*="wpcf7-form"] select {
	background: rgba(6, 16, 24, 0.45) !important;
	border: 1px solid var(--cf-bsg-line) !important;
	color: #fff !important;
	border-radius: 12px !important;
	padding: 0.85rem 1rem !important;
	font-size: 1rem !important;
	font-weight: 500 !important;
	font-family: var(--cf-bsg-font-body) !important;
	transition: border-color 0.25s var(--cf-bsg-ease), box-shadow 0.25s var(--cf-bsg-ease), background 0.25s !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.wpforms-field input::placeholder,
.wpforms-field textarea::placeholder,
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: rgba(255, 255, 255, 0.42) !important;
	font-weight: 400;
}

.wpforms-field input:hover,
.wpforms-field select:hover,
.wpforms-field textarea:hover,
.wpcf7 input:hover,
.wpcf7 select:hover,
.wpcf7 textarea:hover {
	border-color: rgba(255, 255, 255, 0.18) !important;
	background: rgba(6, 16, 24, 0.55) !important;
}

.wpforms-field input:focus,
.wpforms-field select:focus,
.wpforms-field textarea:focus,
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	background: rgba(6, 16, 24, 0.65) !important;
	border-color: rgba(125, 211, 192, 0.45) !important;
	box-shadow: 0 0 0 3px rgba(125, 211, 192, 0.12) !important;
	outline: none !important;
	color: #fff !important;
}

.wpforms-field textarea,
.wpcf7 textarea {
	min-height: 148px !important;
	resize: vertical !important;
	line-height: 1.55 !important;
}

.wpforms-field select,
.wpcf7 select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%237dd3c0' d='M6 8L2 4h8z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 1rem center !important;
	padding-right: 2.75rem !important;
}

.wpforms-field select option,
.wpcf7 select option {
	background: var(--cf-bsg-navy-deep) !important;
	color: #fff !important;
}

/* ========== Checkbox / radio ========== */
.wpforms-field input[type="checkbox"],
.wpforms-field input[type="radio"],
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
	width: 1.15rem !important;
	height: 1.15rem !important;
	margin-right: 0.5rem !important;
	vertical-align: middle;
	accent-color: var(--cf-bsg-amber) !important;
}

.wpforms-field-checkbox label,
.wpforms-field-radio label,
.wpcf7-list-item-label {
	color: rgba(255, 255, 255, 0.88) !important;
	font-weight: 500 !important;
	font-size: 0.9375rem !important;
	cursor: pointer;
}

/* ========== Przycisk wyślij ========== */
.wpforms-submit,
.wpcf7 input[type="submit"],
form[class*="wpcf7-form"] input[type="submit"],
form input[type="submit"]:not(.wp-block-button__link),
form button[type="submit"]:not(.wp-block-button__link) {
	font-family: var(--cf-bsg-font-display) !important;
	background: linear-gradient(135deg, var(--cf-bsg-amber-light) 0%, var(--cf-bsg-amber) 45%, #b86f1c 100%) !important;
	color: #0a1620 !important;
	border: 2px solid rgba(255, 255, 255, 0.12) !important;
	padding: 0.95rem 2rem !important;
	border-radius: 12px !important;
	font-weight: 700 !important;
	font-size: 0.95rem !important;
	letter-spacing: 0.04em;
	cursor: pointer !important;
	transition: transform 0.25s var(--cf-bsg-ease), box-shadow 0.25s var(--cf-bsg-ease), filter 0.2s !important;
	box-shadow: 0 6px 22px rgba(212, 137, 42, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
	text-transform: none;
	position: relative;
	overflow: visible;
}

.wpforms-submit:hover,
.wpcf7 input[type="submit"]:hover,
form[class*="wpcf7-form"] input[type="submit"]:hover {
	filter: brightness(1.05);
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(212, 137, 42, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
	color: #0a1620 !important;
}

.wpforms-submit:active,
.wpcf7 input[type="submit"]:active {
	transform: translateY(0);
}

/* Usunięte: pseudo ::before pulse / nieskończona animacja */

/* ========== Komunikaty ========== */
.wpforms-field-description,
.wpforms-field-sublabel {
	color: var(--cf-bsg-mut) !important;
	font-size: 0.8125rem !important;
	margin-top: 0.35rem !important;
}

.wpcf7 .wpcf7-not-valid-tip {
	color: #f0a4a4 !important;
	font-size: 0.8125rem !important;
	margin-top: 0.35rem !important;
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
}

.wpforms-error,
.wpcf7-not-valid-tip,
.wpcf7-validation-errors,
.wpcf7 form.invalid .wpcf7-response-output {
	background: rgba(220, 80, 80, 0.12) !important;
	border: 1px solid rgba(220, 80, 80, 0.35) !important;
	color: #fecaca !important;
	padding: 0.75rem 1rem !important;
	border-radius: 12px !important;
	margin-top: 0.75rem !important;
	font-weight: 600;
	font-size: 0.875rem !important;
}

.wpforms-confirmation-container,
.wpcf7-mail-sent-ok,
.wpcf7 form.sent .wpcf7-response-output {
	background: rgba(125, 211, 192, 0.1) !important;
	border: 1px solid rgba(125, 211, 192, 0.35) !important;
	color: #b8f0e4 !important;
	padding: 1rem 1.15rem !important;
	border-radius: 14px !important;
	font-weight: 600 !important;
	font-size: 0.9375rem !important;
	text-align: center;
	font-family: var(--cf-bsg-font-display);
}

/* ========== Tytuł formularza (jeśli w treści) ========== */
.wpforms-title,
.wpcf7 h3,
form h3 {
	color: #fff !important;
	font-family: var(--cf-bsg-font-display) !important;
	font-size: clamp(1.35rem, 2vw + 0.75rem, 1.65rem) !important;
	font-weight: 800 !important;
	margin-bottom: 0.5rem !important;
	text-align: left;
	letter-spacing: -0.02em;
}

.wpforms-description,
form p.form-description {
	color: var(--cf-bsg-mut) !important;
	font-size: 0.9375rem !important;
	text-align: left;
	margin-bottom: 1.25rem !important;
	line-height: 1.55;
}

/* ========== RODO / checkbox blok ========== */
.wpforms-field-gdpr-checkbox,
.wpforms-field-checkbox {
	background: rgba(125, 211, 192, 0.06);
	padding: 1rem 1.1rem;
	border-radius: 12px;
	border: 1px solid rgba(125, 211, 192, 0.18);
	margin-top: 1rem;
}

.wpforms-field-gdpr-checkbox label,
.wpforms-field-checkbox label {
	color: rgba(255, 255, 255, 0.9) !important;
	font-size: 0.875rem !important;
	line-height: 1.55;
}

/* ========== Spinner ========== */
.wpforms-submit-container .wpforms-submit-spinner,
.wpcf7-spinner {
	border: 2px solid rgba(255, 255, 255, 0.15) !important;
	border-top-color: var(--cf-bsg-amber) !important;
	opacity: 1 !important;
}

/* ========== Odstępy pól ========== */
.wpforms-field,
.wpcf7-form-control-wrap {
	margin-bottom: 0.15rem;
}

.wpcf7-form p {
	margin-bottom: 1rem;
}

.wpforms-field {
	margin-bottom: 1.15rem !important;
}

/* ========== Autofill ========== */
.wpforms-field input:-webkit-autofill,
.wpforms-field input:-webkit-autofill:hover,
.wpforms-field input:-webkit-autofill:focus,
.wpcf7 input:-webkit-autofill,
.wpcf7 input:-webkit-autofill:focus {
	-webkit-text-fill-color: #fff !important;
	-webkit-box-shadow: 0 0 0 1000px rgba(6, 16, 24, 0.85) inset !important;
	transition: background-color 5000s ease-in-out 0s;
}

/* ========== Usunięte: focus-within blur glow + label slide + submit pulse ========== */

/* ========== Strona Kontakt (szablon page-contact.php, bez Elementora) ========== */
.contact-page .contact-hero {
	background: linear-gradient(145deg, var(--cf-bsg-navy-deep) 0%, #0f2844 50%, var(--cf-bsg-navy) 100%);
	padding: clamp(2.5rem, 6vw, 4rem) 1.25rem;
	text-align: center;
	border-bottom: 1px solid var(--cf-bsg-line);
}

.contact-page .contact-hero .page-title {
	font-family: var(--cf-bsg-font-display);
	font-weight: 800;
	font-size: clamp(1.85rem, 4vw + 0.5rem, 2.65rem);
	color: #fff;
	margin: 0 0 0.5rem;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.contact-page .contact-hero .page-subtitle {
	font-size: 1.05rem;
	color: var(--cf-bsg-mut);
	margin: 0;
	font-weight: 500;
}

.contact-page .contact-content {
	padding: clamp(2rem, 5vw, 3rem) 0 2rem;
	background: linear-gradient(180deg, rgba(6, 16, 24, 0.5) 0%, transparent 40%);
}

.contact-page .contact-content .container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 clamp(16px, 3vw, 28px);
}

.contact-page .contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: start;
}

.contact-page .contact-info-box {
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
	border: 1px solid var(--cf-bsg-line);
	border-radius: 18px;
	padding: clamp(1.35rem, 3vw, 1.85rem);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.contact-page .contact-info-box h2,
.contact-page .contact-form-box h2 {
	font-family: var(--cf-bsg-font-display);
	font-size: 1.2rem;
	font-weight: 800;
	color: #fff;
	margin: 0 0 1.25rem;
	letter-spacing: -0.02em;
	padding-bottom: 0.65rem;
	border-bottom: 2px solid transparent;
	border-image: linear-gradient(90deg, var(--cf-bsg-amber), var(--cf-bsg-mint)) 1;
}

.contact-page .contact-item {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	padding: 0.85rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.5;
}

.contact-page .contact-item:last-of-type {
	border-bottom: none;
}

.contact-page .contact-icon {
	font-size: 1.25rem;
	line-height: 1;
	flex-shrink: 0;
	opacity: 0.9;
}

.contact-page .contact-item strong {
	color: var(--cf-bsg-mint);
	font-weight: 600;
}

.contact-page .contact-form-box h2 {
	border-image: none;
	border-bottom: 2px solid rgba(125, 211, 192, 0.25);
}

.contact-page .contact-form-placeholder {
	text-align: center;
	padding: 2rem 1rem;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0;
}

.contact-page .contact-form-placeholder code {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.35rem 0.65rem;
	background: rgba(0, 0, 0, 0.25);
	border-radius: 8px;
	color: var(--cf-bsg-mint);
	font-size: 0.85rem;
}

.contact-page .contact-map {
	padding: 2rem 0 3rem;
}

.contact-page .contact-map h2 {
	font-family: var(--cf-bsg-font-display);
	text-align: center;
	font-size: 1.25rem;
	font-weight: 800;
	color: #fff;
	margin-bottom: 1rem;
}

.contact-page .map-placeholder {
	background: rgba(255, 255, 255, 0.04);
	border: 1px dashed rgba(125, 211, 192, 0.25);
	border-radius: 16px;
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--cf-bsg-mut);
	font-size: 0.9375rem;
}

@media (max-width: 900px) {
	.contact-page .contact-grid {
		grid-template-columns: 1fr;
	}

	.wpforms-container,
	.wpcf7 {
		padding: 1.35rem 1.15rem !important;
	}
}
