:root {
    --main-blue: #002567;
    --white: #fff;
    --text-dark: #01060F;
    --text-gray: #586174;
    --surface: #FFFFFF;
    --surface-soft: #F6F8FC;
    --line: #E4E9F2;
    --accent: #FA5C14;
    --accent-hover: #EA4F0C;
    --font_cafe: 'Cafe24 Ohsquare air';
    --font_GFC: 'GFC Gunhami Talks';

    --page-width: 430px;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body, h1, h2, h3, div, p, button, a, form, figure, fieldset, legend, label, input  {
    margin: 0; padding: 0
}
body {
    min-width: 320px;
    background: #F0F1F4;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-dark);
    word-break: keep-all;
}
button, input {
    font: inherit;
}
button {
    border: 0;
    cursor: pointer;
}
label {
    cursor: pointer;
}
img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 0;
}

.landing-page {
    width: 100%;
    max-width: var(--page-width);
    min-height: 100vh;
    margin: 0 auto;
    overflow: clip;
    background: #F0F1F4;
}

.image-section {
    position: relative;
    width: 100%;
}

.section-image {
    width: 100%;
    height: auto;
}

.section-second {
    z-index: 2;
    margin-top: 0;
}
.section-second .section-image {
    position: relative;
}

 .section-normal {
    position: relative;
    z-index: 1;
}

/* 타이머 */
.timer-overlay {
    position: absolute;
    top:84%;
    left: 50%;
    z-index: 10;
    width: 100%;
    padding: 0 20px;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    pointer-events: none;
}

.timer-title {
    display: none;
}

.timer-overlay .countdown {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

.timer-overlay .time-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
}

.timer-overlay .time-number {
    display: block;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 2px;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.timer-overlay .time-label {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,.72);
}

.timer-overlay .time-colon {
    margin-top: 1px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1;
    color: rgba(255,255,255,.8);
}

/* 퀵 상담 폼 */
.quick-form-section{
    padding:28px 22px;
    background:#F8FAFD;
}
.quick-form-box{
    padding:28px 20px;
    border-radius:20px;
    background:#fff;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
}
.quick-form-title{
    margin-bottom:8px;
    font-size:26px;
    font-weight:800;
    text-align:center;
}

.quick-form-title strong{
    color:#FA5C14;
}
.quick-form-desc{
    margin-bottom:24px;
    color:#6B7280;
    text-align:center;
}
.quick-consult-form{
    display:flex;
    flex-direction:column;
    gap:14px;
}

/* 고정배너*/
.fixed-benefit-bar {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 999;
    width: 100%;
    max-width: var(--page-width);
    min-height: 50px;
    padding-top: env(safe-area-inset-top);
    background:
        linear-gradient(
            135deg,
            rgba(250, 92, 20, 0.97),
            rgba(255, 112, 40, 0.97)
        );
    box-shadow: 0 8px 24px rgba(32, 43, 68, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -110%);
    transition:
        transform 0.25s ease,
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.fixed-benefit-bar.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.fixed-benefit-inner {
    display: flex;
    width: 100%;
    min-height: 50px;
    padding: 0 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, 1.8vw, 10px);
}

.fixed-benefit-text {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(2px, 0.8vw, 4px);
    color: var(--white);
    font-size: clamp(10px, 2.9vw, 12px);
    font-weight: 500;
    letter-spacing: -0.45px;
    line-height: 1.2;
    white-space: nowrap;
}

