/* Fan Club popup form */

body.qadsia-fcf-open {
	overflow: hidden;
}

.qadsia-fcf,
.qadsia-fcf *,
.qadsia-fcf *::before,
.qadsia-fcf *::after {
	box-sizing: border-box;
}

.qadsia-fcf {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.qadsia-fcf[hidden] {
	display: none !important;
}

.qadsia-fcf__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(4px);
}

.qadsia-fcf__dialog {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: min(92vh, 720px);
	overflow-x: hidden;
	overflow-y: auto;
	background: linear-gradient(180deg, #1a1510 0%, #0f0c08 100%);
	border: 1px solid rgba(201, 146, 42, 0.45);
	border-radius: 12px;
	padding: 28px 24px 24px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
	color: #f5f0e6;
	direction: rtl;
	text-align: right;
}

.qadsia-fcf__close {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(201, 146, 42, 0.35);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.35);
	color: var(--gold-light, #e8c872);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.qadsia-fcf__close:hover {
	background: rgba(201, 146, 42, 0.15);
	border-color: var(--gold-light, #e8c872);
}

.qadsia-fcf__header {
	margin-bottom: 20px;
	padding-left: 40px;
}

.qadsia-fcf__header h2 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 800;
	color: var(--gold-light, #e8c872);
	line-height: 1.35;
}

.qadsia-fcf__header p {
	margin: 0;
	font-size: 13px;
	color: rgba(245, 240, 230, 0.75);
	line-height: 1.5;
}

.qadsia-fcf__form {
	min-width: 0;
}

.qadsia-fcf__field {
	margin-bottom: 16px;
	min-width: 0;
}

.qadsia-fcf__row {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
	min-width: 0;
}

.qadsia-fcf__field--half {
	flex: 1 1 0;
	min-width: 0;
	margin-bottom: 0;
}

.qadsia-fcf__field label,
.qadsia-fcf__label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: rgba(245, 240, 230, 0.9);
}

.qadsia-fcf__field input[type="text"],
.qadsia-fcf__field input[type="tel"],
.qadsia-fcf__field input[type="date"],
.qadsia-fcf__field select {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid rgba(201, 146, 42, 0.35);
	background: rgba(0, 0, 0, 0.35);
	color: #f5f0e6;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s ease;
}

.qadsia-fcf__field input:focus,
.qadsia-fcf__field select:focus {
	outline: none;
	border-color: var(--gold-light, #e8c872);
}

.qadsia-fcf__phone {
	display: flex;
	gap: 8px;
	align-items: stretch;
	min-width: 0;
}

.qadsia-fcf__country {
	position: relative;
	flex: 0 1 46%;
	min-width: 0;
	max-width: 46%;
}

.qadsia-fcf__country-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid rgba(201, 146, 42, 0.35);
	background: rgba(0, 0, 0, 0.35);
	color: #f5f0e6;
	font-size: 13px;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.qadsia-fcf__country-toggle:hover,
.qadsia-fcf__country.is-open .qadsia-fcf__country-toggle {
	border-color: var(--gold-light, #e8c872);
}

.qadsia-fcf__flag {
	display: block;
	width: 24px;
	height: 18px;
	object-fit: cover;
	border-radius: 2px;
	flex-shrink: 0;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.qadsia-fcf__country-dial {
	flex: 1;
	min-width: 0;
	text-align: left;
	font-size: 13px;
	white-space: nowrap;
}

.qadsia-fcf__country-chevron {
	flex-shrink: 0;
	color: var(--gold-light, #e8c872);
	transition: transform 0.2s ease;
}

.qadsia-fcf__country.is-open .qadsia-fcf__country-chevron {
	transform: rotate(180deg);
}

.qadsia-fcf__country-panel {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	left: 0;
	z-index: 10;
	border-radius: 8px;
	border: 1px solid rgba(201, 146, 42, 0.45);
	background: #1a1510;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	overflow: hidden;
}

.qadsia-fcf__country-panel[hidden] {
	display: none;
}

.qadsia-fcf__country-search {
	width: 100%;
	padding: 10px 12px;
	border: none;
	border-bottom: 1px solid rgba(201, 146, 42, 0.25);
	background: rgba(0, 0, 0, 0.35);
	color: #f5f0e6;
	font-size: 13px;
	font-family: inherit;
}

.qadsia-fcf__country-search:focus {
	outline: none;
	border-bottom-color: var(--gold-light, #e8c872);
}

.qadsia-fcf__country-list {
	max-height: 220px;
	overflow-y: auto;
	margin: 0;
	padding: 4px;
	list-style: none;
}

.qadsia-fcf__country-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	transition: background 0.15s ease;
}

.qadsia-fcf__country-option:hover,
.qadsia-fcf__country-option.is-selected {
	background: rgba(201, 146, 42, 0.15);
}

.qadsia-fcf__country-option[hidden] {
	display: none !important;
}

.qadsia-fcf__country-option img {
	display: block;
	width: 20px;
	height: 15px;
	object-fit: cover;
	border-radius: 2px;
	flex-shrink: 0;
}

.qadsia-fcf__country-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.qadsia-fcf__country-option .qadsia-fcf__country-dial {
	flex: 0 0 auto;
	font-size: 12px;
	color: rgba(245, 240, 230, 0.75);
}

.qadsia-fcf__hint {
	margin: 4px 0 0;
	font-size: 11px;
	color: rgba(245, 240, 230, 0.55);
	line-height: 1.4;
}

.qadsia-fcf__hint:empty {
	display: none;
}

.qadsia-fcf__phone input {
	flex: 1 1 0;
	min-width: 0;
	text-align: right;
	direction: rtl;
	unicode-bidi: plaintext;
}

.qadsia-fcf__phone input::placeholder {
	text-align: right;
}

.qadsia-fcf__radios {
	display: flex;
	gap: 8px;
	flex-wrap: nowrap;
}

.qadsia-fcf__radio {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 1 1 0;
	min-width: 0;
	padding: 10px 8px;
	border-radius: 8px;
	border: 1px solid rgba(201, 146, 42, 0.35);
	background: rgba(0, 0, 0, 0.25);
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: border-color 0.2s ease, background 0.2s ease;
	white-space: nowrap;
}

.qadsia-fcf__radio input {
	accent-color: var(--gold-light, #e8c872);
	flex-shrink: 0;
}

.qadsia-fcf__radio:has(input:checked) {
	border-color: var(--gold-light, #e8c872);
	background: rgba(201, 146, 42, 0.12);
}

.qadsia-fcf__date {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
}

.qadsia-fcf__date input[type="date"] {
	padding-left: 40px;
	padding-right: 12px;
	text-align: right;
	direction: rtl;
	color-scheme: dark;
	-webkit-appearance: none;
	appearance: none;
}

.qadsia-fcf__date input[type="date"]::-webkit-calendar-picker-indicator {
	opacity: 0;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.qadsia-fcf__date-btn {
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: var(--gold-light, #e8c872);
	cursor: pointer;
	transition: background 0.2s ease;
}

.qadsia-fcf__date-btn:hover {
	background: rgba(201, 146, 42, 0.15);
}

.qadsia-fcf__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 12px;
	line-height: 1.55;
	color: rgba(245, 240, 230, 0.85);
}

.qadsia-fcf__checkbox input {
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: var(--gold-light, #e8c872);
}

.qadsia-fcf__error {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #ff8a8a;
	min-height: 0;
}

.qadsia-fcf__field--invalid .qadsia-fcf__country-toggle,
.qadsia-fcf__field--invalid input,
.qadsia-fcf__field--invalid select {
	border-color: #ff6b6b;
}

.qadsia-fcf__message {
	margin-bottom: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.45;
}

.qadsia-fcf__message:empty {
	display: none;
}

.qadsia-fcf__message--success {
	background: rgba(46, 160, 67, 0.18);
	border: 1px solid rgba(46, 160, 67, 0.45);
	color: #8fdf9a;
}

.qadsia-fcf__message--error {
	background: rgba(220, 53, 69, 0.15);
	border: 1px solid rgba(220, 53, 69, 0.4);
	color: #ff9a9a;
}

/* Match theme .fans-banner__cta.btn-outline */
.qadsia-fcf__submit.btn-outline.fans-banner__cta {
	display: flex;
	width: 100%;
	margin-top: 4px;
	padding: 10px 28px;
	min-width: 0;
	border-radius: 8px;
	border: 1px solid rgba(201, 146, 42, 0.75);
	color: var(--gold-light, #e8c872);
	font-size: clamp(12px, 1.1vw, 14px);
	font-weight: 700;
	background: transparent;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.qadsia-fcf__submit.btn-outline.fans-banner__cta:hover {
	background: rgba(201, 146, 42, 0.12);
	border-color: var(--gold-light, #e8c872);
}

.qadsia-fcf__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

button.qadsia-fan-club-form-trigger {
	cursor: pointer;
	font-family: inherit;
	background: transparent;
}

@media (max-width: 480px) {
	.qadsia-fcf__dialog {
		padding: 24px 16px 20px;
	}

	.qadsia-fcf__row {
		flex-direction: column;
		gap: 16px;
		margin-bottom: 0;
	}

	.qadsia-fcf__field--half {
		margin-bottom: 16px;
	}

	.qadsia-fcf__phone {
		flex-direction: column;
	}

	.qadsia-fcf__country {
		flex: none;
		max-width: 100%;
		width: 100%;
	}

	.qadsia-fcf__radios {
		flex-wrap: wrap;
	}
}
