@font-face {
    font-family: 'Banana Grotesk';
    src: url('../fonts/Banana%20Grotesk/mnkybananagrotesk-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Banana Grotesk';
    src: url('../fonts/Banana%20Grotesk/mnkybananagrotesk-light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Euclid Circular B';
    src: url('../fonts/Euclid%20Circular%20B/EuclidCircularB-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Euclid Circular B';
    src: url('../fonts/Euclid%20Circular%20B/EuclidCircularB-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Euclid Circular B';
    src: url('../fonts/Euclid%20Circular%20B/EuclidCircularB-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

.glossom-survey-container {
	max-width: 700px;
	margin: 0 auto;
	/* Removed background/padding from here as it is now on .glossom-form-card */
	font-family: 'Euclid Circular B', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --glossom-light-text: #666;
}

/* The new white card container for forms */
.glossom-form-card {
	background: #fff;
	border-radius: 16px;
	padding: 65px 40px 40px 40px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	margin-bottom: 30px;
    border: 2px solid #333; /* Dark Border */
    position: relative; /* For back arrow positioning */
}

.glossom-back-arrow {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999; /* Lighter color for inside card */
    line-height: 1;
    padding: 5px;
    transition: all 0.2s;
    z-index: 10;
}

.glossom-back-arrow:hover {
    color: #333;
    transform: translateX(-3px);
}

.glossom-step {
	margin-bottom: 20px;
}

/* Header Styles (Now outside the card) */
.glossom-header {
	text-align: center;
	margin-bottom: 30px;
    padding: 0 20px 30px; /* Added bottom padding */
    border-bottom: 1px solid #eee; /* Added separator */
}

.glossom-header h2 {
    font-family: 'Banana Grotesk', sans-serif;
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 15px 0;
	color: #333;
	line-height: 1.2;
}

.glossom-subtitle {
	font-size: 18px;
	color: #666;
	line-height: 1.6;
	margin: 0;
	max-width: 600px;
	margin: 0 auto;
}

/* Step Indicator (Keep inside/above?) - It is currently inside step-feedback etc.
   If we want to hide it or style it: */
.glossom-step-indicator {
	text-align: center;
	font-size: 14px;
	color: #999;
	margin-bottom: 20px;
    display: none; /* Hiding text indicator in favor of visual progress bar */
}

/* Form Groups */
.glossom-form-group {
	margin-bottom: 25px;
}

.glossom-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 16px;
	color: #000;
}

.glossom-required {
	color: #ff4444;
}

.glossom-input {
	width: 100%;
	padding: 16px 20px;
	border: 2px solid #eee;
	border-radius: 12px;
	box-sizing: border-box;
	font-size: 16px;
	transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
}

.glossom-input:focus {
	outline: none;
	border-color: #333; /* Dark Focus */
    background: #fff;
    box-shadow: 0 0 0 4px rgba(51, 51, 51, 0.1);
}

select.glossom-input {
	appearance: none;
	background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%23666" stroke-width="2" stroke-linecap="round"/></svg>');
	background-repeat: no-repeat;
	background-position: right 20px center;
	padding-right: 45px;
}

/* Product Preview Section */
.glossom-product-preview {
	text-align: center;
	margin: 30px 0;
	padding: 30px 20px;
	background: #fafafa;
	border-radius: 12px;
}

.glossom-preview-label {
	font-size: 14px;
	color: #666;
	margin-bottom: 20px;
	font-weight: 500;
}

.glossom-product-image-container {
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 30px;
	margin: 0 auto 20px;
	max-width: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
}

.glossom-product-image-container img {
	max-width: 100%;
	max-height: 180px;
	object-fit: contain;
}

.glossom-product-name-badge {
	background: #000;
	color: #fff;
	padding: 12px 24px;
	border-radius: 24px;
	display: inline-block;
	font-size: 14px;
	font-weight: 500;
	margin-top: 10px;
}

/* Product Reminder (Step 2) */
.glossom-product-reminder {
	text-align: center;
	margin-bottom: 20px;
}

.glossom-product-reminder img {
	max-width: 120px;
	max-height: 120px;
	object-fit: contain;
	border-radius: 8px;
}

/* Rating Stars */
.glossom-rating {
	font-size: 40px;
	cursor: pointer;
	text-align: left;
	margin: 15px 0;
	letter-spacing: 8px;
}

.glossom-rating span {
	transition: color 0.2s;
	color: #e0e0e0;
}

.glossom-rating span:hover {
	color: #CF6E32; /* Keep orange for stars? Or change to dark? Stars usually nice in gold/orange. Keeping orange for stars. */
}

.glossom-rating span.active {
	color: #CF6E32;
}

/* Textarea */
textarea.glossom-input {
	resize: vertical;
	min-height: 140px;
	font-family: inherit;
}

.glossom-char-count {
	text-align: right;
	font-size: 13px;
	color: #999;
	margin-top: 5px;
}

/* Buttons */
.glossom-btn {
	display: inline-block;
	padding: 16px 40px;
	border: none;
	border-radius: 50px; /* Pill shape */
	cursor: pointer;
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.glossom-btn-primary {
	background: #333; /* Dark CTA */
	color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.glossom-btn-primary:hover:not(:disabled) {
	background: #000;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.glossom-btn-primary:disabled {
	background: #ccc;
	cursor: not-allowed;
	opacity: 0.6;
    box-shadow: none;
    transform: none;
}

.glossom-btn-secondary {
	background: #f5f5f5;
	color: #333;
	border: 2px solid #e0e0e0;
}

.glossom-btn-secondary:hover {
	background: #e8e8e8;
	border-color: #ccc;
}

.glossom-button-group {
	display: flex;
	gap: 15px;
	margin-top: 30px;
}

.glossom-button-group .glossom-btn-secondary {
	flex: 0 0 auto;
	width: auto;
	min-width: 120px;
}

.glossom-button-group .glossom-btn-primary {
	flex: 1;
}

/* Copy Section */
.glossom-copy-section {
	margin: 10px 0 30px;
}

.glossom-copy-step {
	margin-bottom: 25px;
	padding: 20px;
	background: #fafafa;
	border-radius: 12px;
    border: 1px solid #eee;
}

.glossom-copy-label {
	font-weight: 600;
	margin-bottom: 12px;
	color: #333;
}

.glossom-copy-box {
	position: relative;
	background: white;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 12px;
}

.glossom-review-text {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	max-height: 120px;
	overflow-y: auto;
	word-wrap: break-word;
    margin-bottom: 20px; /* Added margin */
}

.glossom-btn-copy,
#btn-paste-amazon {
	background: #333; /* Dark Copy Button */
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s;
}

.glossom-btn-copy:hover,
#btn-paste-amazon:hover {
	background: #000;
}

.glossom-btn-link-external {
	display: block;
	background: white;
	color: #333;
	border: 2px solid #333;
	padding: 12px 20px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	text-align: center;
	transition: all 0.2s;
}

.glossom-btn-link-external:hover {
	background: #333;
	color: white;
}

/* Skip Link */
.glossom-skip-link {
	text-align: center;
	margin-top: 25px;
}

.glossom-skip-link a {
	color: #999;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s;
}

.glossom-skip-link a:hover {
	color: #333;
	text-decoration: underline;
}

/* Error Messages */
.glossom-error {
	color: #dc3232;
	margin-top: 10px;
	margin-bottom: 15px;
	font-size: 14px;
	padding: 10px;
	background: #ffe6e6;
	border-radius: 6px;
}

.glossom-error:empty {
	padding: 0;
	margin: 0;
	background: transparent;
	border: none;
}

/* Row/Col Layout */
.glossom-row {
	display: flex;
	gap: 15px;
}

.glossom-col {
	flex: 1;
}

/* Success */
.glossom-success-container {
	text-align: center;
	padding: 40px 20px;
}

.glossom-success-icon {
	font-size: 80px;
	color: #46b450;
	margin-bottom: 20px;
	font-weight: bold;
}

.glossom-success-container h2 {
    font-family: 'Banana Grotesk', sans-serif;
	font-size: 32px;
	margin-bottom: 15px;
	color: #000;
}

.glossom-success-container p {
	font-size: 16px;
	color: #666;
}

/* Modal */
.glossom-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Euclid Circular B', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.glossom-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
}

.glossom-modal-content {
	position: relative;
	background: white;
	border-radius: 16px;
	max-width: 500px;
	width: 90%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-20px) scale(0.95);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.glossom-modal-header {
	padding: 30px 30px 20px;
	border-bottom: 1px solid #f0f0f0;
}

.glossom-modal-header h3 {
	margin: 0;
	font-size: 24px;
	color: #000;
}

.glossom-modal-body {
	padding: 30px;
}

.glossom-modal-body p {
	margin: 0 0 15px 0;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
}

.glossom-modal-note {
	background: #f8f8f8;
	padding: 15px;
	border-radius: 8px;
	font-size: 14px;
	color: #666;
	margin-top: 20px;
}

.glossom-modal-footer {
	padding: 20px 30px 30px;
	display: flex;
	gap: 15px;
}

.glossom-modal-footer .glossom-btn {
	flex: 1;
}

/* Payment Summary */
.glossom-payment-summary {
	background: #f8f8f8;
	border-radius: 12px;
	padding: 20px;
	margin: 25px 0;
}

.glossom-summary-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	font-size: 16px;
	color: #333;
}

.glossom-summary-total {
	border-top: 2px solid #ddd;
	margin-top: 10px;
	padding-top: 15px;
	font-size: 18px;
}

/* Stripe Element */
.glossom-stripe-element {
	border: 2px solid #eee;
	border-radius: 12px;
	padding: 16px 20px;
	background: #fafafa;
	transition: border-color 0.2s;
}

.glossom-stripe-element:focus-within {
	border-color: #333;
    background: #fff;
}

/* Help Text */
.glossom-help-text {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #999;
}

/* Spinner */
.glossom-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, .3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: spin 1s ease-in-out infinite;
	margin-left: 10px;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Responsive */
@media (max-width: 600px) {
	.glossom-survey-container {
		padding: 10px;
	}

    .glossom-form-card {
        padding: 25px 20px;
    }

	.glossom-header h2 {
		font-size: 24px;
	}

	.glossom-button-group {
		flex-direction: column;
	}

	.glossom-button-group .glossom-btn-secondary,
	.glossom-button-group .glossom-btn-primary {
		width: 100%;
	}

	.glossom-modal-content {
		width: 95%;
	}

	.glossom-modal-header,
	.glossom-modal-body,
	.glossom-modal-footer {
		padding: 20px;
	}

    .glossom-row {
        flex-direction: column;
    }
}

/* Full Screen Template & Logo */
body.glossom-full-screen-template {
	background-color: #B8D4FF;
	margin: 0;
	padding: 40px 0;
	min-height: 100vh;
}

/* Wrapper for Logo + Card */
.glossom-app-wrapper {
    width: 100%;
    max-width: 700px;
    margin: 20px auto; /* Add some margin for mobile */
    padding: 0 20px;
    box-sizing: border-box;
}

.glossom-logo-wrapper {
	text-align: center;
	margin-bottom: 20px;
}

.glossom-logo {
	max-width: 300px; /* Increased size */
	height: auto;
	display: inline-block;
}

/* Progress Bar */
.glossom-progress-container {
    margin-bottom: 40px;
    padding: 0 10px;
}

.glossom-progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 30px; /* Push steps down below the bar */
}

/* Track */
.glossom-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px; /* Thicker pill shape */
    background: rgba(255, 255, 255, 0.3); /* Semi-transparent white */
    border-radius: 10px;
    z-index: 0;
}

/* Fill */
.glossom-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 10px; /* Match track */
    background: #333; /* Solid dark charcoal */
    border-radius: 10px;
    z-index: 0;
    width: 0%;
    transition: width 0.4s ease;
}