.fixed-benefit-text strong {
    display: inline;
    flex-shrink: 0;
    color: #FFEFD4;
    font-size: clamp(13px, 3.6vw, 15px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.fixed-countdown {
    display: flex;
    flex: 0 0 auto;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1px, 0.6vw, 3px);
    color: var(--white);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fixed-countdown span {
    display: inline-flex;
    width: clamp(25px, 7.5vw, 30px);
    height: clamp(29px, 8.5vw, 34px);
    padding: 0;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: clamp(6px, 1.8vw, 8px);
    background: rgba(1, 6, 15, 0.18);
    color: var(--white);
    font-size: clamp(11px, 3.3vw, 14px);
    font-weight: 700;
    line-height: 1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 6px rgba(24, 31, 48, 0.05);
}

.fixed-countdown em {
    flex-shrink: 0;
    margin-top: -1px;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(8px, 2.4vw, 11px);
    font-style: normal;
    font-weight: 500;
    line-height: 1;
}




/* 웹폼 */
.consult-section {
    position: relative;
    padding: 42px 22px calc(48px + env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 100% 0, rgba(12, 135, 233, 0.07), transparent 32%),
        linear-gradient(180deg, #F8FAFD 0%, #F1F4F9 100%);
    scroll-margin-top: 72px;
}
.form-group {
    margin-top: 20px;
}

.form-heading {
    margin-bottom: 28px;
}
.form-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1px;
    color: #111827;
}
.consult-section h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.55px;
    color: #172033;
}

.form-type {
    display: block;
    margin-bottom: 10px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}
.form-num {
    display: inline-flex;
    min-width: 24px;
    margin-right: 5px;
    color: #0C87E9;
    font-size: 11px;
    font-weight: 800;
}
.form-help {
    display: block;
    margin-top: 4px;
    color: #8A93A3;
    font-size: 11px;
    font-weight: 500;
}

/* 텍스트 입력 */
.text-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-dark);
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}
.text-input::placeholder {
    color: #a2a7b0;
}
.text-input:focus {
    border-color: rgba(12, 135, 233, 0.72);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(12, 135, 233, 0.10);
}

.form-water {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
}

/* 선택 버튼 */
.choice-grid {
    display: grid;
    gap: 8px;
}
.choice-grid.type-grid {
    grid-template-columns: repeat(5, 1fr);
}
.choice-grid.management-grid {
    grid-template-columns: repeat(2, 1fr);
}
.choice-grid.time-grid {
    grid-template-columns: repeat(5, 1fr);
}

.choice-option {
    position: relative;
}
.choice-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.choice-card {
    display: flex;
    min-height: 56px;
    padding: 9px 5px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.035);
    color: #667085;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.14s ease,
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.choice-icon {
    display: flex;
    width: 32px;
    height: 28px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    pointer-events: none;
}
.choice-icon img {
    width: auto;
    max-width: 32px;
    height: 24px;
    object-fit: contain;
}

.choice-option input:checked + .choice-card {
    border-color: rgba(12, 135, 233, 0.72);
    background: #EEF8FF;
    color: #0B5F9B;
    box-shadow:
        0 0 0 1px rgba(12, 135, 233, 0.08),
        0 6px 16px rgba(12, 135, 233, 0.08);
}

.choice-option input:focus-visible + .choice-card {
    outline: 2px solid rgba(12, 135, 233, 0.45);
    outline-offset: 2px;
}


.choice-card:active {
    transform: translateY(1px);
}

.choice-card-priority{
    border-color:rgba(250,92,20,.28);
    background:#FFF7F2;
    color:#D94D0B;
}

.choice-option input:checked + .choice-card-priority{
    border-color:#FA5C14;
    background:#FFF0E7;
    color:#C94408;

    box-shadow:
        0 0 0 1px rgba(250,92,20,.08),
        0 6px 16px rgba(250,92,20,.10);
}

.management-grid .choice-card, .time-grid .choice-card {
    min-height: 51px;
    font-size: 11px;
}



/* 개인정보 */
.privacy-area {
    margin-top: 26px;
    padding: 14px 15px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.privacy-label {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.privacy-label input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.custom-checkbox {
    position: relative;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex-shrink: 0;
    border: 1px solid #aeb4c0;
    border-radius: 3px;
    background: var(--white);
}

.privacy-label input:checked + .custom-checkbox {
    border-color: transparent;
    background: #0C87E9;
}

.privacy-label input:checked + .custom-checkbox::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    height: 8px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(40deg);
}
.privacy-label input:focus-visible + .custom-checkbox {
    outline: 2px solid rgba(12, 135, 233, 0.45);
    outline-offset: 2px;
}

.privacy-text {
    color: #6f7683;
    font-size: 10px;
    line-height: 1.5;
}

/* 제출 버튼 */
.submit-button {
    display: flex;
    width: 100%;
    min-height: 54px;
    margin: 24px auto 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #FA5C14 0%, #FF7440 100%);
    box-shadow:
        0 10px 22px rgba(250, 92, 20, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.45px;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        filter 0.16s ease;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(39, 51, 75, 0.22);
    filter: brightness(1.02);
}

.submit-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(39, 51, 75, 0.16);
}

.submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.submit-button:focus-visible {
    outline: 3px solid rgba(250, 92, 20, 0.3);
    outline-offset: 3px;
}

/* 퀵버튼 */
.quick-consult-button {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 900;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: calc(100% - 28px);
    max-width: calc(var(--page-width) - 28px);
    min-height: 64px;
    padding: 9px 9px 9px 16px;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.90);
    color: #111827;
    text-decoration: none;
    box-shadow:
        0 18px 46px rgba(0, 18, 48, 0.20),
        0 4px 12px rgba(0, 18, 48, 0.08);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    transform: translateX(-50%);
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.quick-consult-button.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 18px);
}

