/**
 * Saudi Number Tool – namespaced styles.
 * Scoped under .snt-wrap to avoid conflicts with theme/other plugins.
 * Primary: #0C6359; text on primary: white. Font: Noto Sans Arabic.
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

.snt-wrap {
	--snt-primary: #0C6359;
	--snt-primary-text: #ffffff;
	--snt-font: 'Noto Sans Arabic', sans-serif;
	font-family: var(--snt-font);
	box-sizing: border-box;
	direction: rtl;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	background: #fff;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	overflow: hidden;
}

.snt-wrap *,
.snt-wrap *::before,
.snt-wrap *::after {
	box-sizing: border-box;
}

/* Title bar: full-width teal bar, heading-style but <p> + <span> */
.snt-wrap .snt-title {
	margin: 0;
	padding: 1rem 1.25rem;
	background: var(--snt-primary);
	color: var(--snt-primary-text);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	font-family: var(--snt-font);
	border-radius: 10px 10px 0 0;
}

.snt-wrap .snt-title-text {
	display: block;
}

/* Search box container: inside wrap */
.snt-wrap .snt-search-box {
	background: #fff;
	overflow: hidden;
}

/* Form: stacked layout with padding below title */
.snt-wrap .snt-form {
	padding: 1.25rem 1.25rem 1.5rem;
	display: block;
	margin: 0;
}

/* Tabs: segmented control – active filled, inactive outlined */
.snt-wrap .snt-tabs {
	display: flex;
	width: 100%;
	gap: 0;
	margin-bottom: 1rem;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--snt-primary);
}

.snt-wrap .snt-tab {
	flex: 1;
	padding: 0.65rem 1rem;
	border: none;
	background: #fff;
	color: var(--snt-primary);
	font-family: var(--snt-font);
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	border-inline-end: 1px solid var(--snt-primary);
}

.snt-wrap .snt-tab:last-child {
	border-inline-end: none;
}

.snt-wrap .snt-tab:hover:not(.snt-tab-active) {
	background: rgba(12, 99, 89, 0.06);
}

.snt-wrap .snt-tab.snt-tab-active {
	background: var(--snt-primary);
	color: var(--snt-primary-text);
	font-weight: 600;
}

/* Input: full width, light border */
.snt-wrap .snt-input {
	width: 100%;
	max-width: 100%;
	display: block;
	margin-bottom: 1rem;
	padding: 0.65rem 1rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-family: var(--snt-font);
	font-size: 1rem;
	direction: rtl;
	background: #fff;
}

.snt-wrap .snt-input::placeholder {
	color: #999;
}

.snt-wrap .snt-input:focus {
	outline: none;
	border-color: var(--snt-primary);
	box-shadow: 0 0 0 2px rgba(12, 99, 89, 0.15);
}

/* Submit: full width, primary button */
.snt-wrap .snt-submit {
	width: 100%;
	max-width: 100%;
	display: block;
	padding: 0.75rem 1.25rem;
	background: var(--snt-primary);
	color: var(--snt-primary-text);
	border: none;
	border-radius: 8px;
	font-family: var(--snt-font);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s;
}

.snt-wrap .snt-submit:hover {
	background: #0a5249;
}

.snt-wrap .snt-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Result area – inside card, same padding as form */
.snt-wrap .snt-result {
	margin: 0.75rem 1.25rem 1.25rem;
	padding: 1rem;
	border-radius: 8px;
	background: #f9f9f9;
	border: 1px solid #eee;
	font-family: var(--snt-font);
	font-size: 0.95rem;
	line-height: 1.6;
}

.snt-wrap .snt-result.snt-hidden {
	display: none !important;
}

/* Result intro text (heading-like but not heading tag) */
.snt-wrap .snt-result strong {
	color: var(--snt-primary);
}

.snt-wrap .snt-result .snt-result-label {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--snt-primary);
	margin-bottom: 0.5rem;
	display: block;
}

/* Cards */
.snt-wrap .snt-card {
	padding: 1rem;
	margin-bottom: 0.75rem;
	background: #f5f5f5;
	border-radius: 6px;
	border-right: 4px solid var(--snt-primary);
}

.snt-wrap .snt-card > div {
	margin-bottom: 0.35rem;
}

.snt-wrap .snt-card .snt-card-strong {
	font-weight: 600;
	color: #333;
}

/* WhatsApp link – primary background, white text */
.snt-wrap .snt-whatsapp {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.4rem 0.75rem;
	background: var(--snt-primary);
	color: var(--snt-primary-text) !important;
	text-decoration: none;
	border-radius: 6px;
	font-size: 0.9rem;
	transition: background 0.2s;
}

.snt-wrap .snt-whatsapp:hover {
	background: #0a5249;
	color: var(--snt-primary-text) !important;
}

.snt-wrap .snt-muted {
	color: #666;
	font-size: 0.9rem;
	margin-top: 0.35rem;
}

.snt-wrap .snt-disclaimer {
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid #e0e0e0;
	color: #666;
	font-size: 0.85rem;
}

.snt-wrap .snt-view-btn {
	margin-top: 0.5rem;
	padding: 0.5rem 1rem;
	background: var(--snt-primary);
	color: var(--snt-primary-text);
	border: none;
	border-radius: 6px;
	font-family: var(--snt-font);
	font-size: 0.95rem;
	cursor: pointer;
}

.snt-wrap .snt-view-btn:hover:not(:disabled) {
	background: #0a5249;
}

.snt-wrap .snt-view-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.snt-wrap .snt-timer {
	margin-top: 0.5rem;
	color: #666;
	font-size: 0.9rem;
}
