:root {
    --main-color: #0051a3;
    --main-color-2: #086fb8;
    --sub-color: #77c32b;
    --sub-color-2: #3E6B11;
    --sub-color-3: #EC8A30;
    --sub-color-4: #CB5715;
    --c-black-1: #222;
    --c-black-2: #333;
    --c-black-3: #555;
    --c-black-4: #757575;
    --c-black-5: #ddd;
    --c-black-6: #efefef;
    --c-black-7: #fafafa;

    accent-color: #086fb8;

    --txt-xs: 0.75rem;/* 12px */
    --txt-sm: 0.875rem;/* 14px */
    --txt-md: 1rem;/* 16px */
    --txt-lg: 1.125rem;/* 18px */
    --txt-xl: 1.25rem;/* 20px */
    --txt-2xl: 1.5rem;/* 24px */
    --txt-3xl: 1.75rem;/* 28px */
    --txt-4xl: 2rem;/* 32px */
    --txt-5xl: 3rem;/* 48px */
    --txt-6xl: 3.75rem;/* 60px */

    --pad-tb-xs: 0.625rem 0;/* 10px 0 */
    --pad-tb-sm: 1.25rem 0;/* 20px 0 */
    --pad-tb-md: 1.875rem 0;/* 30px 0 */
    --pad-tb-lg: 2.5rem 0;/* 40px 0 */
    --pad-tb-xl: 3.75rem 0;/* 60px 0 */
    --pad-tb-2xl: 5.625rem 0;/* 90px 0 */

    --web-width: 1200px;

    --main-font: 'Pretendard', 'Noto Sans KR', sans-serif;
    
    --board-width: 1200px;
    --board-height: 960px;
    --piece-w: 180px;
    --piece-h: 180px;
    --offset: 30px;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    word-break: keep-all;
}

body{
  font-family: var(--main-font); 
  background: var(--c-black-7);
  margin: 0;
  font-size: var(--txt-md);
}