.quick-consult-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.quick-benefit {
    overflow: hidden;
    max-width: 100%;
    color: #F05A18;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.2px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-consult-title {
    overflow: hidden;
    max-width: 100%;
    color: #111827;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.65px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-consult-cta {
    display: inline-flex;
    min-width: 86px;
    height: 46px;
    padding: 0 14px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 13px;
    background: #172033;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.25px;
    box-shadow: 0 7px 16px rgba(23, 32, 51, 0.20);
    transition:
        transform 0.16s ease,
        background-color 0.16s ease;
}

.quick-consult-cta svg {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

/* 스팸 방지 입력 */
.website-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}



@media (hover: hover) {
    .quick-consult-button:hover {
        transform: translateX(-50%) translateY(-2px);
        box-shadow:
            0 22px 52px rgba(0, 18, 48, 0.24),
            0 5px 14px rgba(0, 18, 48, 0.10);
    }

    .quick-consult-button:hover .quick-consult-cta {
        background: #0F172A;
    }

    .quick-consult-button:hover .quick-consult-cta svg {
        transform: translateX(2px);
    }
}

.quick-consult-button:active {
    transform: translateX(-50%) translateY(1px);
}

.quick-consult-button:focus-visible {
    outline: 3px solid rgba(250, 92, 20, 0.30);
    outline-offset: 4px;
}

/* 모바일 대응 */
@media (max-width: 360px) {
    .timer-overlay {
    padding: 0 14px;
    }
    .countdown {
    gap: 4px;
    }

    .consult-section {
    padding-right: 17px;
    padding-left: 17px;
    }
    .choice-grid.type-grid {
    gap: 5px;
    }
    .choice-card {
    font-size: 9px;
    }

    .choice-grid.time-grid{
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap: 6px;
    }
    .time-grid .choice-option{
        grid-column:span 2;
    }
    .time-grid .choice-option:nth-child(4){
        grid-column:2 / span 2;
    }
    .time-grid .choice-option:nth-child(5){
        grid-column:4 / span 2;
    }

    .fixed-benefit-inner {
        padding-inline: 7px;
        gap: 4px;
    }
    .fixed-benefit-text {
        gap: 1px;
        font-size: 10px;
        letter-spacing: -0.6px;
    }
    .fixed-benefit-text strong {
        font-size: 13px;
    }
    .fixed-countdown {
        gap: 1px;
    }
    .fixed-countdown span {
        width: 25px;
        height: 29px;
        font-size: 11px;
        border-radius: 6px;
    }
    .fixed-countdown em {
        font-size: 8px;
    }

    .quick-consult-button {
        bottom: max(10px, env(safe-area-inset-bottom));
        width: calc(100% - 20px);
        min-height: 64px;
        padding: 7px 7px 7px 14px;
        border-radius: 15px;
    }
    .quick-benefit {
        font-size: 10px;
    }
    .quick-consult-title {
        font-size: 15px;
        letter-spacing: -0.5px;
    }
    .quick-consult-cta {
        min-width: 92px;
        height: 46px;
        padding: 0 12px;
        border-radius: 11px;
        font-size: 13px;
    }
}

/* PC에서 모바일 프레임 형태 */
@media (min-width: 431px) {
    .landing-page {
    box-shadow: 0 8px 30px rgba(15, 29, 55, 0.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fixed-benefit-bar {
        transition: none;
    }

    .quick-consult-button,
    .quick-consult-cta,
    .quick-consult-cta svg {
        transition: none;
    }
    .quick-consult-button:hover,
    .quick-consult-button:active {
        transform: translateX(-50%);
    }
    .quick-consult-button:hover .quick-consult-cta svg {
        transform: none;
    }
}