:root{
	--bg:#f6f9fc;
	--card:#ffffff;
	--muted:#6b7280;
	--accent:#0ea5a4;
	--accent-2:#0369a1;
	--text:#0f172a;
	--radius:10px;
	--shadow: 0 6px 18px rgba(12, 26, 75, 0.08);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
	margin:0;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
	background: linear-gradient(180deg,#f8fafc, var(--bg));
	color:var(--text);
	-webkit-font-smoothing:antialiased;
}

.site-header{
	background:var(--card);
	box-shadow: var(--shadow);
	border-bottom-left-radius:var(--radius);
	border-bottom-right-radius:var(--radius);
}
.container{max-width:1100px;margin:22px auto;padding:0 18px}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:16px 0}
.brand{display:flex;align-items:center;gap:12px}
.brand img{height:44px}
.brand h1{font-size:20px;margin:0}
.nav{display:flex;gap:12px;align-items:center}
.nav a{color:var(--muted);text-decoration:none;padding:8px 12px;border-radius:8px}
.nav a:hover{background:rgba(2,6,23,0.04);color:var(--text)}
.nav #nav-toggle{display:none}
.nav.nav-open{display:flex;flex-direction:column;gap:8px}
.btn{background:var(--accent);color:white;padding:8px 14px;border-radius:8px;border:none;cursor:pointer}
.btn.secondary{background:transparent;color:var(--accent-2);border:1px solid rgba(3,105,161,0.08)}

.hero{background:linear-gradient(90deg, rgba(14,165,164,0.05), rgba(3,105,161,0.02));padding:28px;border-radius:12px;margin:18px 0}
.hero h2{margin:0 0 8px;font-size:26px}
.hero p{margin:0;color:var(--muted)}

.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:16px}
.card{background:var(--card);padding:16px;border-radius:12px;box-shadow:var(--shadow);}
.service{display:flex;flex-direction:column;gap:10px}
.service h3{margin:0}
.service p{color:var(--muted);margin:0}

.form-row{display:flex;flex-direction:column;gap:8px;margin:8px 0}
label{font-size:14px;color:var(--muted)}
input[type=text],input[type=password],input[type=email],textarea,select{padding:10px;border-radius:8px;border:1px solid #e6e9ef;background:#fff}

/* Inline form helpers for paired fields like ZIP / State */
.form-inline{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap;margin:8px 0}
.form-inline .flex1{flex:1;min-width:120px}
.form-inline .zip{flex:0 0 140px;min-width:100px}
.form-inline label{margin-bottom:6px}

/* Make inputs fill their container so fields don't overflow cards */
.form-row input, .form-inline input, input[type=text], input[type=email], input[type=password], textarea, select{width:100%;box-sizing:border-box}

/* Profile card wrapping to avoid overflow when viewport is narrow */
.profile{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}
.profile img{width:72px;height:72px;border-radius:12px;object-fit:cover}

.footer{margin-top:40px;padding:24px 0;color:var(--muted);font-size:14px}

.profile{display:flex;align-items:center;gap:12px}
.profile img{width:72px;height:72px;border-radius:12px;object-fit:cover}

/* Admin page helpers */
.admin-row{display:flex;justify-content:space-between;align-items:flex-start;padding:10px 0;border-top:1px solid #f1f5f9}
.admin-user{display:flex;gap:12px;align-items:center}
.admin-actions{min-width:180px}
.admin-order-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-top:1px solid #f1f5f9}
.small-input{width:160px;padding:6px;border-radius:8px;border:1px solid #eee}
.tiny-input{width:72px;padding:6px;border-radius:8px;border:1px solid #eee}

.orders .order{padding:12px;border-radius:10px;background:linear-gradient(180deg,#fff,#fbfdff);border:1px solid #eef2f7;margin-bottom:10px}
.small{font-size:13px;color:var(--muted)}

@media (max-width:600px){
	.topbar{flex-direction:row;align-items:center;gap:10px}
	.brand h1{font-size:16px}
	.nav{display:none}
	.nav.nav-open{display:flex}
	.nav a{padding:10px 14px}
	#nav-toggle{display:block;background:transparent;border:0;color:var(--muted);font-size:20px}

	/* Stack inline form fields on small screens */
	.form-inline{flex-direction:column}
}

/* Validation styles */
.field-error{color:#b91c1c;font-size:13px;margin-top:6px}
.input-error{border-color:#fca5a5 !important;box-shadow:0 0 0 3px rgba(244,63,94,0.06)}

/* improve order card spacing and mobile stacking */
.orders .order{display:block}
.orders .order > div{display:flex;flex-direction:row;gap:12px;align-items:center}
@media (max-width:600px){
	.orders .order > div{flex-direction:column;align-items:flex-start}
	.orders .order div[style*="text-align:right"]{text-align:left}
}

