@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* Color Variables and Typography Tokens */
:root {
	--ogx-primary: #ff2d75;
	--ogx-primary-hover: #e01b5c;
	--ogx-primary-rgb: 255, 45, 117;
	--ogx-bg-gradient: radial-gradient(circle at 50% 50%, rgba(255, 45, 117, 0.02) 0%, rgba(255, 250, 251, 1) 100%);
	--ogx-card-bg: #ffffff;
	--ogx-border-light: rgba(255, 45, 117, 0.15);
	--ogx-border-focus: #ff2d75;
	--ogx-text-main: #1e1b1c;
	--ogx-text-muted: #6e6466;
	--ogx-shadow-soft: 0 8px 30px rgba(255, 45, 117, 0.03);
	--ogx-shadow-focus: 0 0 0 3px rgba(255, 45, 117, 0.12);
	--ogx-transition-speed: 0.25s;
}

/* Container Style */
.ogx-form-container {
	color: var(--ogx-text-main);
	max-width: 500px; /* Compact width */
	margin: 1.5rem auto;
	padding: 2rem 1.75rem; /* Tighter padding */
	background: var(--ogx-card-bg);
	background-image: var(--ogx-bg-gradient);
	border-radius: 20px;
	box-shadow: var(--ogx-shadow-soft);
	border: 1px solid rgba(255, 45, 117, 0.05);
	box-sizing: border-box;
	position: relative;
}

.ogx-form-container * {
	box-sizing: border-box;
}

/* Form Groups & Dividers 
.ogx-form-section-group {
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(255, 45, 117, 0.05);
}
*/

.ogx-form-section-group:last-of-type {
	margin-bottom: 1rem;
	padding-bottom: 0;
	border-bottom: none;
}

/* Field Labels (Questions) - Tighter & Smaller */
.ogx-field-label {
	
	font-size: 12px; /* Reduced size */
	line-height: 1.35;
	font-weight: 600;
	color: var(--ogx-text-main);
	margin-top: 0.15rem;
	margin-bottom: 0.65rem;
	display: block;
}

/* Inputs styling (matches image mockup, but compact) */
.ogx-input-group {
	position: relative;
	margin-bottom: 0.75rem;
	width: 100%;
}

.ogx-input-group input[type="text"],
.ogx-input-group input[type="email"],
.ogx-input-group input[type="tel"],
.ogx-input-group input[type="number"],
.ogx-input-group textarea {
	width: 100%;
	padding: 0.65rem 1rem 0.65rem 2.65rem; /* Vertical padding 0.65rem */

	font-size: 12px;
	color: var(--ogx-text-main);
	background-color: var(--ogx-card-bg);
	border: 1px solid var(--ogx-border-light);
	border-radius: 10px; /* Rounded corners */
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 1px 4px rgba(255, 45, 117, 0.003);
}

/* No icon override */
.ogx-input-group.no-icon {
	margin-bottom: 0.4rem;
}

.ogx-input-group.no-icon input,
.ogx-input-group.no-icon textarea {
	padding-left: 1rem !important;
}

.ogx-input-group textarea {
	resize: vertical;
	min-height: 90px;
	border-radius: 10px !important;
}

/* Icon Positioner */
.ogx-icon-wrapper {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ogx-primary);
	display: flex;
	align-items: center;
	pointer-events: none;
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

.ogx-icon-wrapper svg {
	width: 16px;
	height: 16px;
}

.ogx-input-group input:focus,
.ogx-input-group textarea:focus {
	border-color: var(--ogx-border-focus);
	box-shadow: var(--ogx-shadow-focus);
}

.ogx-input-group input:focus + .ogx-icon-wrapper {
	opacity: 1;
}

/* Two-column layout for Weight inputs */
.ogx-row-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	width: 100%;
}

/* Custom error message */
.ogx-error-msg {
	color: #ef4444;
	font-size: 12px;;
	margin-top: 0.25rem;
	margin-left: 0.25rem;
	display: none;
	font-weight: 400;
}

.ogx-input-group.has-error input,
.ogx-input-group.has-error textarea,
.ogx-input-group.has-error select {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.ogx-input-group.has-error .ogx-error-msg {
	display: block;
}

/* Selection Errors */
.ogx-radio-simple-group.has-error .select-error {
	display: block;
	text-align: left;
	margin-top: 0.25rem;
	width: 100%;
}

/* Submit Action Button Wrapper */
.ogx-submit-wrapper {
	display: flex;
	justify-content: center;
	margin-top: 1.5rem;
}

/* Buttons (CTA Style matching image mockup) */
.ogx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 2.5rem;
	background: var(--ogx-primary);
	border: none;
	border-radius: 50px; /* Pill shaped button */
	color: #ffffff;

	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background var(--ogx-transition-speed) ease, box-shadow var(--ogx-transition-speed) ease;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(255, 45, 117, 0.18);
}