.wrapper{
    max-width: var(--web-width);
    margin: 10rem auto 0;
    min-height: 578px;
}
/* GNB 헤더 스타일 */
.top-util-bar {
    background-color: var(--main-color-2); 
    border-bottom: 1px solid #eaeaea;
}
.top-util-container {
    max-width: var(--web-width);
    margin: 0 auto;
    padding: 6px 20px; 
    display: flex;
    justify-content: flex-end; 
}
.top-util-container .home-link {
    display: flex;        
    align-items: center; 
    font-size: var(--txt-sm);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.top-util-container .home-link::before {
    font-family: 'Material Icons';
    content: "\e89e";          
    font-size: 15px;           
    margin-right: 4px;          
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #fff;
}

.gnb-header {
    background-color: #fff;
    border-bottom: 1px solid var(--c-black-6);
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.gnb-container {
max-width: var(--web-width);
    margin: 0 auto;
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 15px 20px;
    position: relative;
    height: 50px;
}
.gnb-container .logo{
position: absolute;   
    left: 20px;        
    width: 180px;
    height: auto;
}
.gnb-container .logo img{
    width: 100%;
    object-fit: cover;
}
.gnb-nav{
    display: flex;
}
.gnb-nav a {
    text-decoration: none;
    color: var(--c-black-1);
    font-weight: 500;
    font-size: var(--txt-lg);
    position: relative;
    display: inline-flex;
    align-items: center;
    text-align: center;
}
.gnb-nav a:not(:last-child)::after {
    content: "";
    width: 1px;
    height: 14px;
    background-color: #a4a4a4;
    margin: 0 40px;
    display: inline-block;
    vertical-align: middle;
}

.gnb-nav a:hover {
    color: var(--main-color);
    font-weight: 700;
}

.donation-hero {
    background: #fdf5ea;
    margin: 110px auto 0;
    height: 480px;
    align-content: center;
}


.donation-hero .inner{
    max-width: var(--web-width);
    margin: 0 auto;
}
.donation-hero .text_wrap{
    text-align: left;
    justify-items: start;
    position: relative;
    z-index: 10;
}
.donation-hero .text_wrap::after{
position: absolute;
    content: ""; 
    background-image: url(../images/visual_pic.png?v=1.0);
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;
    right: 0;
    bottom: -48px;
    width: 380px; 
    aspect-ratio: 3/2;    
    z-index: -1;
}

.donation-hero.second {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url(../images/visual_bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-top: 4rem;
}

.donation-hero.second .text_wrap::after{
    display: none;
}

.dashboard-badge {
    display: inline-block;
    font-size: var(--txt-xs);
    font-weight: 700;
    color: #ff7936;
    background-color: #ff793630;
    padding: 6px 12px;
    border-radius: 50px;
    letter-spacing: 1px;
}

.donation-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 8px 0 16px 0;
    letter-spacing: -0.8px;
    color: #ff7936;
    position: relative;
}

.donation-hero h1::after {
    position: absolute;
    content: '';
    width: 120px;
    height: 3px;
    background: #ff7936;
    right: -37%;
    top: 50%;
    transform: translateY(-50%);
}

.donation-hero .logo_sm{
    width: 140px;
}
.donation-hero .logo_sm img{
    width: 100%;
    height: auto;
    object-fit: cover;
}

.donation-hero .desc {
    font-size: var(--txt-lg);
    line-height: 1.6;
    letter-spacing: -0.3px;
    color: #3d3a34;
}
.donation-hero .desc.sm{
    font-size: var(--txt-md);
}
.donation-hero .desc span{
    font-weight: 700;
}

.main-container{
    max-width: var(--web-width);
    margin: 3rem auto;
}
p.notice{
    margin: 0 0 1rem;
    text-align: right;
    color: var(--c-black-4);
}
p.notice_sm{
    margin:0;
    font-size: var(--txt-sm);
    color: var(--c-black-4);
}
.museum-data{
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.museum-data-row {
    padding: 2rem;
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgb(189 180 151 / 16%);
}

.museum-data-split {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    width: 100%;
}

.museum-data-label {
    font-size: var(--txt-lg);
    color: var(--c-black-2);
    font-weight: 500;
    letter-spacing: -0.3px;
    white-space: nowrap;
    margin-right: 2rem;
}

.museum-data-value {
    flex-shrink: 0; 
    font-size: var(--txt-2xl);
    font-weight: 700;
    color: var(--main-color);
}

.font-highlight {
    color: var(--main-color);
}


.museum-progress-track {
    flex-grow: 1; 
    height: 8px; 
    background-color: #f1f1f1;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.museum-progress-bar {
    height: 100%;
    background-color: var(--main-color);
    border-radius: 50px; 
    width: 0%; 
    will-change: width;
    transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
}

#campaignProgressText {
    display: inline-block;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-family: inherit;
    width: 64px;
}



/* 퍼즐 보드 캔버스 구조 */
.puzzle-view {
    width: 100%;        
    /* overflow-x: auto;    */
    /* overflow-y: hidden;   */
    -webkit-overflow-scrolling: touch; 
    display: flex;
    justify-content: center; 
}

.puzzle-wrapper {
    width: var(--board-width);
    height: var(--board-height);
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    border-radius: 4px;
    perspective: 1000px; 
}
.puzzle-board {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* 퍼즐 조각 컴포넌트 */
.puzzle-piece {
    position: absolute;
    width: var(--piece-w);  
    height: var(--piece-h);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
    
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); 
    
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.6s ease-out, 
                filter 0.6s ease-out;
    
    transform: scale(1.005) rotateY(0deg); 
    opacity: 0;
    
    filter: none; 

    outline: 1px solid transparent; 
    backface-visibility: hidden;
    will-change: transform;
}

.puzzle-piece::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* 얇고 진한 테두리를 레이어로 추가 */
    box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.3);
    pointer-events: none;
    clip-path: inherit;
}

