:root {
    --line-green: #06C755;
    --line-gray: #8C8C8C;
    --line-dark: #1E1E1E;
    --line-border: #EBEBEB;
    --page-bg: #F7F7F7;
    --success-green: #4CAF50;
    --bs-primary: #06C755;
    --bs-primary-hover: #28c589;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--page-bg);
    color: var(--line-dark);
    line-height: 1.6;
}

button,
select {
    line-height: 1;
}

.main {
    background-color: #bfe8cda9;
    height: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.preview-hint{
    height: 51.2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-link {
    color: var(--line-gray);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link i {
    font-size: 16px;
}

.nav-link:hover {
    color: var(--line-green);
}

nav.main-nav {
    background-color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    max-width: 100vw;
    top: 0;
    z-index: 1000;
    width: 100%;
    align-self: flex-start;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

nav .logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav .logo-container img {
    height: 42px;
}

nav .logo-container span {
    font-size: 2rem;
    font-weight: 600;
    color: var(--line-green);
}

nav button {
    background: var(--bs-primary);
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 24px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0;
    line-height: 1.5;
}

nav button:hover {
    background-color: var(--bs-primary-hover);
}

.page {
    width: 100%;
    padding: 24px 16px;

    border-radius: 12px;
    margin-top: 62px;
    margin-right: auto;
    margin-left: auto;
}

#page1 {
    max-width: 1100px;

}

#page2 {
    background-color: transparent;
    width: 100%;
    box-shadow: none;

}

#page-invitation {
    max-width: 500px;
}

.thankyou-card,
.main-card {
    background: white;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px;
}


.toolbar {
    background-color: #f4f4f4;
    border-top: 1px solid #EBEBEB;
    border-bottom: 1px solid #EBEBEB;
    position: fixed;
    top: 62px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 20px;
    flex-wrap: wrap;
    max-width: 100vw;
}

.toolbar.bottom-toolbar {
    top: initial;
    bottom: 0;

}

.header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    width: 120px;
    height: auto;
    margin-bottom: 16px;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--line-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.free-badge {
    background: #c70616;
    color: white;
    padding: 12px;
    border-radius: 50%;
    font-size: 14px;
    left: 70%;
    top: -40px;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-button{
    padding: 0;
   
}
.preview-hint{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4px;
    text-align: center;
    background-color: rgba(0, 0, 0);
    z-index: 10;
}
.preview-hint h3{
    font-size: 16px !important;
    margin-bottom: 0;
}
.preview-hint  p{
    margin-bottom: 0;
    color: #fd4343;
}
.preview-hint+.main-nav{
    top: 51px;
}
.preview-hint h3{
    color: white;
}
.sticky-bar{
    position: sticky;
    background-color: #fffffff0;
    z-index: 5;
    width: 100%;
    border-top: 1px solid #EBEBEB;
}
.sticky-bar.bottom{
    bottom: 0;
    border-radius: 0 0 .625rem .625rem;
}
div:where(.swal2-icon).swal2-question{
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

/* 底線強調效果 */
.underline-emphasis {
    position: relative;
    display: inline-block;
}

.underline-emphasis::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 4px;
    background-color: var(--line-green);

}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shine 3s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }

    25% {
        opacity: 0.8;
    }

    50% {
        left: 100%;
        opacity: 0;
    }

    75% {
        opacity: 0.8;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}




@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.subtitle {
    color: var(--line-gray);
    font-size: 16px;
}

/* Carousel/Swiper Styles */
.swiper {
    width: 100%;
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
}

.swiper-slide {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.namecard-preview {
    width: 100%;
    height: auto;
    display: block;
}

.swiper-pagination {
    bottom: 16px !important;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: white;
    opacity: 1;
}

.preview {
    text-align: center;
}

.template-preview {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    display: inline-block;
    text-align: initial;
}

.btn-hint {
    max-width: 400px;
    margin: 0 auto;
    border-top: 1px dashed #ccc;
    padding-top: 16px;
    color: var(--line-gray);
    font-size: 13px;
}

/* Value Props */
.value-props {
    padding: 0 16px;
    margin-bottom: 32px;
}

.value-prop-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.value-prop-item h3 {
    color: var(--line-dark);
    font-size: 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.value-prop-item h3::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    font-size: 14px;
}

.value-prop-item p {
    color: var(--line-gray);
    font-size: 15px;
}

.main-title {
    padding: 0 16px;
}

/* Features */
.features {
    display: flex;
    justify-content: space-around;

    padding: 0 16px;
}

.feature-item {
    text-align: center;
}

.feature-item i {
    font-size: 24px;
    color: var(--bs-primary);
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--line-gray);
    font-size: 14px;
}

/* Social Icons */
.icon-container {
    text-align: center;
    margin-bottom: 32px;
}

.icon-container i {
    font-size: 24px;
    color: var(--line-gray);
    margin: 0 12px;
    transition: color 0.2s;
}

.icon-container i:hover {
    color: var(--line-green);
}


.cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 6px;
    background-color: var(--bs-primary);
    color: white;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(36, 180, 126, 0.2);
    animation: pulse 3s infinite;
}