.ogx-btn svg {
	margin-left: 8px;
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.ogx-btn:hover {
	background: var(--ogx-primary-hover);
	box-shadow: 0 6px 16px rgba(255, 45, 117, 0.25);
}

.ogx-btn:hover svg {
	transform: translateX(4px);
}

.ogx-btn:active {
	transform: scale(0.98);
}

/* Select Dropdown Styling (Strict Override of default browser dropdown styling) */
.ogx-form-container select.ogx-select,
.ogx-form select {
	width: 100% !important;
	padding: 0.65rem 2.25rem 0.65rem 1rem !important; /* Space-saving height */
	
	font-size: 12px !important;
	color: var(--ogx-text-main) !important;
	background-color: var(--ogx-card-bg) !important;
	border: 1px solid var(--ogx-border-light) !important;
	border-radius: 10px !important; /* Matches input rounded corners */
	outline: none !important;
	box-shadow: 0 1px 4px rgba(255, 45, 117, 0.003) !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
	cursor: pointer !important;
	
	/* Hide browser defaults */
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	
	/* Custom pink drop indicator */
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff2d75' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
	background-repeat: no-repeat !important;
	background-position: right 1rem center !important;
	background-size: 1.1rem !important;
}

.ogx-form-container select.ogx-select:focus,
.ogx-form select:focus {
	border-color: var(--ogx-border-focus) !important;
	box-shadow: var(--ogx-shadow-focus) !important;
}

/* Custom styled simple radio group */
.ogx-radio-simple-group {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

.ogx-radio-option {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	
	font-size: 12px;
	color: var(--ogx-text-main);
	position: relative;
	user-select: none;
}

/* Hide native circular radio button completely */
.ogx-radio-option input[type="radio"] {
	position: absolute !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	pointer-events: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

/* Styled outer circle ring */
.ogx-radio-circle {
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--ogx-border-light);
	border-radius: 50%;
	margin-right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ogx-card-bg);
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
	flex-shrink: 0;
}

.ogx-radio-option:hover .ogx-radio-circle {
	border-color: var(--ogx-primary);
	background-color: rgba(255, 45, 117, 0.02);
}

/* Checked state of outer ring */
.ogx-radio-option input[type="radio"]:checked + .ogx-radio-circle {
	border-color: var(--ogx-primary);
	box-shadow: 0 0 0 3px rgba(255, 45, 117, 0.12);
}

/* Custom dot inside outer ring */
.ogx-radio-option input[type="radio"]:checked + .ogx-radio-circle::after {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ogx-primary);
	display: block;
}

.ogx-radio-text {
	line-height: 1;
	font-weight: 400;
}

/* Hidden elements with animations */
.ogx-other-input-wrapper {
	margin-top: 0.5rem;
	margin-bottom: 0.4rem;
	display: none;
}

/* Form Response Message (Ajax Output) */
.ogx-form-response-msg {
	margin-top: 1rem;
	padding: 0.65rem 1rem;
	border-radius: 8px;
	font-size: 0.9rem;
	display: none;
	text-align: center;
}

.ogx-form-response-msg.error {
	display: block;
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fee2e2;
}

/* Spinner for Loading State */
.btn-spinner {
	margin-left: 10px;
	display: inline-flex;
	align-items: center;
}

.spinner-svg {
	animation: rotate 2s linear infinite;
	width: 16px;
	height: 16px;
}

.spinner-svg .path {
	stroke: #ffffff;
	stroke-linecap: round;
	animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
	100% {
		transform: rotate(360deg);
	}
}

@keyframes dash {
	0% {
		stroke-dasharray: 1, 150;
		stroke-dashoffset: 0;
	}
	50% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -35;
	}
	100% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -124;
	}
}

/* Success screen */
.ogx-success-screen {
	text-align: center;
	padding: 2rem 1rem;
	animation: fadeIn 0.5s ease forwards;
}

.ogx-success-icon {
	color: #10b981;
	margin-bottom: 1rem;
	display: inline-flex;
	background: #ecfdf5;
	padding: 1.25rem;
	border-radius: 50%;
}

.ogx-success-title {
	
	font-size: 12px;
	font-weight: 600;
	margin: 0 0 0.75rem 0;
	color: var(--ogx-text-main);
}

.ogx-success-message {
	font-size: 12px;
	color: var(--ogx-text-muted);
	line-height: 1.5;
	margin-bottom: 1.5rem;
}

.ogx-redirect-notice {
	font-size: 0.85rem;
	color: var(--ogx-text-muted);
	background: rgba(255, 45, 117, 0.03);
	padding: 0.5rem 1.15rem;
	border-radius: 50px;
	display: inline-block;
}

.redirect-countdown {
	font-weight: 600;
	color: var(--ogx-primary);
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* RESPONSIVE DESIGN */
@media (max-width: 600px) {
	.ogx-form-container {
		margin: 1rem;
		padding: 1.5rem 1.15rem;
		border-radius: 16px;
	}

	.ogx-field-label {
		font-size: 12px;
	}

	.ogx-btn {
		font-size: 1.1rem;
		padding: 0.75rem 2rem;
		width: 100%;
	}

	.ogx-input-group input[type="text"],
	.ogx-input-group input[type="email"],
	.ogx-input-group input[type="tel"],
	.ogx-input-group input[type="number"],
	.ogx-input-group textarea {
		padding: 0.65rem 1rem 0.65rem 2.5rem;
		font-size: 12px;
	}
	
	.ogx-input-group.no-icon input,
	.ogx-input-group.no-icon textarea {
		padding-left: 1rem !important;
	}

	.ogx-icon-wrapper {
		left: 0.9rem;
	}

	.ogx-radio-simple span {
		padding: 0.4rem 1rem;
		font-size: 12px;
	}

	.ogx-row-inputs {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}
}