/* 등장 상태 구현 클래스 */
.puzzle-piece.flip-entrance {
    opacity: 1;
    transform: scale(1.025) rotateY(0deg);
}

/* 조각 내부 날짜 텍스트 기본 서식 */
.piece-date {
font-size: var(--txt-sm);
    font-weight: 600; 
    color: #fff;
    text-shadow: 0 0 4px rgba(0,0,0,0.8); 
    z-index: 5;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.2s ease;
}
.piece-day {
    display: block;
    font-size: 0.8em; 
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);     
    text-shadow: 0 0 4px rgba(0,0,0,0.4); 
    margin-top: 6px;
    z-index: 5;
    pointer-events: none;
    user-select: none;
}

.piece-goal {
    display: block;
    font-size: 0.9em;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 4px rgba(0,0,0,0.8);
    margin-bottom: 2px;
}
/* ========================================================
   ★ 무한 루프 키프레임 애니메이션 정의 구역
   ======================================================== */
@keyframes pulsingTwinkle {
    0% {
        filter: brightness(1);
        transform: scale(1.025) rotateY(0deg);
    }
    50% {
        filter: brightness(1.2) sepia(30%) hue-rotate(-10deg);
        transform: scale(1.045) rotateY(0deg);
    }
    100% {
        filter: brightness(1);
        transform: scale(1.025) rotateY(0deg);
    }
}
@keyframes labelGlow {
    0% {
        box-shadow: 0 3px 8px rgba(0,0,0,0.25);
        filter: drop-shadow(0 0 2px rgba(255, 244, 180, 0.6));
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 244, 180, 0.9), 0 0 25px rgba(255, 164, 52, 0.6);
        filter: drop-shadow(0 0 8px rgba(255, 244, 180, 1));
        transform: scale(1.1);
    }
    100% {
        box-shadow: 0 3px 8px rgba(0,0,0,0.25);
        filter: drop-shadow(0 0 2px rgba(255, 244, 180, 0.6));
    }
}

/* ========================================================
   과거/현재/미래 상태별 제어 선언부
   ====================================================== */

/* 1. 과거 날짜 (Past) */
.puzzle-piece.past {
    filter: brightness(1);
    z-index: 1;
    cursor: default;
}
.puzzle-piece.past.flip-entrance {
    transform: scale(1.025) rotateY(0deg); 
}
.puzzle-piece.past .piece-date,
.puzzle-piece.past .piece-day{
    color: rgba(255,255,255,0.5);
}

/* 2. 오늘 날짜 (Current) */
.puzzle-piece.current.flip-entrance {
    z-index: 99; 
    cursor: pointer;
    animation: pulsingTwinkle 2.5s infinite ease-in-out;
}

.puzzle-piece.current {
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    will-change: transform, filter;
}

/* 오늘 날짜에 마우스를 올렸을 때 (Hover) */
.puzzle-piece.current:hover {
    animation: none; 
    filter: brightness(1.5) sepia(10%);
    transform: scale(1.08) rotateY(0deg); 
    z-index: 100;
}
.puzzle-piece.current:hover .piece-date {
    animation: none;
    box-shadow: 0 0 20px rgba(255, 244, 180, 1);
    transform: scale(1.15);
}

/* 오늘 날짜 글자 캡슐 효과 */
.puzzle-piece.current .piece-date {
    opacity: 1;
    font-size: var(--txt-md);
    color: var(--c-black-1) !important;
    background-color: rgba(255,255,255,0.9);
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 700;
    text-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: labelGlow 2.5s infinite ease-in-out;
}

/* 3. 미래 날짜 (Future) */
.puzzle-piece.future {
    filter: grayscale(100%) brightness(0.35);
    z-index: 0;
    background-color: rgb(179 179 179 / 20%);
    background-blend-mode: color; 
}
.puzzle-piece.future.flip-entrance {
    filter: grayscale(100%);
    background-color:rgb(179 179 179 / 20%);
    background-blend-mode: color;
    opacity: 1 !important; 
    transform: scale(1.00) rotateY(0deg);
}
.puzzle-piece.future .piece-date,
.puzzle-piece.future .piece-day {
    display: none;
    color: #fff;
}


