/**
 * FC Gift Cards - Frontend Styling
 *
 * @package FC_Gift_Cards
 * @version 1.0.0
 */

:root {
	--fc-gc-cobre: #D69D7B;
	--fc-gc-cobre-hover: #C58C6A;
	--fc-gc-terracota: #FAECE3;
	--fc-gc-terracota-border: #E8D4C8;
	--fc-gc-negro: #252532;
	--fc-gc-blanco: #FFFFFF;
	--fc-gc-texto-muted: #5C5C6B;
	--fc-gc-bg-card: #FFFFFF;
	--fc-gc-radius: 16px;
	--fc-gc-radius-sm: 8px;
	--fc-gc-shadow: 0 10px 30px rgba(37, 37, 50, 0.06);
}

.fc-gift-cards-container {
	width: 100%;
	max-width: 860px;
	margin: 0 auto;
	font-family: inherit;
	color: var(--fc-gc-negro);
}

/* Alerts */
.fc-gc-alert {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 1rem 1.25rem;
	border-radius: var(--fc-gc-radius-sm);
	margin-bottom: 2rem;
	font-size: 0.95rem;
	line-height: 1.5;
}

.fc-gc-alert-error {
	background-color: #FDF2F2;
	border: 1px solid #F8B4B4;
	color: #9B1C1C;
}

.fc-gc-alert-success {
	background-color: #F3FAF7;
	border: 1px solid #84E1BC;
	color: #0E9F6E;
}

/* Form Cards */
.fc-gc-form {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.fc-gc-step-card {
	background: var(--fc-gc-bg-card);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--fc-gc-radius);
	padding: 2.25rem 2.5rem;
	box-shadow: var(--fc-gc-shadow);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fc-gc-step-card:focus-within {
	border-color: var(--fc-gc-cobre);
	box-shadow: 0 12px 35px rgba(214, 157, 123, 0.12);
}

.fc-gc-step-header {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	margin-bottom: 1.75rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	padding-bottom: 1.25rem;
}

.fc-gc-step-num {
	width: 38px;
	height: 38px;
	min-width: 38px;
	border-radius: 50%;
	background: var(--fc-gc-terracota);
	color: var(--fc-gc-cobre);
	font-weight: 700;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--fc-gc-terracota-border);
}

.fc-gc-step-title {
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--fc-gc-negro);
	margin: 0 0 0.25rem 0;
	line-height: 1.3;
}

.fc-gc-step-subtitle {
	font-size: 0.92rem;
	color: var(--fc-gc-texto-muted);
	margin: 0;
	line-height: 1.4;
}

/* Fields & Layout */
.fc-gc-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.fc-gc-field-group {
	margin-bottom: 1.25rem;
	display: flex;
	flex-direction: column;
}

.fc-gc-field-group:last-child {
	margin-bottom: 0;
}

.fc-gc-label {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--fc-gc-negro);
	margin-bottom: 0.5rem;
	display: block;
}

.fc-gc-required {
	color: var(--fc-gc-cobre);
}

.fc-gc-select,
.fc-gc-input,
.fc-gc-textarea {
	width: 100%;
	min-height: 48px; /* Touch target >= 44px */
	padding: 0.75rem 1rem;
	border: 1.5px solid #DDD6D0;
	border-radius: var(--fc-gc-radius-sm);
	font-size: 1rem;
	font-family: inherit;
	color: var(--fc-gc-negro);
	background-color: #FCFBF9;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.fc-gc-textarea {
	min-height: 90px;
	resize: vertical;
}

.fc-gc-select:focus,
.fc-gc-input:focus,
.fc-gc-textarea:focus {
	outline: none;
	border-color: var(--fc-gc-cobre);
	background-color: #FFFFFF;
	box-shadow: 0 0 0 3px rgba(214, 157, 123, 0.2);
}

.fc-gc-char-counter {
	font-size: 0.8rem;
	color: var(--fc-gc-texto-muted);
	text-align: right;
	margin-top: 4px;
}

/* Dynamic Live Treatment Preview */
.fc-gc-treatment-preview {
	background: linear-gradient(135deg, #FFF9F5 0%, #FAECE3 100%);
	border: 1.5px solid var(--fc-gc-terracota-border);
	border-radius: var(--fc-gc-radius-sm);
	padding: 1.5rem;
	margin-top: 1.5rem;
	position: relative;
	transition: all 0.3s ease;
}

.fc-gc-preview-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
}

.fc-gc-preview-badge {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fc-gc-cobre);
	background: #FFFFFF;
	padding: 4px 10px;
	border-radius: 50px;
	border: 1px solid rgba(214, 157, 123, 0.3);
}

.fc-gc-preview-price-tag {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--fc-gc-negro);
}

.fc-gc-preview-name {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--fc-gc-negro);
	margin: 0 0 0.4rem 0;
}

.fc-gc-preview-duration {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--fc-gc-cobre);
	margin: 0 0 0.75rem 0;
}

.fc-gc-preview-desc {
	font-size: 0.92rem;
	color: var(--fc-gc-texto-muted);
	line-height: 1.5;
	margin: 0;
}

/* Terms Callout */
.fc-gc-terms-callout {
	display: flex;
	gap: 1rem;
	background: #F8F5F2;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--fc-gc-radius-sm);
	padding: 1.25rem;
	margin: 1.5rem 0;
}

.fc-gc-terms-icon {
	font-size: 1.5rem;
	line-height: 1;
}

.fc-gc-terms-content {
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--fc-gc-texto-muted);
}

.fc-gc-terms-content strong {
	color: var(--fc-gc-negro);
	display: block;
	margin-bottom: 2px;
}

.fc-gc-terms-content p {
	margin: 0;
}

/* Submit Footer */
.fc-gc-action-footer {
	text-align: center;
	margin-top: 1.5rem;
}

.fc-gc-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	min-height: 54px; /* Touch target >= 44px */
	background: var(--fc-gc-cobre);
	color: #FFFFFF;
	border: none;
	border-radius: 50px;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0.85rem 2rem;
	transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
	box-shadow: 0 6px 20px rgba(214, 157, 123, 0.35);
}

.fc-gc-submit-btn:hover {
	background: var(--fc-gc-cobre-hover);
	transform: translateY(-1px);
	box-shadow: 0 8px 25px rgba(214, 157, 123, 0.45);
}

.fc-gc-submit-btn:active {
	transform: translateY(0);
}

.fc-gc-btn-arrow {
	font-size: 1.3rem;
	transition: transform 0.2s ease;
}

.fc-gc-submit-btn:hover .fc-gc-btn-arrow {
	transform: translateX(4px);
}

.fc-gc-secure-hint {
	font-size: 0.82rem;
	color: var(--fc-gc-texto-muted);
	margin-top: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
	.fc-gc-step-card {
		padding: 1.5rem 1.25rem;
	}

	.fc-gc-grid-2 {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.fc-gc-step-title {
		font-size: 1.15rem;
	}

	.fc-gc-preview-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.fc-gc-submit-btn {
		font-size: 1rem;
		padding: 0.75rem 1.25rem;
	}
}