/* 懸停效果 */
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 180, 126, 0.3);
    background-color: #28c589;
    color: white;
}

/* 點擊效果 */
.cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(36, 180, 126, 0.2);
}



/* 定義動畫 */
@keyframes pulse {
    0% {
        transform: scale(.9);

    }

    50% {
        transform: scale(1);

    }

    100% {
        transform: scale(.9);

    }
}

/* Add these carousel styles */
.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    overflow: hidden;


}

.carousel-slide {
    display: none;
    width: 100%;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: none;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-gray);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    opacity: 1;
    background: var(--line-green);
}

/* Add these new styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--line-dark);
}

.qr-setting-box {
    border-radius: 12px;
    padding: 16px;

    position: relative;
}

.qr-setting-box::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #fff;
}

/* 摺疊 */
.x-accordion {
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.x-accordion-item {
    border-top: 1px solid #cccccc;
    padding-left: 0;
    padding-right: 0;
}

.is-container:first-of-type .x-accordion-item:first-of-type {
    border-top: 0px;
}

input.x-accordion-input {
    display: none;
}

.x-accordion-header {
    background-color: #fff;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    font-size: 1.2rem;
    margin-bottom: 0;
}


.x-accordion-title {
    display: inline-block;
    margin-right: 20px;
}

.x-accordion-arrow {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #333;
    stroke-width: 2px;
    transition: transform 0.3s;
}

.x-accordion-header:hover {
    background-color: #fcdac3;
}

.vote_choice .x-accordion-header {
    background-color: #f1f4ff;
}

.vote_choice .x-accordion-header:hover {
    filter: brightness(95%);
}

.x-accordion-input:checked+.x-accordion-header .x-accordion-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.x-accordion-content {
    border-top: 1px solid #EBEBEB;
    padding: 10px;
    background-color: #fff;
    max-height: 0;
    display: none;
    transition: max-height 0.15s ease-in-out;
}

.x-accordion-input:checked+.x-accordion-header+.x-accordion-content {
    max-height: 100%;
    transition: max-height 0.15s ease-in-out;
    display: block;
}

.no-accordion {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
}

.no-accordion .accordion-collapse.collapse {
    display: block !important;
}

.no-accordion .accordion-button {
    pointer-events: none;

    background-color: #ffe8d99d;
    color: #000;
    font-weight: 700;
}
/* cropper */
.img-container {
    width: 100%;
    height: 400px; /* Adjust height as needed */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

#cropper-image {
    max-width: 100%;
    max-height: 100%;
}

.cropper-view-box,
.cropper-face {
    border-radius: 50% !important ;/* Example: if you want a circular crop */
}
.confirm-crop-btn{
    background-color: #E65757;
    color:white;
    border:0;
}
.confirm-crop-btn:hover{
    background-color: #cf4e4e;
    border:0;
}
.cancel-crop-btn{
    border:0
}
.cancel-crop-btn:hover,.cancel-btn:hover{
  color: inherit;
    border:0;
}
/* Footer Styles */
.footer {
    background-color: #fff;
    width: 100%;
    position: relative;
    margin-top: auto;
    font-size: 14px;
}


.footer .brand_logo {
    max-width: 280px;
    margin: 0 auto;
}

.footer .text {
    color: #666;
    font-size: 1.25rem;
    line-height: 1.6;
}

.footer #service_info {
    font-size: 1.25rem;
}

.footer #service_info p {
    color: #666;
    margin-bottom: 0;
}

.footer #service_info span {
    position: relative;
    margin-right: 1.5rem;
}

