body {
    margin: 0;
    padding: 0;
    align-items: center;
    font-family: Arial;
}

h1 {
    text-align: center;
    font-size: 36px;
    padding: 0px;
    margin: 0px;
}

p {
    text-align: center;
}

label {
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0px;
    text-wrap: auto;
}

input {
    border: 0px;
    padding: 10px;
    font-size: 20px;
    width: 100%;
    margin: 10px 0px;
    box-sizing: border-box;
}

select {
    padding: 9px;
    border: 0px;
    font-size: 20px;
    margin: 10px 0px;
    width: 90%;
}

input[type="checkbox"] {
    border: 0px;
}

.container {
    align-items: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
}

.row {
    display: flex;
}

.col-4 {
    width:33.3%;
}

.col-8 {
    width:66.6%
}

.col-12 {
    width:100%;
}

.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: -25px;
    left: 10%;
    width: 80%;
    height: auto;
    object-fit: cover;
    z-index: 999;
    border: 8px solid #2B3A82
}

.video-container .row {
    position: relative;
    z-index: 2;
}


/* 修正通用圖片寬度 */
.img {
    width: 100%;
    height: auto;
    display: block;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
}

.slideshow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0; /* 預設隱藏 */
    transition: opacity 0.5s ease-in-out; /* 切換時的淡入淡出效果 */
}

/* 當有 active class 時才顯示 */
.slide-img.active {
    opacity: 1;
}

/* 按鈕樣式 */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.base-img {
    display: block;
    width: 100%;
}

.slideshow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.form {
    background: linear-gradient(to right, #CBE5F7, #D4E7F7); ;
    color: #000;
    padding: 20px;
}

.otp-container {
    position: relative;
}

.otp-container input {
    width: 100%;
    padding: 10px;
    padding-right: 100px; /* 留出空間給右側按鈕，避免文字被遮住 */
}

.otp-container button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%); /* 垂直居中 */ 
    border: none;
    background-color: #e5e5e5;
    cursor: pointer;
    padding: 7px 20px;
}

.btn-submit {
    background: #2b4d94;
    color: white;
    padding: 5px 60px;
    font-size: 2em;
    font-weight: bold;
    border-radius: 40px;
    border: 0px;
    margin: 40px 0;
}

.form-options {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: flex-start;
  }
  
.checkbox-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
  
.checkbox-item input {
    margin: 0 8px 0 0;
}

.checkbox-item input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: #ffffff;
    outline: none;
    cursor: pointer;
    position: relative;
  }
  
  /* 勾選後的樣式 */
  .checkbox-item input[type="checkbox"]:checked {
    background-color:rgb(255, 255, 255);
  }
  
  /* 勾選後的打勾符號 (使用偽元素) */
  .checkbox-item input[type="checkbox"]:checked::after {
    content: '✔';
    color: black;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26stypx;
  }

h2 {
    margin: 5px 0px;
}
.tc {
    padding: 5px 0px;
    font-size: 16px;
    font-weight: 300;
}
.tc > ul {
    line-height: 28px;
    margin: 5px 0px;
}

.submit-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.slide-content {
    position: absolute;
    top: 40%;
    width: 100%;
    text-align: center;
}

.modal-overlay {
    display: none; /* 初始隱藏 */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    min-width: 280px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }
  
  .modal-icon { font-size: 50px; margin-bottom: 15px; }
  #modalMsg { font-size: 18px; margin-bottom: 20px; color: #333; }
  
  .modal-btn {
    background: #007bff; color: #fff; border: none;
    padding: 10px 30px; border-radius: 5px; cursor: pointer;
    font-size: 16px;
  }
  
  /* 狀態類別 */
  .is-error .modal-icon { color: #d9534f; }
  .is-error .modal-icon::before { content: "⚠️"; }
  .is-success .modal-icon { color: #5cb85c; }
  .is-success .modal-icon::before { content: "✅"; }
  
#otpForm {
    margin-top: 220px;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.otp-field {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 8px;
}
.otp-field:focus {
    border-color: #007bff;
    outline: none;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* 半透明背景 */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 簡單的旋轉動畫 */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}