.puzzle-piece:nth-last-child(1) .piece-date,
.puzzle-piece:nth-last-child(1) .piece-day,
.puzzle-piece:nth-last-child(1) .piece-goal {
    display: block !important;
    color: #fff !important;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 700;
    
    text-shadow: 
        0 0 4px rgba(0,0,0,0.8),   
        0 0 5px #ffea00,           
        0 0 10px #ffea00,         
        0 0 15px #ff9500;        
}

.main_tit{
  text-align: center;
  margin: 4rem auto 0;
}
.main_tit h2{
  font-size: 2.5rem;
}



/*메인 - 기부 내역 조회*/
.donation-lookup-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4rem;
    background: #ecf5fb;
    padding: 2rem;
    border-radius: 0.75rem;
}

.lookup-wrapper {
    width: 100%;
    max-width: 640px;
    text-align: center;
}

.lookup-header {
    margin-bottom: 24px;
}

.lookup-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: var(--c-black-1);
    margin: 0;
}

.lookup-bar-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px; 
    padding: 6px 6px 6px 24px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.lookup-bar-form input:-webkit-autofill,
.lookup-bar-form input:-webkit-autofill:hover,
.lookup-bar-form input:-webkit-autofill:focus,
.lookup-bar-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: var(--c-black-1) !important;   
    transition: background-color 5000s ease-in-out 0s;   
}

.lookup-bar-form input:focus {
    outline: none;
    background-color: transparent !important;
}