.footer #service_info .tel::before {
    content: "\f095";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
    color: var(--line-green);
}

.footer #service_info .mapicon::before {
    content: "\f3c5";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
    color: var(--line-green);
}

.footer #service_info .mail::before {
    content: "\f0e0";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
    color: var(--line-green);
}

.footer .copyright {
    background-color: #f8f9fa;
    color: #666;
    font-size: 0.8rem;
}

.custom-btn {

    background-color: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 0;
}

.ExAbs {
    z-index: 101;
}

.MdBtn {
    border-radius: 8px;
}

.modal {
    display: none;
    /* 隱藏模態框 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-all {
    background-color: #fff;
    margin: auto;

    border: 1px solid #888;
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1000;
    border-bottom: 1px solid #EBEBEB;
    padding: 8px 16px;
    border-radius: 8px 8px 0 0;
}

.modal-body {
    height: 70vh;
    overflow-y: scroll;
    padding: 16px;
}

.modal-body-content {
    background-color: #f4f4f4;
    border-radius: 12px;
    padding: 16px;
    height: auto;
    align-items: start;
    justify-content: start;
}

.close-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    position: sticky;
    top: 100%;
    background-color: #fff;
    z-index: 1000;
    border-top: 1px solid #EBEBEB;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    left: 0;

}

.confirm-btn {
    padding: 8px 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:not(.x-accordion-input)+label {
    border: 2px dashed #EBEBEB;
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    text-align: left;

}

input[type="radio"]:not(.x-accordion-input)+label.template-label {
    outline: 1px solid #e5e5e5;
    border: 0px
}

input[type="radio"]:not(.x-accordion-input):checked+label.template-label {
    outline: 2px solid var(--bs-primary);
}

input[type="radio"]:not(.x-accordion-input):checked+label {
    border: 2px solid var(--bs-primary);
}

input[type="radio"]:not(.x-accordion-input)+.template-label {
    padding: 0px;
    overflow: hidden;
}


.template-label p {
    background-color: #dedede;
    color: #aaa;
    padding: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

input[type="radio"]:not(.x-accordion-input):checked+label p,
input[type="radio"]:not(.x-accordion-input):hover+label p {
    background-color: var(--bs-primary);
    transition: all 0.2s ease;
    color: #fff;
}

.color-selector {
    display: flex;
    gap: 10px;
}

.color-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin-bottom: 0;
}

.color-btn.active {
    background: #f0f0f0;
    border-color: #999;
}

.template-item {
    transition: all 0.3s ease;
}
.link-hint{
    display: none;
}

/* wiz */
.wizard {
    position: relative;
    width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

input[type="radio"] {
    display: none;
    /* 隱藏 radio 按鈕 */
}

.wizard-step {
    display: none;
    /* 隱藏所有步驟 */
    width: 100%;
}

input[type="radio"]:checked+.wizard-step {
    display: block;
    /* 顯示當前步驟 */
}

.wizard-step h2 {
    margin-top: 0;
}

.wizard-step label.page-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--bs-primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

.wizard-step label.page-btn:hover {
    background-color: var(--bs-primary-hover);
}

.wiz-content {
    min-height: 65vh;
    border-top: 1px solid #EBEBEB;
    padding: 16px;


}

#content2 .wiz-content {
    background-color: #e6e6e6;
}

.template-list {

    width: 100%;

    background-color: #ebebeb;
    padding: 8px;
    border-radius: 12px;
}

.template-type {
    position: sticky;
    top: 62px;
    background-color: #fff;
    z-index: 5;
    padding: 8px;
}

.bottom-sticky {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    z-index: 99999;
    padding: 8px;
}

.sim-radio {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 8px;
    background: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

input[type="radio"]:checked+label>.sim-radio {
    border: 5px solid var(--bs-primary);
}
#button-url-input,p.oa_line_use.d-none+#oa-prefix+#button-url-input{
    border-radius: 6px;
}
#oa-prefix+#button-url-input{
    border-radius: 0px 6px 6px 0px;
}
.qr-setting,
input[type="checkbox"] {
    display: none;

}

.qr-setting {
    background-color: #f0f0f0b1;
    padding: 8px;
    border-radius: 8px;
}

input[type="radio"]:checked+label+.qr-setting {
    display: block;
}

