/* ===================================================================
   HOMORO Warranty System - Public Stylesheet
   Theme: Dark Navy (#071A2B / #0D2F4A) + White + Light Gray background
   =================================================================== */

.homoro-wty {
	--homoro-navy: #071A2B;
	--homoro-navy-2: #0D2F4A;
	--homoro-bg: #F5F7FA;
	--homoro-white: #FFFFFF;
	--homoro-blue-accent: #2E86FF;
	--homoro-gray-text: #5B6B79;
	--homoro-border: #E4E9EE;
	--homoro-success: #1E9E5A;
	--homoro-warn: #C77F00;
	--homoro-danger: #D64545;
	--radius: 14px;

	font-family: 'Vazirmatn', Tahoma, sans-serif;
	background: var(--homoro-bg);
	color: var(--homoro-navy);
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 16px 60px;
	box-sizing: border-box;
}
.homoro-wty *, .homoro-wty *::before, .homoro-wty *::after { box-sizing: border-box; }

/* Header */
.homoro-wty__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	background: var(--homoro-navy);
	border-radius: var(--radius);
	margin-bottom: 28px;
}
.homoro-wty__brand { display: flex; align-items: center; gap: 12px; }
.homoro-wty__logo { height: 40px; width: auto; }
.homoro-wty__brand-text { display: flex; flex-direction: column; line-height: 1.4; }
.homoro-wty__brand-name { color: #fff; font-weight: 800; letter-spacing: 1px; font-size: 15px; }
.homoro-wty__brand-sub { color: #9FB4C7; font-size: 12px; }

/* Hero */
.homoro-wty__hero { text-align: center; margin-bottom: 32px; }
.homoro-wty__title { font-size: 26px; font-weight: 800; margin: 0 0 8px; color: var(--homoro-navy); }
.homoro-wty__subtitle { font-size: 14px; color: var(--homoro-gray-text); margin: 0; }

/* Cards */
.homoro-wty__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 32px;
}
.homoro-wty__card {
	background: var(--homoro-white);
	border: 1px solid var(--homoro-border);
	border-radius: var(--radius);
	padding: 24px 20px;
	box-shadow: 0 4px 18px rgba(7, 26, 43, 0.05);
	transition: transform .18s ease, box-shadow .18s ease;
	animation: homoroFadeUp .4s ease both;
}
.homoro-wty__card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(7, 26, 43, 0.1); }
.homoro-wty__card-index { font-size: 12px; font-weight: 700; color: var(--homoro-blue-accent); letter-spacing: 2px; margin-bottom: 6px; }
.homoro-wty__card h3 { margin: 0 0 8px; font-size: 17px; color: var(--homoro-navy); }
.homoro-wty__card p { margin: 0 0 18px; font-size: 13.5px; color: var(--homoro-gray-text); line-height: 1.8; min-height: 44px; }

