/* GBNewsletter Public Styles */

.gbn-subscription-form-wrap {
	max-width: 500px;
	margin: 0 auto;
	padding: 30px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gbn-form-title {
	margin: 0 0 20px 0;
	font-size: 22px;
	font-weight: 600;
	color: #1e293b;
	text-align: center;
}

.gbn-form-field {
	margin-bottom: 16px;
}

.gbn-form-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #334155;
}

.gbn-form-field label.required::after {
	content: " *";
	color: #dc2626;
}

.gbn-form-field input[type="text"],
.gbn-form-field input[type="email"],
.gbn-form-field input[type="tel"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.gbn-form-field input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.gbn-form-field input::placeholder {
	color: #9ca3af;
}

/* Checkbox */
.gbn-consent {
	margin-top: 20px;
}

.gbn-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
	font-size: 13px;
	color: #4b5563;
	line-height: 1.5;
}

.gbn-checkbox-label input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}

/* Submit Button */
.gbn-submit-button {
	display: block;
	width: 100%;
	padding: 14px 24px;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.1s;
}

.gbn-submit-button:hover {
	background: #1d4ed8;
}

.gbn-submit-button:active {
	transform: scale(0.98);
}

.gbn-submit-button:disabled {
	background: #93c5fd;
	cursor: not-allowed;
}

/* Messages */
.gbn-form-message {
	margin-top: 15px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
}

.gbn-form-message.success {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.gbn-form-message.error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Preferences Page */
.gbn-preferences-wrap {
	max-width: 600px;
	margin: 40px auto;
	padding: 30px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gbn-preferences-wrap h1 {
	margin: 0 0 25px 0;
	font-size: 24px;
	color: #1e293b;
}

.gbn-preferences-wrap h2 {
	margin: 25px 0 15px 0;
	font-size: 18px;
	color: #334155;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 10px;
}

.gbn-preferences-wrap .gbn-form-field {
	margin-bottom: 14px;
}

.gbn-preferences-wrap input[type="text"],
.gbn-preferences-wrap input[type="email"] {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}

.gbn-list-checkbox {
	display: block;
	padding: 10px 14px;
	margin-bottom: 8px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s;
}

.gbn-list-checkbox:hover {
	background: #f1f5f9;
}

.gbn-list-checkbox input {
	margin-right: 10px;
}

/* Unsubscribe Page */
.gbn-unsubscribe-wrap {
	max-width: 500px;
	margin: 60px auto;
	padding: 40px;
	text-align: center;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gbn-unsubscribe-wrap h1 {
	font-size: 24px;
	color: #1e293b;
	margin-bottom: 15px;
}

.gbn-unsubscribe-wrap p {
	color: #64748b;
	margin-bottom: 20px;
	line-height: 1.6;
}

/* Subtitle */
.gbn-form-subtitle {
	margin: -10px 0 20px 0;
	font-size: 14px;
	color: #64748b;
	text-align: center;
}

/* Inline Layout */
.gbn-subscription-form-wrap.gbn-layout-inline .gbn-subscription-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
}

.gbn-subscription-form-wrap.gbn-layout-inline .gbn-form-field {
	margin-bottom: 0;
	flex: 1;
	min-width: 160px;
}

.gbn-subscription-form-wrap.gbn-layout-inline .gbn-form-field.gbn-consent {
	flex: 100%;
	margin-top: 8px;
}

/* Responsive */
@media (max-width: 600px) {
	.gbn-subscription-form-wrap,
	.gbn-preferences-wrap,
	.gbn-unsubscribe-wrap {
		margin: 10px;
		padding: 20px;
	}
	.gbn-subscription-form-wrap.gbn-layout-inline .gbn-subscription-form {
		flex-direction: column;
		align-items: stretch;
	}
	.gbn-subscription-form-wrap.gbn-layout-inline .gbn-form-field {
		width: 100%;
		min-width: 100%;
		margin-bottom: 12px;
	}
}
