
/* 전체 섹션 스타일 */
.case-section {
    max-width: 1200px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}


/* 개별 사례 줄 스타일 */
.case-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

/* 짝수 번째 사례는 좌우 반전 */
.reverse {
    flex-direction: row-reverse; /* 짝수번째 사례는 좌우 반전 */
}


/* 사례 박스 스타일 */
.case-box {
    width: 45%;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-text {
    text-align: center;
}

.icon-required {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #f25656;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: 2px;
}

.form-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fcfcff;
    height: 920px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.scroll-box {
    height: 150px;
    overflow-y: scroll;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px 0;
}

.scroll-box pre {
    white-space: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: bold;
    display: inline;
}

button {
    background-color: #1180f7;
    color: rgba(126, 126, 126, 0.726);
    /*padding: 12px 24px;*/
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 130px;
    height: 40px;
    font-size: larger;
    font-weight: bold;
}

#button_submit {
    background-color: #1180f7;
    color: rgb(255, 255, 255);
    /*padding: 12px 24px;*/
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 130px;
    height: 40px;
    font-size: larger;
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

button:hover {
    background-color: #0056b3;
}

/*절차 section*/
.process-section {
    min-height: 100vh;
    padding: 80px 20px;
    background: #f8f9ff;
    position: relative;
    overflow: hidden;
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.process-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: #2a325b;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 40px 0;
    margin-bottom: 30px;
}

.process-step {
    width: 180px;
    text-align: center;
    z-index: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(42, 50, 91, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #007bff;
    transition: transform 0.3s;
    cursor: pointer;
}

.step-icon.active {
    color: white;
    background: #007bff;
    /*background: linear-gradient(135deg, #007bff, #89cff0);*/
    /*background: linear-gradient(135deg, #007bff, #ffffff);*/
    transform: translateY(-10px) scale(1.2);
    /*box-shadow: 0 0 10px 5px rgba(0, 123, 255, 0.5), 0 0 20px 10px rgba(0, 123, 255, 0.3);*/
    /*box-shadow: 0 0 10px 5px rgb(91, 120, 197), 0 0 20px 15px rgba(243, 236, 236, 0.1);*/
    box-shadow: 0 0 10px 5px rgba(137, 207, 240, 0.8),
    0 0 20px 15px rgba(137, 207, 240, 0.4); /* 부드러운 빛 효과 */
}

.process-step:hover .step-icon {
    transform: translateY(-10px) scale(1.2);
}

.step-title {
    font-size: 1.2rem;
    color: #2a325b;
    margin-bottom: 10px;
}

.step-desc {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

/* 연결선 스타일 */
.process-steps::before {
    content: '';
    position: absolute;
    /*top: 50%;*/
    top: 82px;
    left: 50%;
    width: 90%;
    height: 4px;
    background: #007bff;
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

.process-content-container {
    position: relative;
    height: 35vh;
    overflow: hidden;
    background: #ffffff;
    border-radius: 40px;
}

/* 슬라이드 방향 제어 추가 */
.process-content {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 20px;
    /*border: 1.5px solid rgba(0, 123, 230, 0.72);*/
    /* line-height: 2vw; */
    border-radius: 40px;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.process-content.next {
    transform: translateX(100%);
}

.process-content.prev {
    transform: translateX(-100%);
}

.process-content.active {
    opacity: 1;
    transform: translateX(0);
}



/*사례소개 section*/
.cases-section {
    background: #f8f9fa;
    min-height: 100vh;
    /*max-height: 100vh;*/
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.case-card {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 200px;
    height: 200px;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-card-text {
    padding: 1rem 0;
    display: flex;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.card-item {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card-item:hover .card-icon {
    transform: rotate(15deg);
    background: #2563eb;
}

.card-title {
    font-size: 1.2rem;
    color: #1f2937;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.card-desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

/* 이미지 팝업 스타일 */
.image-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-show {
    opacity: 1;
}

.popup-content {
    background: white;
    max-width: 800px;
    width: 90%;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.popup-show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    justify-content: center;
    align-items: center;
}

.popup-close:hover {
    background: #2563eb;
    transform: scale(1.1);
}

/* 캐러셀 스타일 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 400px;
}

.carousel-image {
    min-width: 100%;
    height: 100%;
    max-height: 270px;
    object-fit: contain;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 1rem;
    z-index: 1;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    top: 270px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 1;
    padding-top: 15px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #becef3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #396de1;
    transform: scale(1.2);
}

.popup-text {
    text-align: center;
    padding: 0 2rem;
}

.popup-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1f2937;
    font-weight: 700;
    text-align: center;
}

.popup-desc {
    display: none;
    color: black;
    line-height: 1.8;
    font-size: 25px;
}

.popup-desc.active {
    display: block;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .card-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .card-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .carousel-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .card-container {
        grid-template-columns: 1fr;
    }

    .popup-content {
        padding: 1rem;
    }

    .popup-text {
        padding: 0;
    }

    .carousel-image {
        height: 200px;
    }
}

/* 애니메이션 */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-item {
    animation: cardEntrance 0.5s ease forwards;
    opacity: 0;
}

.card-item:nth-child(1) {
    animation-delay: 0.1s;
}

.card-item:nth-child(2) {
    animation-delay: 0.2s;
}

.card-item:nth-child(3) {
    animation-delay: 0.3s;
}

.card-item:nth-child(4) {
    animation-delay: 0.4s;
}

.card-item:nth-child(5) {
    animation-delay: 0.5s;
}

.card-item:nth-child(6) {
    animation-delay: 0.6s;
}

.card-item:nth-child(7) {
    animation-delay: 0.7s;
}

.card-item:nth-child(8) {
    animation-delay: 0.8s;
}

.card-item:nth-child(9) {
    animation-delay: 0.9s;
}

.card-item:nth-child(10) {
    animation-delay: 1s;
}


/*Contact-us section*/
.contact-section {
    min-height: 100vh;
    padding: 80px 20px;
    background: #fbfcfe;
    position: relative;
    overflow: hidden;
}

.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    padding: 16px;
    position: fixed;
    z-index: 999;
    left: 50%;
    /*bottom: 50px;*/
    top: 50px;
    transform: translateX(-50%);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.5s ease, bottom 0.5s ease;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    /*bottom: 80px;*/
    top: 60px;
}

.image-right {
    float: right;
    display: inline-block;
    height: auto;
    width: 23%;
}


/* 반응형 디자인 */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .process-steps::before {
        width: 4px;
        height: 80%;
        top: 10%;
        left: 50%;
    }
}

/* 기존 스타일 유지 */
.process-section {
    min-height: 100vh;
    padding: 80px 20px;
    background: #f8f9ff;
    position: relative;
    overflow: hidden;
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.process-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: #2a325b;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 40px 0;
    margin-bottom: 30px;
}

.process-step {
    width: 180px;
    text-align: center;
    z-index: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(42, 50, 91, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #007bff;
    transition: transform 0.3s;
    cursor: pointer;
}

.step-icon.active {
    color: white;
    background: #007bff;
    transform: translateY(4px) scale(1.0);
    box-shadow: 0 0 10px 5px rgba(137, 207, 240, 0.8),
                0 0 20px 15px rgba(137, 207, 240, 0.4);
}

.process-step:hover .step-icon {
    transform: translateY(-6px) scale(1.0);
}

.step-title {
    font-size: 1.2rem;
    color: #2a325b;
    margin-bottom: 10px;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 82px;
    left: 50%;
    width: 90%;
    height: 4px;
    background: #007bff;
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

.process-content-container {
    position: relative;
    height: 400px; /* 고정 높이로 변경 */
    overflow: hidden;
    background: #ffffff;
    border-radius: 40px;
}

.process-content {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.process-content.next {
    transform: translateX(100%);
}

.process-content.prev {
    transform: translateX(-100%);
}


.content-emoji {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 150px;
}

.content-emoji .emoji-top {
    position: relative;
    top: -20px;
}

.content-emoji .emoji-bottom {
    position: relative;
    top: 20px;
}

.content-text {
    flex: 1;
    padding: 0 30px;
}

.content-text h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.content-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* 반응형 디자인 */
@media (max-width: 992px) {
    .process-content-container {
        height: 450px;
    }
    
    .content-emoji {
        font-size: 120px;
    }
    
    .content-text h1 {
        font-size: 1.5rem;
    }
    
    .content-text p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 60px;
        padding: 30px 0;
    }

    .process-steps::before {
        width: 4px;
        height: 80%;
        top: 50%;
        left: 50%;
    }
    
    .process-step {
        width: 100%;
    }
    
    .process-content-container {
        height: auto;
        min-height: 500px;
    }
    
    .process-content {
        flex-direction: column;
        padding: 40px 20px;
    }
    
    .content-emoji {
        font-size: 100px;
        margin-bottom: 30px;
    }
    
    .content-text {
        padding: 0;
        text-align: center;
    }
    
    .content-text h1 {
        font-size: 1.4rem;
    }
    
    .content-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .process-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .step-desc {
        font-size: 0.8rem;
    }
    
    .process-content {
        padding: 30px 15px;
    }
    
    .content-emoji {
        font-size: 80px;
    }
    
    .content-text h1 {
        font-size: 1.2rem;
    }
}

.process-steps {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem;
    white-space: nowrap;
  }
  
  .process-step {
    flex: 0 0 auto;
    width: 160px;
    min-height: 180px;
    background: #f8f9ff;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    scroll-snap-align: start;
  }
  

  @media (max-width: 768px) {
    body {
        width: 275vw;
    }

    .bee-hamburger-controls {
        margin-top: -70px;
        margin-left: 220vw;
        margin-bottom: 45px;
    }

  }