/* 建築師之路 — 1對1 線上改圖預約
   與「精選案例文章」共用 case-study.css 的設計代幣、hero 與容器，
   這裡只補預約特有的元件。 */

/* ---------- 區塊標題 ---------- */

.ar-bk-head {
	margin: 0 0 26px;
	padding-bottom: 18px;
	border-bottom: 2px solid var(--ar-ink);
}

.ar-bk-head:not(:first-child) {
	margin-top: 64px;
}

.ar-bk-head__t {
	font-family: var(--ar-serif);
	font-size: clamp(21px, 2.8vw, 27px);
	font-weight: 700;
	letter-spacing: .05em;
	color: var(--ar-ink);
}

.ar-bk-head__d {
	font-size: 14.5px;
	line-height: 1.9;
	color: var(--ar-ink-soft);
	margin-top: 10px;
	max-width: 720px;
}

/* ---------- 提示列 ---------- */

.ar-bk-flash {
	background: #FFF4DA;
	border-left: 4px solid var(--ar-accent);
	border-radius: var(--ar-r-sm);
	padding: 15px 20px;
	margin-bottom: 30px;
	font-size: 15px;
	line-height: 1.85;
	color: #6B4E0B;
}

/* ---------- 五位建築師的頭像按鈕 ---------- */

.ar-bk-mentors {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}

.ar-bk-mcard {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var(--ar-surface);
	border: 1px solid var(--ar-line);
	border-radius: var(--ar-r-md);
	padding: 26px 16px 22px;
	text-decoration: none;
	color: var(--ar-ink);
	transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

a.ar-bk-mcard:hover {
	border-color: var(--ar-accent);
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(22, 34, 62, .09);
}

.ar-bk-mcard__pic {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--ar-cream);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 3px var(--ar-surface), 0 0 0 4.5px var(--ar-line);
}

a.ar-bk-mcard:hover .ar-bk-mcard__pic {
	box-shadow: 0 0 0 3px var(--ar-surface), 0 0 0 4.5px var(--ar-accent);
}

.ar-bk-mcard__pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ar-bk-mcard__ini {
	font-family: var(--ar-serif);
	font-size: 38px;
	font-weight: 700;
	color: var(--ar-ink-soft);
}

.ar-bk-mcard__nm {
	font-family: var(--ar-serif);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: .05em;
	margin-top: 16px;
}

.ar-bk-mcard__role {
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--ar-muted);
	margin-top: 6px;
}

.ar-bk-mcard__meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 12.5px;
	color: var(--ar-ink-soft);
	margin-top: 12px;
}

.ar-bk-mcard__btn {
	display: inline-block;
	margin-top: 16px;
	padding: 10px 22px;
	border-radius: var(--ar-r-pill);
	background: var(--ar-accent);
	color: var(--ar-dark);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1;
}

a.ar-bk-mcard:hover .ar-bk-mcard__btn {
	background: var(--ar-accent-bright);
}

.ar-bk-mcard--soon {
	border-style: dashed;
	background: transparent;
}

.ar-bk-mcard--soon .ar-bk-mcard__pic {
	filter: grayscale(1);
	opacity: .5;
}

.ar-bk-mcard--soon .ar-bk-mcard__nm,
.ar-bk-mcard--soon .ar-bk-mcard__role {
	color: var(--ar-muted);
}

.ar-bk-mcard__btn--soon {
	background: transparent;
	color: var(--ar-muted);
	box-shadow: inset 0 0 0 1px var(--ar-line);
}

/* ---------- 預約怎麼走 ---------- */

.ar-bk-how {
	margin-top: 56px;
	background: var(--ar-cream);
	border-radius: var(--ar-r-md);
	padding: 30px 34px 34px;
}

.ar-bk-how__t {
	font-family: var(--ar-serif);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: .05em;
	margin-bottom: 16px;
}

.ar-doc .ar-bk-how__list {
	counter-reset: bk;
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px 34px;
}

.ar-doc .ar-bk-how__list > li {
	position: relative;
	padding-left: 38px;
	margin: 0;
	font-size: 14.5px;
	line-height: 1.85;
	color: var(--ar-ink-soft);
}