.form-control {
    background-color: #fff !important;
}

.help-btn {
    display: none;
}

.help-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.help-btn:checked~.help-content {
    max-height: 700px;
}

#line-name-card-form {
    display: flex;
    width: 100%;
    margin-bottom: 0;
}

/* Utility Classes */
.shadow {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.mt-auto {
    margin-top: auto;
}

.pt-3 {
    padding-top: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.pb-3 {
    padding-bottom: 1rem;
}

.px-7 {
    padding-left: 4rem;
    padding-right: 4rem;
}

.py-md-6 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-xl-10 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.mt-7 {
    margin-top: 3rem;
}



.w-100 {
    width: 100%;
}

.imgfit {
    object-fit: contain;
    height: 100%;
    width: 100%;
}
#modalContainer .modal-iframe-content{
    height: calc(667px + 3.5rem);
}
.success-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.success-icon {
    color: var(--success-green);
    font-size: 48px;
    margin-bottom: 24px;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--line-dark);
    margin-bottom: 16px;
}

.success-message {
    font-size: 16px;
    color: var(--line-gray);
    margin-bottom: 32px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.action-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.action-button.primary {
    background: var(--line-green);
    color: white;
}

.action-button.secondary {
    background: #EBEBEB;
    color: var(--line-gray);
}

.action-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.next-steps {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.next-steps h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--line-dark);
    margin-bottom: 20px;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #EBEBEB;
}

.steps-list li:last-child {
    border-bottom: none;
}

.step-number {
    width: 24px;
    height: 24px;
    background: var(--line-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.step-description {
    color: var(--line-gray);
    font-size: 14px;
}

/* Benefits section */
.benefits-box {
    background: #f8f9fa;
}

.benefits {

    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
}

.benefits h3 {
    color: var(--line-dark);
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefits h3 i {
    color: var(--line-green);
}

.benefits ul {
    list-style: none;
}

.benefits ul li {
    margin-bottom: 16px;
    padding-left: 28px;
    position: relative;
    color: var(--line-dark);
}

.benefits ul li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--line-green);
    font-size: 16px;
}

.benefits ul li ul {
    margin-top: 8px;
}

.benefits ul li ul li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--line-gray);
}

.MdBtn {
    cursor: pointer;
}

.size-hint {
    display: none;
}

.list-styled {
    list-style: initial;
    list-style-type: decimal;
    margin-left: 20px;
}

.list-styled li {
    display: list-item;
    margin-bottom: 8px;
    list-style: auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-button {
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    background-color: #f0f0f0;
    border: 1px dashed #aaa;
    margin-right: 8px;
}

.tab-button.active,
.tab-button:hover {
    background-color: var(--bs-primary);
    color: #fff;
}

.invitation-action {
    border-top: 1px solid #EBEBEB;
}

.note-hint,
.click-hint,
.hint-container {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.chat-bubble {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: #08823b;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    color: #fff;
    z-index: 10;
    display: none;
}

.chat-bubble::before {
    content: "";
    position: absolute;
    bottom: 100%;
    right: 10px;
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent #08823b transparent;
}

.chat-bubble.withimg {
    width: 400px;

}

.bubble-messages {
    display: none;
}

/* dropdown */
.custom-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 1rem;
    border-right: 1px solid #dee2e6;
    padding-right: 1rem;
    font-size: 14px;
  }
  .custom-dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    padding: 0.5rem 0;
    background: none;
    border: none;
    font: inherit;
    outline: none;
  }
  .custom-dropdown-toggle:after {
    content: "▼";
    font-size: 0.7em;
    margin-left: 0.5em;
    transition: transform 0.2s;
  }
  .custom-dropdown:focus-within .custom-dropdown-toggle:after,
  .custom-dropdown:hover .custom-dropdown-toggle:after {
    transform: rotate(180deg);
  }
  .custom-dropdown-menu {
    display: none;
    position: absolute;
   top:24px;   
    right: 0;
    min-width: 140px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 100;
    margin-top: 0.3rem;
    padding: 0.5rem 0;
  }
  .custom-dropdown:focus-within .custom-dropdown-menu,
  .custom-dropdown:hover .custom-dropdown-menu {
    display: block;
  }
  .custom-dropdown-menu li {
    list-style: none;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0;
    
  }
  .custom-dropdown-menu li:last-child {
    border-bottom: none;
  }
  .custom-dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
   color:var(--line-gray);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 1.5rem;
    border-radius: 0.25rem;
    gap: 0.5rem;
  }
  .custom-dropdown-menu a:hover {
    background: #f5f5f5;
  }
  .custom-dropdown-menu i {
    margin-right: 0.5em;
    width: 1.5rem;
    text-align: center;
  }

