/* MAS Tambahan — gaya mengikuti warna logo MAS (biru & merah). */
:root {
	--mast-blue: #10306e;
	--mast-blue-2: #1a47a0;
	--mast-red: #e1251b;
	--mast-red-dark: #b81d15;
	--mast-ink: #1b2537;
	--mast-muted: #5b6678;
	--mast-line: #dfe4ec;
	--mast-soft: #f3f6fb;
	--mast-radius: 14px;
}

/* Tombol */
.mast-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none !important; border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2; transition: background-color .2s, color .2s, border-color .2s; }
.mast-btn-red { background: var(--mast-red); color: #fff !important; }
.mast-btn-red:hover { background: var(--mast-red-dark); color: #fff !important; }
.mast-btn-line { border-color: var(--mast-blue); color: var(--mast-blue) !important; background: transparent; }
.mast-btn-line:hover { background: var(--mast-blue); color: #fff !important; }

/* Kartu layanan */
.mast-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin-block: 2rem; }
.mast-svc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mast-line); border-radius: var(--mast-radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.mast-svc:hover { box-shadow: 0 18px 40px -24px rgba(16, 48, 110, .45); transform: translateY(-2px); }
.mast-svc-media { display: block; aspect-ratio: 3 / 2; background: var(--mast-blue); overflow: hidden; }
.mast-svc-media img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0 !important; border-radius: 0 !important; }
.mast-svc-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.4rem 1.4rem; }
.mast-svc-sub { margin: 0 0 .3rem !important; color: var(--mast-red-dark); font-weight: 700; font-size: .85rem; }
.mast-svc-title { margin: 0 0 .5rem !important; font-size: 1.35rem; line-height: 1.25; }
.mast-svc-title a { color: var(--mast-blue); text-decoration: none; }
.mast-svc-title a:hover { color: var(--mast-red); }
.mast-svc-text { color: var(--mast-muted); font-size: .97rem; flex: 1; margin: 0 0 1rem !important; }
.mast-svc-link { font-weight: 700; color: var(--mast-blue); text-decoration: none; align-self: flex-start; }
.mast-svc-link:hover { color: var(--mast-red); }
.mast-other-title { margin-top: 3rem; }

/* Ajakan */
.mast-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-block: 2.5rem; padding: 1.6rem 1.8rem; border-radius: var(--mast-radius); background: linear-gradient(120deg, var(--mast-blue), var(--mast-blue-2)); color: #fff; }
.mast-cta h3 { color: #fff !important; margin: 0 0 .3rem !important; font-size: 1.3rem; }
.mast-cta p { color: #d9e2f3; margin: 0 !important; max-width: 56ch; }
.mast-cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.mast-cta .mast-btn-line { border-color: rgba(255,255,255,.7); color: #fff !important; }
.mast-cta .mast-btn-line:hover { background: #fff; color: var(--mast-blue) !important; }

/* Direktori sertifikat — menyelaraskan tampilan plugin Certificate Registry */
.mast-lead { color: var(--mast-muted); font-size: 1.05rem; }
body .crs-wrap { max-width: 920px; }
body .crs-wrap .crs-form { gap: 10px; padding: 10px; background: var(--mast-soft); border: 1px solid var(--mast-line); border-radius: 999px; }
body .crs-wrap .crs-form input[type=search] { border: 0; background: #fff; border-radius: 999px; padding: 12px 18px; font-size: 16px; }
body .crs-wrap .crs-form input[type=search]:focus { outline: 3px solid rgba(26, 71, 160, .25); }
body .crs-wrap .crs-form button { background: var(--mast-red); border-radius: 999px; padding: 12px 26px; font-weight: 700; }
body .crs-wrap .crs-form button:hover { background: var(--mast-red-dark); }
body .crs-wrap .crs-hint { margin: 10px 0 18px; }
body .crs-wrap .crs-card { border-radius: var(--mast-radius); border-color: var(--mast-line); }
body .crs-wrap .crs-card h3 { background: var(--mast-blue); color: #fff; }
body .crs-wrap .crs-card th { background: var(--mast-soft); color: var(--mast-blue); }
body .crs-wrap .crs-msg { border-radius: 10px; }
@media (max-width: 600px) {
	body .crs-wrap .crs-form { border-radius: 16px; }
	body .crs-wrap .crs-form button { width: 100%; }
}

/* Formulir keluhan */
.mast-form-wrap { margin-block: 1.5rem; }
.mast-form { padding: 1.75rem; border: 1px solid var(--mast-line); border-radius: var(--mast-radius); background: #fff; }
.mast-form .mast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.mast-form p { margin: 0 0 1rem !important; }
.mast-form label { display: block; font-weight: 600; color: var(--mast-ink); margin-bottom: .35rem; font-size: .95rem; }
.mast-form .req { color: var(--mast-red); }
.mast-form input[type=text], .mast-form input[type=email], .mast-form input[type=tel], .mast-form select, .mast-form textarea {
	width: 100%; box-sizing: border-box; padding: .75rem .9rem; border: 1px solid #c9d1de; border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; color: var(--mast-ink);
}
.mast-form input:focus, .mast-form select:focus, .mast-form textarea:focus { outline: 3px solid rgba(26, 71, 160, .2); border-color: var(--mast-blue-2); }
.mast-form .mast-check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--mast-muted); }
.mast-form .mast-check input { margin-top: .3rem; flex-shrink: 0; }
.mast-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mast-alert { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.25rem; line-height: 1.6; }
.mast-alert-ok { background: #e8f6ee; border: 1px solid #b5e0c6; color: #135c34; }
.mast-alert-err { background: #fdecec; border: 1px solid #f5bcbc; color: #8f1d1d; }
.mast-note { padding: .8rem 1rem; border: 1px dashed var(--mast-red); border-radius: 10px; background: #fff6f6; }
@media (max-width: 640px) {
	.mast-form { padding: 1.25rem; }
	.mast-form .mast-grid { grid-template-columns: 1fr; }
	.mast-cta { padding: 1.3rem; }
	.mast-cta-actions, .mast-cta-actions .mast-btn { width: 100%; }
}

/* Pastikan formulir direktori tidak tertutup elemen dekoratif tema */
body .crs-wrap { position: relative; z-index: 5; }
body .crs-wrap .crs-form, body .crs-wrap .crs-form * { pointer-events: auto; }
body .crs-wrap .crs-form button { position: relative; z-index: 1; }
