/* 신청서·고객센터 화면용 추가 스타일 (디자인 hosting_support.css 의 색·모양을 따른다) */
.app-flash { margin: 0 0 20px; padding: 13px 16px; border: 1px solid #cfe3d6; background: #eef8f1; color: #14532d; font-weight: 600; }
.app-flash.err, .app-error { border-color: #f0c4c7; background: #fff4f5; color: #a8151d; }
.app-error { margin: 0 0 20px; padding: 13px 16px; border: 1px solid #f0c4c7; font-weight: 600; }
.app-field-err { display: block; margin: -2px 0 6px; color: #a8151d; font-size: 14px; font-weight: 600; }
.app-hint { color: #5b6a7b; font-size: 14px; }

/* 서비스 고르기 */
.app-groups { display: grid; gap: 20px; }
.app-sub { margin: 14px 0 4px; font-size: 16px; color: #29394a; }
.app-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
#ai-automation-site .app-services a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 10px 16px; border: 1px solid #d3dbe4; background: #f8fafc; color: #111b28; font-weight: 700; }
#ai-automation-site .app-services a::after { content: "→"; color: #c71922; }
#ai-automation-site .app-services a:hover { border-color: #c71922; background: #fff4f5; color: #a8151d; }

/* 신청서 */
.app-form { display: grid; gap: 20px; }
.app-rows { display: grid; gap: 0; margin: 0; }
.app-row { display: grid; grid-template-columns: minmax(130px, .32fr) 1fr; gap: 14px; align-items: start; padding: 13px 0; border-top: 1px solid #e3e7ee; }
.app-row:first-child { border-top: 0; }
.app-row > .k { padding-top: 11px; font-weight: 700; color: #29394a; }
.app-row > .k .req { color: #c71922; margin-left: 2px; }
.app-row > .v { min-width: 0; }
.app-form :is(input[type=text], input[type=email], input[type=password], input[type=tel], select, textarea),
.support-card :is(input[type=text], input[type=email], input[type=password], input[type=tel], select, textarea) {
  min-width: 0; max-width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #b8c4d1; background: #fff; color: #111b28; font: inherit;
}
.app-form textarea, .support-card textarea { width: 100%; min-height: 110px; resize: vertical; }
.app-form :is(input, select, textarea):focus-visible, .support-card :is(input, select, textarea):focus-visible { outline: 2px solid #c71922; outline-offset: 2px; }
.app-w-full { width: 100%; } .app-w-mid { width: min(360px, 100%); } .app-w-sm { width: 120px; } .app-w-xs { width: 84px; }
.app-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.app-options { width: 100%; border-collapse: collapse; }
.app-options td { padding: 7px 6px; border-top: 1px solid #edf0f4; vertical-align: middle; }
.app-options td.p { text-align: right; white-space: nowrap; color: #435365; }
.app-options td.q { width: 90px; text-align: right; }
.app-options tr:first-child td { border-top: 0; }
.app-sum { position: sticky; bottom: 0; z-index: 2; border: 1px solid #dbe2e9; border-top: 3px solid #e51b23; background: #fff; padding: 16px clamp(18px, 3vw, 30px); box-shadow: 0 -8px 24px rgba(17,29,44,.07); }
.app-sum dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 18px; margin: 0; }
.app-sum dt { color: #5b6a7b; font-size: 14px; }
.app-sum dd { margin: 0; font-size: 19px; font-weight: 800; }
.app-sum dd.total { color: #c71922; }
.app-sum p { margin: 8px 0 0; font-size: 13px; color: #5b6a7b; }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.app-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* 고객센터 */
.app-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
#ai-automation-site .app-tabs a, .app-tabs button { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border: 1px solid #cfd8e2; background: #fff; color: #29394a; font: inherit; font-weight: 700; cursor: pointer; }
#ai-automation-site .app-tabs a[aria-current="page"] { border-color: #c71922; background: #c71922; color: #fff; }
.app-tabs form { margin: 0; }
.app-who { margin: 0 0 14px; color: #435365; text-align: center; }
/* 좁은 카드(결제·결과·비밀번호)는 가운데 정렬 */
.support-card.app-narrow { width: 100%; max-width: 640px; margin-inline: auto; text-align: center; }
.app-narrow .support-list > div { grid-template-columns: 1fr 1fr; }
.app-narrow .support-list dt { text-align: right; }
.app-narrow .support-list dd { text-align: left; }
.app-narrow .app-actions { justify-content: center; }
.app-narrow .support-fields { max-width: 420px; margin-inline: auto; text-align: left; }
.app-narrow .support-fields button { justify-self: center; min-width: 160px; }
.app-narrow .app-error { text-align: left; }
.support-table .num { text-align: right; white-space: nowrap; }
.support-table .c { text-align: center; }
.support-table th { background: #f3f6f9 !important; font-weight: 700; white-space: nowrap; }
.support-table tfoot td { background: #f8fafc !important; font-weight: 700; }
.app-state { display: inline-block; padding: 2px 10px; border-radius: 12px; background: #eef1f4; font-size: 13px; font-weight: 700; white-space: nowrap; }
.app-state.on { background: #fde8e9; color: #a8151d; }
.app-unpaid { color: #c71922; }
.app-term { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
#ai-automation-site .app-term a { padding: 6px 14px; border: 1px solid #cfd8e2; background: #fff; font-weight: 600; }
#ai-automation-site .app-term a[aria-current="page"] { border-color: #c71922; color: #a8151d; background: #fff4f5; }
@media (max-width: 720px) {
  .app-row { grid-template-columns: 1fr; gap: 4px; }
  .app-row > .k { padding-top: 0; }
}

/* 카드 결제: 금액은 표시만(고객이 바꿀 수 없음) */
.app-pay-amount { font-size:17px; margin:10px 0 14px; text-align:center; }
.app-pay-amount b { font-size:22px; margin:0 4px; }

/* 비밀번호 찾기 */
.app-ok { margin: 0 0 20px; padding: 13px 16px; border: 1px solid #f3cfd1; background: #fff6f6; color: #b3161d; font-weight: 600; }   /* 메인 색(빨강) 계열의 흐린 붉은색 */
.app-forgot { margin: 12px 0 0; text-align: center; font-size: 14px; }