.tabs {
    width: 100%;
}

.tab-label {
    display: inline-block;
    padding: 2px 6px;
    margin-right: 5px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    font-weight: bold;
    font-size: 13px;
    border: 1px dashed #aaa;
}

.tabs input[type="radio"] {
    display: none;
}

.tab-content {
    display: none;
}

/* 當指定的 radio 被選中時顯示對應的內容 */
#tab-oa:checked~#tab-content-oa,
#tab-person:checked~#tab-content-person {
    display: block;
}

/* 強調目前被選中的 tab 標籤 */
#tab-oa:checked+label,
#tab-person:checked+label {
    background-color: var(--bs-primary);
    color: #fff;
}

.toggle-indicator {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--bs-primary);
    transition: transform 0.3s;
    margin-left: 4px;
}
details[open] summary .toggle-indicator {
    transform: rotate(180deg);
}
.thankyou-card details[open].detail-preview {
    
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;

}
.controll-height{
    overflow: hidden;
    height: 100%;
    grid-row: 2;
}
.thankyou-card .action-buttons{
    margin-bottom: 8px;
}

    
#loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Responsive Adjustments */
@media screen and (max-height: 720px) {
    .template-list {
        height: auto;

    }
}

@media screen and (max-width: 1280px) {
    .main {
        align-items: flex-start;
        gap: 2rem;
    }

    /* nav.main-nav{
        position: sticky;
    } */
    /* .page{
        margin: 2rem;
    } */
    .chat-bubble.withimg {
        left: 50%;
        right: initial;
        transform: translateX(-50%);
        width: 400px;
    }

    .chat-bubble.withimg::before {
        right: 50%;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 1024px) {
    .wizard {
        width: 100%;
        max-width: 900px;
        flex-grow: 1;
    }
    .action-buttons{
        position: sticky;
        bottom: 0;
        background-color: #fff;
        padding: 16px;
        border-top: 1px solid #EBEBEB;
    }
    .action-buttons{
        flex-direction: row-reverse;
        align-items: stretch;

    }
    .thankyou-card .action-buttons .action-button:first-of-type{
        margin-bottom: 0;;
    }
    .action-button{
        width: 50%;
    }
    .action-button.share-link-btn{
        width: 100%;
    }
    .controll-height{
        min-height: 560px;
    }
}

@media (max-width: 768px) {
    nav .logo-container img {
        height: 32px;
    }

    nav .logo-container span {
        font-size: 1.5rem;
    }

    .footer #service_info {
        font-size: 0.8rem;
    }

    .footer #service_info span {
        display: block;
        margin-bottom: 0.5rem;
    }

    .px-7 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .py-md-6 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .wizard {
        width: 100%;
        max-width: 500px
    }

    .page {
        margin-top: 52px;
    }

    .template-type {
        top: 52px;
    }
    .preview-page.main{
        justify-content: start;
        margin-top: 51px;
    }
    .preview-page .page{
        margin-top: 52px;
    }
}

@media (max-width: 768px) {}

@media (max-width: 576px) {

    .wizard {
        /* max-width: 400px; */
        min-width: 340px;
        margin: 0 auto;

    }

    .free-badge {
        display: none;
    }

    .page {
        padding-right: 8px;
        padding-left: 8px;
    }

    .success-card,
    .next-steps {
        padding: 24px;
    }

    .success-title {
        font-size: 20px;
    }

    .main-title h1 {
        flex-direction: column-reverse;

    }

    .size-hint {
        margin-bottom: 16px;
        display: block;
        background-color: #fdf8da;
        padding: 8px;
        border-radius: 8px;
        border: 1px solid #f0e6b5;

    }

    .chat-bubble.withimg {
        left: 50%;
        right: initial;
        transform: translateX(-50%);
        width: 280px;
    }
}

@media (max-height: 667px) {
    #modalContainer .modal-iframe-content{
        margin-top: 0px;
    }
    .preview-page .page{
        padding-top: 6px;
    }
}