.ar-doc .ar-bk-how__list > li::before {
	counter-increment: bk;
	content: counter(bk);
	position: absolute;
	left: 0;
	top: 2px;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: var(--ar-ink);
	color: var(--ar-accent-bright);
	font-family: var(--ar-serif);
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ar-doc .ar-bk-how__list > li b {
	display: block;
	color: var(--ar-ink);
}

/* ---------- 建築師頁 hero ---------- */

.ar-bk-hero {
	display: flex;
	align-items: flex-start;
	gap: 34px;
}

.ar-bk-hero__pic {
	flex: 0 0 auto;
	width: 148px;
	height: 148px;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(255, 255, 255, .1);
	box-shadow: 0 0 0 4px rgba(242, 177, 52, .55);
}

.ar-bk-hero__pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ar-bk-hero__txt {
	min-width: 0;
}

/* ---------- 日曆 ---------- */

.ar-bk-cal {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	align-items: start;
}

.ar-bk-cal__left,
.ar-bk-cal__right {
	background: var(--ar-surface);
	border: 1px solid var(--ar-line);
	border-radius: var(--ar-r-md);
	padding: 20px 22px 24px;
}

.ar-bk-month {
	display: none;
}

.ar-bk-month.is-on {
	display: block;
}

.ar-bk-month__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.ar-bk-month__t {
	font-family: var(--ar-serif);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: .06em;
}

.ar-bk-nav {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--ar-line);
	background: var(--ar-surface);
	color: var(--ar-ink);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.ar-bk-nav:hover:not(:disabled) {
	border-color: var(--ar-accent);
	background: var(--ar-cream);
}

.ar-bk-nav:disabled {
	opacity: .28;
	cursor: default;
}

.ar-bk-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
}

.ar-bk-grid__h {
	text-align: center;
	font-size: 11.5px;
	letter-spacing: .16em;
	color: var(--ar-muted);
	padding-bottom: 8px;
}

.ar-bk-day {
	position: relative;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: var(--ar-r-sm);
	background: transparent;
	font-family: var(--ar-serif);
	font-size: 15px;
	color: #B9B4A6;
	padding: 0;
}

.ar-bk-day--pad {
	visibility: hidden;
}

.ar-bk-day--today {
	color: var(--ar-ink-soft);
	box-shadow: inset 0 0 0 1px var(--ar-line);
}

.ar-bk-day--has {
	cursor: pointer;
	color: var(--ar-ink);
	font-weight: 700;
	background: rgba(242, 177, 52, .16);
	border-color: rgba(242, 177, 52, .4);
	transition: background .15s ease, border-color .15s ease;
}

.ar-bk-day--has:hover {
	background: rgba(242, 177, 52, .34);
}

.ar-bk-day--has.is-on {
	background: var(--ar-ink);
	border-color: var(--ar-ink);
	color: #FFFFFF;
}

.ar-bk-dot {
	position: absolute;
	bottom: 7px;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--ar-accent);
}

.ar-bk-day--has.is-on .ar-bk-dot {
	background: var(--ar-accent-bright);
}

/* ---------- 那一天的時間 ---------- */

.ar-bk-times {
	display: none;
}

.ar-bk-times.is-on {
	display: block;
}

.ar-bk-times__t {
	font-family: var(--ar-serif);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .05em;
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--ar-line-soft);
}

.ar-bk-times__list {
	display: grid;
	gap: 9px;
}

.ar-bk-time {
	display: flex;
	align-items: baseline;
	gap: 8px;
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--ar-line);
	border-radius: var(--ar-r-sm);
	background: var(--ar-surface);
	cursor: pointer;
	text-align: left;
	transition: border-color .15s ease, background .15s ease;
}

.ar-bk-time b {
	font-family: var(--ar-serif);
	font-size: 18px;
	font-weight: 700;
	color: var(--ar-ink);
}

.ar-bk-time span {
	font-size: 12.5px;
	color: var(--ar-muted);
}

.ar-bk-time span::before {
	content: "– ";
}

.ar-bk-time:hover {
	border-color: var(--ar-accent);
	background: var(--ar-cream);
}

.ar-bk-time.is-on {
	border-color: var(--ar-ink);
	background: var(--ar-ink);
}

.ar-bk-time.is-on b {
	color: #FFFFFF;
}

