/**
 * GuardMail Sender - Frontend Opt-in Form Styling
 * Author: Rifan Muazin (https://gig.web.id)
 */

.gms-optin-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 28px 24px;
	box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
	max-width: 520px;
	margin: 24px auto;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #1e293b;
	text-align: center;
}

.gms-optin-title {
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 8px 0;
	color: #0f172a;
	line-height: 1.3;
}

.gms-optin-desc {
	font-size: 14px;
	line-height: 1.6;
	color: #64748b;
	margin: 0 0 20px 0;
}

.gms-optin-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gms-form-group {
	width: 100%;
}

.gms-optin-input {
	width: 100%;
	padding: 12px 16px;
	font-size: 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
	background: #f8fafc;
	color: #1e293b;
}

.gms-optin-input:focus {
	border-color: #0284c7;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.gms-optin-btn {
	width: 100%;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	background: #0284c7;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.gms-optin-btn:hover {
	background: #0369a1;
	box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.gms-optin-btn:disabled {
	background: #94a3b8;
	cursor: not-allowed;
	box-shadow: none;
}

.gms-optin-msg {
	margin-top: 14px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
}

.gms-optin-msg.success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.gms-optin-msg.error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}