.lookup-input-box {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.lookup-input-box input {
    width: 100%;
    height: 44px;
    background: transparent;
    border: none;
    outline: none;
    font-size: var(--txt-sm);
    font-weight: 500;
    color: #222222;
    padding: 0;
}

.lookup-input-box input::placeholder {
    color: #999999;
}

.lookup-divider {
    width: 1px;
    height: 20px;
    background-color: #e0e0e0;
    margin: 0 20px;
}

.rrn-box {
    flex: 1.3;
}

.rrn-masked-text {
    font-size: var(--txt-sm);
    color: #b5b5b5;
    letter-spacing: 1px;
    margin-left: 8px;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

.btn-lookup-trigger {
    width: 44px;
    height: 44px;
    background-color: #111111;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-lookup-trigger:hover {
    background-color: #333333;
    transform: scale(1.02);
}





/* ========================================================
    폼
   ======================================================== */


.donation-page-wrapper {
    max-width: 600px; 
    margin: 0 auto 3rem;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px; 
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.modal-date-info {
    font-size: var(--txt-sm);
    margin-bottom: 32px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 16px;
    color: var(--c-black-3, #666);
    font-weight: 500;
    text-align: left; 
    letter-spacing: -0.3px;
}
.modal-date-info span {
    font-size: 1rem;
    font-weight: 700;
    margin-left: 6px;
    color: var(--main-color, #0051a3);
}

.form-group {
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    font-size: var(--txt-md);
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--c-black-2, #333);
    letter-spacing: -0.3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--c-black-5); 
    padding: 12px;     
    outline: none;
    border-radius: 4px; 
    box-sizing: border-box;
    font-size: var(--txt-sm);
    font-family: var(--main-font);
    /* background-color: #fafafa; */
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input.ip-short {
    max-width: 180px;
}

.phone-split-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-split-input .ip-short {
    flex: 1;
    text-align: center;
}

.phone-dash {
    color: #a0aec0;
    font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: #ffffff;
    border-color: var(--main-color, #0051a3);
    box-shadow: 0 0 0 3px rgba(0, 81, 163, 0.1);
}

.form-group textarea {
    height: 120px;
    resize: none;
    line-height: 1.5;
}

.rrn-split-input {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rrn-split-input input {
    flex: 1;
    text-align: center;
    letter-spacing: 1px;
}

.rrn-dash {
    color: #a0aec0;
    font-weight: 500;
}

.amount-input-wrapper {
  margin: 10px 0;
  position: relative;
  max-width: 260px;
}
.amount-input-wrapper input {
    padding-right: 45px !important;
}
.amount-input-wrapper select {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  appearance: none; 
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.3s ease;
}

.amount-input-wrapper select:hover {
  border-color: #0f4496; 
}

.amount-input-wrapper select:focus {
  outline: none;
  border-color: #0f4496;
  box-shadow: 0 0 0 2px rgba(15, 68, 150, 0.1);
}



.amount-unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-black-3, #4a5568);
    pointer-events: none;
}

.privacy-box {
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid #edf2f7;
    padding: 16px;
    border-radius: 8px;
    box-sizing: border-box;
    line-height: 1.5;
    font-size: 0.875rem;
    color: var(--c-black-4);
}

.privacy-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
.privacy-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}
.privacy-check label {
    margin-bottom: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--c-black-3);
    cursor: pointer;
}

.button-wrap {
    width: 100%;
    display: flex;
    gap: 12px;
    margin-top: 36px;
    box-sizing: border-box;
}
.button-wrap .btn {
    flex: 1;
    padding: 14px;
    font-size: var(--txt-sm);
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1;
    text-decoration: none;
}

.btn-secondary {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid var(--c-black-5);
}

.btn-primary {
    background-color: var(--main-color);
    color: #ffffff;
    border: 1px solid var(--main-color);
}


/*기부 완료 페이지*/
.success-page-wrapper {
    max-width: 540px;
    margin: 80px auto;
    padding: 50px 40px;
    background-color: #ffffff;
    border-radius: 8px;
    box-sizing: border-box;
    text-align: center;
}

.success-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border: 1px solid var(--main-color, #0051a3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon-wrap svg {
    width: 32px;
    height: 32px;
    fill: var(--main-color, #0051a3);
}

.success-page-wrapper h2 {
    font-size: var(--txt-2xl, 1.5rem);
    color: var(--c-black-1, #222);
    font-weight: 800;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.success-desc {
    font-size: var(--txt-md, 1rem);
    line-height: 1.6;
    color: var(--c-black-3, #555);
    margin: 0 0 40px 0;
    letter-spacing: -0.3px;
}

/* 영수증 일지 스타일의 데이터 요약 박스 */
.donation-cert-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0rem;
    margin-bottom: 3rem;
}
.donation-cert-wrapper .button-wrap{
    justify-content: center;
    margin-top: 1.5rem;
    align-items: center;
}
.donation-cert-wrapper .btn{
    max-width: 200px;
    text-align: center;
}
.donation-cert-wrapper .btn span{
    font-size: 20px;
    vertical-align: middle;
}
.donation-cert {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--c-black-5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.donation-cert img {
    width: 100%;
    display: block;
    object-fit: contain;
}

.download-btn {
    width: 100%;
    max-width: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.download-btn::after {
    font-family: 'Material Icons';
    content: "\e2c4";
    font-size: 18px;
}

.receipt-summary-box {
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid #edf2f7;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

.receipt-row:last-child {
    border-bottom: none;
}

.receipt-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-black-3, #666);
}

.receipt-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-black-2, #333);
}

.receipt-value.message {
    color: #4a5568;
    max-width: 70%;
    text-align: right;
    line-height: 1.4;
}

.receipt-value.highlight {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--main-color, #0051a3);
}

.history-result-box {
    display: none;
}

.history-result-box.active {
    display: block; /* 조회 성공 시 활성화 */
}
.search-form-box.hidden {
    display: none; /* 조회 완료 후 폼 숨김 마스킹 */
}


/*--- 참여방법안내 ---*/
.donate_wrap .text_box{
    background: #fff;
    padding: 2rem;
    margin-bottom: 3rem;
}
.donate_wrap .text_box p{
    font-size: var(--txt-md);
    margin: 0;
    line-height: 1.5;
    color: var(--c-black-2);
    text-align: justify;
}
.donate_wrap .text_box p + p{
    margin-top: 1rem;
}

.section_title {
    font-size: var(--txt-2xl);
    margin-bottom: 16px;
    border-bottom: 1px dashed var(--c-black-5);
    padding-bottom: 16px;
    text-align: left;
}

.step_list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 3rem;
}
.step_item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    color: var(--c-black-3);
    justify-items: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step_item p{
    margin: 0;
    word-break: keep-all;
    line-height: 1.3;
}
.step_item .icon{
    width: 40px;
    height: auto;
    margin-bottom: 0.5em;
}
.step_item .icon img{
    width: 100%;
    object-fit: cover;
}
.step_num {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--main-color);
    margin-bottom: 8px;
}
.step_item strong{
    font-size: var(--txt-xl);
    margin-bottom: 12px;
    display: block;
    color: var(--c-black-1);
}


.donate_info_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.donate_info_grid .info_box{
    background: #fff;
    border-bottom: none;
    padding: 2rem;
    border-radius: 8px;
}
.donate_info_grid .info_box .section_title{
    margin-top: 0;
}
.check_list {
    list-style: none;
    padding: 0;
    text-align: left;
}
.check_list li {
    padding: 4px 0;
    position: relative;
    padding-left: 1rem;
    font-size: var(--txt-md);
    color: var(--c-black-1);
}
.check_list li::before{
    position: absolute;
    content:'';
    width: 4px;
    height: 4px;
    background: var(--main-color);
    top: 15px;
    left: 0;
}

.contact_box {
    background: #e8ecef;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.4;
}
.contact_box .section_title{
    margin: 0 0 2rem;
    color: var(--c-black-1);
    text-align: center;
    border-bottom: 0;
    padding-bottom: 0;
    position: relative;
}
.contact_box .section_title::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background: var(--main-color);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
}
.contact_box .section_title p{
    color: var(--c-black-3);
}
.contact_info {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.bottom_title {
    background: linear-gradient(to bottom, rgb(113 73 53 / 60%), rgb(113 73 53 / 60%)), url(../images/guide_bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    /* margin: 0 auto 4rem; */
    line-height: 1.4;
    padding: 1.5rem;
    font-size: 1.5rem;
    color: #fff;
    height: 200px;
    align-content: center;
}
.bottom_title .inner{
    max-width: calc(1200px - 5rem);
    margin: 0 auto;
}
.bottom_title h2{
    margin: 0;
}

.bottom_title h2.top {
    position: relative; 
    padding-left: 20px; 
}

.bottom_title h2.top::before {
    content: "";
    position: absolute;
    left: -2rem;
    top: -3rem;
    width: 80px;
    height: 80px;
    border-left: 12px solid #ff7936;
    border-top: 12px solid #ff7936;
}

.bottom_title h2.btm {
    margin-left: 4rem;
    position: relative;
    width: fit-content;
}
.bottom_title h2.btm::after {
    position: absolute;
    content: '';
    width: 128px;
    height: 6px;
    background: #ff7936;
    top: 50%;
    transform: translateY(-50%);
    right: -10rem;
}

.footer_wrap{
    width: auto;
    display: flex;
    flex-direction: column;
}
.footer_wrap .top{
    max-width: var(--web-width);
    margin: 0 auto;
    width: 100%;
}
.footer_wrap .top .footer_logo{
    width: 180px;
    height: auto;
}
.footer_wrap .top .footer_logo img{
    width: 100%;
    object-fit: cover;
}
.footer_wrap .footer{
    max-width: var(--web-width);
}
.footer_wrap .footer .footer_sns ul{
    padding: 0;
}
.footer_sns li{
    list-style: none !important;
}

div.flex{
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}



@media (max-width: 1200px) {
    .puzzle-view{
        overflow-x: auto !important;
        overflow-y: hidden;
    }
    .donation-hero .inner{
        padding: 0 2rem;
    }
    .donation-lookup-section{
        margin: 4rem 2rem 0;
    }
    .donate_wrap{
       padding: 0 2rem;
    }
    .bottom_title .inner{
            padding: 0 2rem;
    }
    p.notice{
        padding: 0 2rem;
    }

}

@media (max-width: 1024px) {
    .bottom_title{
        text-align: center;
    }
    .bottom_title h2.btm{
        margin-left: 0;
        width: auto;
    }
    .bottom_title h2.top{
        padding-left: 0;
        width: fit-content;
    }

    .bottom_title h2.btm::after{
        display: none;
    }
    .bottom_title .inner{
        place-items: center;
    }
    .bottom_title h2.top::before{
        left: -3rem;
        width: 60px;
        height: 60px;
    }
     .gnb-container{
        justify-content: space-between;
        height: auto;
    }
    .gnb-container .logo{
        position: relative;
        left: 0;
        width: 150px;
    }
    .gnb-nav a:not(:last-child)::after{
        margin: 0 20px;
    }
    .donation-hero{
        margin: 94px auto 0;
    }
}

@media (max-width: 860px) {
    .donation-hero{
        margin: 94px auto 0;
    }
    .donation-hero .text_wrap::after{
        width: 300px;
        bottom: -42px;
    }
    .museum-data-row {
        padding: 1.5rem;
    }
   
    
}

@media (max-width: 740px) {
    
    .footer_wrap .top .footer_logo{
        width: 150px;
    }
    .step_list { grid-template-columns: 1fr 1fr; }
    .donate_info_grid { grid-template-columns: 1fr; }
    
}

@media (max-width: 640px) {
    .wrapper{
        min-height: 405px;
    }
    .donation-hero{
        height: fit-content;
        position: relative;
        align-content: flex-start;
    }
    .donation-hero .text_wrap::after{
        display: none;
    }
    .donation-hero::after{
        position: absolute;
        content: "";
        background-image: url(../images/visual_pic.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        right: 0;
        bottom: 0rem;
        width: 300px;
        aspect-ratio: 3/2;
        z-index: 0;
    }
    .donation-hero .inner{
        padding: 3rem 2rem;
    }
    .museum-data{
        gap: 1rem;
        flex-direction: column;
    }
    .museum-data-row{
        max-width: 330px;
    }
    .donation-hero h1::after{
        display: none;
    }

    .donation-page-wrapper{
        margin: 0 2rem 2rem;
    }
    .bottom_title{
        font-size: 1.25rem;
    }
    .donation-page-wrapper{
        padding: 1.5rem;
    }
    .gnb-container{
        flex-direction: column;
        gap: 1.5rem;
    }
}


@media (max-width: 580px) {
    .wrapper{
        margin: 12rem auto 0;
    }
    

    .donation-hero{
        margin: 131px auto 0;
    }
    .museum-data-row{
        max-width: none;
    }

    .lookup-bar-form {
        flex-direction: column;
        border-radius: 16px;
        padding: 16px;
        gap: 12px;
        align-items: flex-start;
    }
    .lookup-divider {
        width: 100%;
        height: 1px;
        margin: 4px 0;
    }
    .btn-lookup-trigger {
        width: 100%;
        border-radius: 8px;
    }
    .rrn-masked-text {
        position: absolute;
        right: 0;
    }
    .donation-hero::after{
        display: none;
    }

}

@media (max-width: 480px) {
    .button-wrap{
        flex-direction: column;
    }
    .step_list { grid-template-columns: 1fr; }
    .bottom_title h2.top::before{
        left: -2rem;
        top: -2rem;
    }
    div.flex{
        flex-direction: column;
    }
    .gnb-nav{
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .gnb-nav a:not(:last-child)::after{
        display: none;
    }
    .donation-hero{
        margin: 188px auto 0;
    }
    .wrapper{
        margin: 16rem auto 0;
    }
}