.ar-bk-time.is-on span {
	color: var(--ar-accent-bright);
}

/* ---------- 預約表單 ---------- */

.ar-bk-form {
	margin-top: 30px;
	background: var(--ar-surface);
	border: 1px solid var(--ar-line);
	border-radius: var(--ar-r-md);
	padding: 28px 32px 32px;
}

.ar-bk-form__t {
	font-family: var(--ar-serif);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: .05em;
	margin-bottom: 16px;
}

.ar-bk-form--login {
	text-align: center;
	background: var(--ar-cream);
	border-style: dashed;
}

.ar-bk-form--login p {
	color: var(--ar-ink-soft);
	font-size: 14.5px;
	text-align: center;
	margin-bottom: 20px;
}

.ar-bk-pick {
	background: var(--ar-cream);
	border-radius: var(--ar-r-sm);
	padding: 13px 18px;
	font-size: 14.5px;
	color: var(--ar-muted);
	margin-bottom: 22px;
}

.ar-bk-pick.is-on {
	background: var(--ar-ink);
	color: var(--ar-accent-bright);
	font-weight: 700;
	letter-spacing: .04em;
}

.ar-bk-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 24px;
}

.ar-bk-f {
	display: block;
}

.ar-bk-f--wide {
	grid-column: 1 / -1;
}

.ar-bk-f > span {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	color: var(--ar-ink-soft);
	margin-bottom: 7px;
}

.ar-bk-f > span i {
	font-style: normal;
	color: #C0392B;
}

.ar-bk-f > em {
	display: block;
	font-style: normal;
	font-size: 12.5px;
	line-height: 1.75;
	color: var(--ar-muted);
	margin-top: 7px;
}

.ar-bk-f input[type="text"],
.ar-bk-f input[type="email"],
.ar-bk-f input[type="tel"],
.ar-bk-f textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--ar-line);
	border-radius: var(--ar-r-sm);
	background: #FFFFFF;
	font-family: var(--ar-sans);
	font-size: 15px;
	color: var(--ar-ink);
}

.ar-bk-f input:focus,
.ar-bk-f textarea:focus {
	outline: none;
	border-color: var(--ar-accent);
	box-shadow: 0 0 0 3px rgba(242, 177, 52, .18);
}

.ar-bk-f input[type="file"] {
	width: 100%;
	font-size: 13.5px;
	color: var(--ar-ink-soft);
}

.ar-bk-submit {
	margin-top: 26px;
}

.ar-bk-submit:disabled {
	background: var(--ar-line);
	color: var(--ar-muted);
	cursor: not-allowed;
}

.ar-doc .ar-bk-note {
	font-size: 13px;
	line-height: 1.85;
	color: var(--ar-muted);
	margin: 14px 0 0;
	text-align: left;
}

/* ---------- 改圖範例 ---------- */

.ar-bk-samples {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px;
}

.ar-bk-sample {
	background: var(--ar-surface);
	border: 1px solid var(--ar-line);
	border-radius: var(--ar-r-md);
	overflow: hidden;
}

.ar-bk-sample img {
	width: 100%;
	height: auto;
	display: block;
}

.ar-bk-sample figcaption {
	padding: 14px 18px 16px;
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--ar-ink-soft);
	border-top: 1px solid var(--ar-line-soft);
}

/* ---------- 窄螢幕 ---------- */

@media (max-width: 900px) {
	.ar-bk-mentors {
		grid-template-columns: repeat(3, 1fr);
	}

	.ar-bk-cal {
		grid-template-columns: minmax(0, 1fr);
	}

	.ar-doc .ar-bk-how__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.ar-bk-hero {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 22px;
	}

	.ar-bk-hero .ar-hero__lead {
		margin-inline: auto;
	}

	.ar-bk-hero .ar-hero__facts {
		justify-content: center;
	}

	.ar-bk-samples {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.ar-bk-mentors {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.ar-bk-mcard {
		padding: 20px 12px 18px;
	}

	.ar-bk-mcard__pic {
		width: 88px;
		height: 88px;
	}

	.ar-bk-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.ar-bk-cal__left,
	.ar-bk-cal__right,
	.ar-bk-form {
		padding: 18px 16px 22px;
	}
}