.glossom-progress-step {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Inactive Steps (Glassy) */
.glossom-step-circle {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.4); /* Glassy white */
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #666; /* Grey number */
    transition: all 0.3s ease;
    margin-bottom: 8px;
    backdrop-filter: blur(4px);
}

/* Active Steps */
.glossom-progress-step.active .glossom-step-circle {
    background: #333; /* Dark charcoal */
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: #333;
}

/* Completed Steps */
.glossom-progress-step.completed .glossom-step-circle {
    background: #B6E7BD; /* Light Green */
    color: #000; /* Black number */
    border-color: #B6E7BD;
    box-shadow: none;
}

.glossom-step-label {
    font-size: 12px;
    color: #666; /* Muted grey */
    font-weight: 500;
    white-space: nowrap;
    position: absolute;
    top: 40px; /* Position below circle */
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
}

/* Responsive Progress Bar */
@media (min-width: 600px) {
    .glossom-step-label {
        opacity: 1;
    }
}

/* Footer Links */
.glossom-footer-links {
    text-align: center;
    margin-top: 30px;
    font-size: 16px;
    color: var(--glossom-light-text);
}

.glossom-footer-links a {
    color: var(--glossom-light-text);
    text-decoration: none;
    transition: color 0.2s;
}

.glossom-footer-links a:hover {
    color: #333;
    text-decoration: underline;
}

.glossom-footer-sep {
    margin: 0 10px;
    color: #ccc;
}
/* New Review Step Styles */
.glossom-step-indicator {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.glossom-review-steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.glossom-review-step-box {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.glossom-review-step-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin: 0 0 15px 0;
}

#glossom-review-text-box {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    min-height: 80px;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.6;
}

.glossom-btn.glossom-btn-copy,
#btn-paste-amazon {
    width: auto;
    padding: 10px 30px;
    font-size: 14px;
}

.glossom-icon-fa {
    margin-left: 8px;
    vertical-align: middle;
    font-size: 14px;
}

.glossom-navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.glossom-navigation-buttons .glossom-btn {
    width: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.glossom-arrow-icon-left,
.glossom-arrow-icon-right {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: contain;
}

.glossom-arrow-icon-left {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>');
}

.glossom-arrow-icon-right {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>');
}