/* Buttons */
.homoro-wty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	border-radius: 10px;
	padding: 11px 18px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease, opacity .15s ease;
}
.homoro-wty__btn--primary { background: var(--homoro-navy); color: #fff; }
.homoro-wty__btn--primary:hover { background: var(--homoro-navy-2); }
.homoro-wty__btn--block { width: 100%; }
.homoro-wty__btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Panel (modal-like inline panel) */
.homoro-wty__panel {
	background: var(--homoro-white);
	border: 1px solid var(--homoro-border);
	border-radius: var(--radius);
	padding: 26px;
	margin-bottom: 24px;
	animation: homoroSlideUp .3s ease both;
}
.homoro-wty__panel--static { max-width: 520px; margin: 0 auto; }
.homoro-wty__panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.homoro-wty__panel-head h2 { font-size: 19px; margin: 0; color: var(--homoro-navy); }
.homoro-wty__close { background: var(--homoro-bg); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; color: var(--homoro-navy); }
.homoro-wty__close:hover { background: var(--homoro-border); }

/* Forms */
.homoro-wty__form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.homoro-wty__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.homoro-wty__field { display: flex; flex-direction: column; gap: 6px; }
.homoro-wty__field label { font-size: 13px; font-weight: 700; color: var(--homoro-navy-2); }
.homoro-wty__field input, .homoro-wty__field textarea, .homoro-wty__field select {
	font-family: inherit;
	font-size: 14px;
	padding: 11px 14px;
	border: 1px solid var(--homoro-border);
	border-radius: 10px;
	background: var(--homoro-bg);
	color: var(--homoro-navy);
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
	width: 100%;
}
.homoro-wty__field input:focus, .homoro-wty__field textarea:focus, .homoro-wty__field select:focus {
	border-color: var(--homoro-blue-accent);
	box-shadow: 0 0 0 3px rgba(46, 134, 255, 0.15);
	background: #fff;
}
.homoro-wty__field input:disabled { color: var(--homoro-gray-text); }
.homoro-wty__hint { font-size: 12px; color: var(--homoro-gray-text); }

.homoro-wty__message { font-size: 13px; padding: 10px 14px; border-radius: 8px; display: none; }
.homoro-wty__message.is-visible { display: block; }
.homoro-wty__message.is-error { background: #FDECEC; color: var(--homoro-danger); }
.homoro-wty__message.is-success { background: #E9F8EF; color: var(--homoro-success); }

/* Loading state on button */
.homoro-wty__btn.is-loading .btn-label::after {
	content: '';
	display: inline-block;
	width: 14px; height: 14px;
	margin-inline-start: 8px;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: homoroSpin .6s linear infinite;
	vertical-align: middle;
}

/* Accordion for service request */
.homoro-wty__accordion-step { opacity: .5; pointer-events: none; margin-bottom: 22px; }
.homoro-wty__accordion-step--active { opacity: 1; pointer-events: auto; }
.homoro-wty__accordion-step h3 { font-size: 15px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; color: var(--homoro-navy); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--homoro-navy); color: #fff; font-size: 12px; }

/* Result cards */
.homoro-wty__result { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.homoro-wty__result-intro { font-size: 14px; font-weight: 700; color: var(--homoro-navy); text-align: center; }
.homoro-wty__result-card {
	background: linear-gradient(180deg, #ffffff 0%, #F7FAFD 100%);
	border: 1px solid var(--homoro-border);
	border-radius: var(--radius);
	padding: 22px;
	animation: homoroFadeUp .35s ease both;
}
.homoro-wty__result-head { text-align: center; margin-bottom: 14px; }
.homoro-wty__badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.homoro-wty__badge--active { background: #E9F8EF; color: var(--homoro-success); }
.homoro-wty__badge--warn { background: #FFF6E5; color: var(--homoro-warn); }
.homoro-wty__badge--danger { background: #FDECEC; color: var(--homoro-danger); }
.homoro-wty__badge--muted { background: var(--homoro-bg); color: var(--homoro-gray-text); }

.homoro-wty__result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.homoro-wty__result-item { background: var(--homoro-white); border: 1px solid var(--homoro-border); border-radius: 10px; padding: 12px 14px; }
.homoro-wty__result-item span { display: block; }
.homoro-wty__result-item .label { font-size: 11.5px; color: var(--homoro-gray-text); margin-bottom: 4px; }
.homoro-wty__result-item .value { font-size: 14px; font-weight: 700; color: var(--homoro-navy); }

.homoro-wty__progress-wrap { margin: 18px 0 8px; }
.homoro-wty__progress-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--homoro-gray-text); margin-bottom: 6px; }
.homoro-wty__progress-track { background: var(--homoro-border); border-radius: 999px; height: 10px; overflow: hidden; }
.homoro-wty__progress-bar { height: 100%; background: linear-gradient(90deg, var(--homoro-blue-accent), var(--homoro-navy)); border-radius: 999px; transition: width .5s ease; }
.homoro-wty__progress-bar--warn { background: linear-gradient(90deg, #FFB020, var(--homoro-warn)); }
.homoro-wty__progress-bar--danger { background: var(--homoro-danger); }

.homoro-wty__services-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.homoro-wty__services-table th, .homoro-wty__services-table td { padding: 9px 10px; border-bottom: 1px solid var(--homoro-border); text-align: right; }
.homoro-wty__services-table th { color: var(--homoro-gray-text); font-weight: 700; font-size: 12px; }

.homoro-wty__usage-alert {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #FFF6E5;
	color: var(--homoro-warn);
	border: 1px solid #FFE3AD;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 600;
	margin-top: 16px;
}
.homoro-wty__usage-alert-icon { font-size: 10px; }

/* Animations */
@keyframes homoroFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes homoroSlideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes homoroSpin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 780px) {
	.homoro-wty__cards { grid-template-columns: 1fr; }
	.homoro-wty__row { grid-template-columns: 1fr; }
	.homoro-wty__result-grid { grid-template-columns: 1fr; }
}
