﻿body {
    font-family: sans-serif;
    margin: 0;
    background-color: #fdf5e6;
}

.container {
    width: 80%;
    margin: auto;
}

.full-width {
    width: 100%;
    height: auto;
}

.action-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

.step-img {
    margin-bottom: 15px;
    padding: 20px 0px;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-size: clamp(13px, 1vw + 11px, 32px);
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 32px;
}

.reg-btn {
    display: block;
    width: 200px;
    margin: 30px auto;
    padding: 15px;
    background: #0056b3;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
}

.consent {
    text-align: center;
    font-size: 0.9rem;
}

.upload-area {
    display: flex;
    align-items: center; /* Vertically centers text and image */
    justify-content: space-between; /* Pushes text to left and image to right */
    gap: 30px; /* Adds space between text and image */
}

.text-content {
    flex: 1; /* Takes up available space */
    font-family: "Microsoft JhengHei", sans-serif;
    line-height: 2;
    font-size: 1.2rem;
}

.image-content {
    flex: 1; /* Adjust this to change image width ratio */
    text-align: right;
}

    .image-content img {
        max-width: 100%; /* Ensures image doesn't overflow */
        height: auto;
    }

/* Responsive Design: Stack on top of each other on small screens */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: left;
    }
}

.custom-upload-btn {
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

    .custom-upload-btn:hover {
        opacity: 0.8; /* Subtle feedback when hovering */
    }

    .custom-upload-btn img {
        max-width: 400px; /* Adjust size as needed */
        height: auto;
        display: block;
    }

/* Container for the checkbox and text */
.checkbox-container {
    align-items: center; /* This vertically centers the checkbox with the text */
    gap: 12px; /* Space between the box and the label */
    margin-bottom: 20px;
    cursor: pointer;
}

    /* Make the checkbox itself larger to match big font */
    .checkbox-container input[type="checkbox"] {
        width: 22px;
        height: 22px;
        margin: 0; /* Remove default browser margins */
        flex-shrink: 0; /* Prevents the checkbox from squishing if text is long */
    }

/* 文字部分樣式 */
.checkbox-text {
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    text-align: justify;
}

/* 藍色連結樣式 */
.link {
    color: #4A90E2;
    text-decoration: none;
}

    .link:hover {
        text-decoration: underline;
    }

.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px; /* Adjust based on your layout */
}

/* Button behavior */
.image-button {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
}

    .image-button img {
        display: block;
        max-width: 100%; /* Responsive */
        height: auto;
    }

    /* Hover & Active Effects */
    .image-button:hover {
        transform: scale(1.05); /* Slight grow effect */
        opacity: 0.9;
    }

    .image-button:active {
        transform: scale(0.95); /* Slight shrink when clicked */
    }

.nav-container {
    display: flex;
    /* This pushes the links to the left, center, and right */
    justify-content: space-between;
    align-items: center;
    font-family: "Microsoft JhengHei", "PMingLiU", serif;
    padding: 20px 0px;
}

.nav-link {
    color: #333;
    text-decoration: underline; /* Adds the underline seen in the image */
    text-underline-offset: 4px; /* Adds a little space between text and line */
    font-size: 32px;
    font-weight: bold;
    transition: color 0.3s ease;
}

    .nav-link:hover {
        color: #005a96; /* Optional: Change color on hover */
    }

/* Mobile Responsive: Stack them or reduce padding on small screens */
@media (max-width: 600px) {
    .nav-container {
        padding: 15px 10px;
    }

    .nav-link {
        font-size: 14px;
    }
}

.footer-container {
    display: flex;
    /* 讓一左一右分開 */
    justify-content: space-between;
    /* 核心設定：讓左右兩側內容在底部對齊 */
    align-items: flex-end;
    min-height: 100px; /* 確保有足夠高度觀察對齊效果 */
}

.footer-left p, .footer-right p {
    margin: 0; /* 移除預設邊距以確保精準對齊 */
    font-size: 13px;
    color: #333;
    line-height: 1.6;
}

.footer-right {
    text-align: right;
    max-width: 50%;
}

/* 行動裝置適配：在小螢幕上改為堆疊排列 */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start; /* 手機版改回左對齊比較美觀 */
    }

    .footer-right {
        text-align: left;
        margin-top: 10px;
        max-width: 100%;
    }
}

.form-row {
    display: flex;
    justify-content: space-between; /* 左右各一個 */
    gap: 30px; /* 兩者之間的間距 */
}

.input-group {
    flex: 1; /* 兩邊等寬 */
    display: flex;
    flex-direction: column; /* 文字在輸入框上方 */
}

/* 僅設定藍色文字，不具備超連結屬性 */
.blue-text {
    color: #1a6fa5;
    font-weight: normal;
    margin-left: 5px;
}

input {
    background-color: white;
    border: none; /* 移除邊框 */
    border-radius: 8px; /* 圓角設定 */
    padding: 12px 15px;
    font-size: 32px;
    outline: none; /* 移除點擊時的預設外框 */
}

    /* 讓預設文字 (Placeholder) 顏色變淡 */
    input::placeholder {
        color: #ccc;
        letter-spacing: 1px;
    }

.input-group {
    flex: 1;
}

/* 右側日期選擇器的排版 */
.date-selector {
    display: flex;
    gap: 15px;
}

.select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

    .select-wrapper span {
        white-space: nowrap;
    }

/* 手機版自動堆疊 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}

/* Core Responsive Styling */
img {
    max-width: 100%; /* Ensures image never exceeds the width of its container */
    height: auto; /* Maintains aspect ratio as width changes */
    margin: 0 auto; /* Centers images if the container is wider */
}

/* 2. Background Auto-Fix */
body {
    margin: 0;
    padding: 0;
    background-image: url('Asset_1.png');
    background-attachment: fixed; /* Keeps background from scrolling with the form */
    background-position: center;
    background-size: cover; /* Scales image to fill the screen width/height */
    background-repeat: no-repeat;
}

.section {
    padding: 20px 0px;
}

p {
    /* Uses a base size of 16px that scales slightly with screen width */
    font-size: clamp(14px, 1.2vw + 12px, 32px);
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    text-align: justify;
}

li {
    /* Slightly smaller than body p (approx 15px-16px) for better scanning */
    font-size: clamp(13px, 1vw + 11px, 32px);
    line-height: 1.6;
    color: #333;
    margin-bottom: 8px; /* Adds space between points in the T&C and Prize list */
}

.span-text{
    font-size: 32px
}

/* 針對創意提問的文本框設定 */
textarea {
    width: 100%;
    /* 設定最小高度，確保能舒適地輸入最多 200 字 */
    min-height: 180px;
    padding: 15px;
    border-radius: 12px;
    font-size: 32px;
    line-height: 1.5;
    resize: vertical; /* 允許用戶垂直調整大小，但保持寬度固定 */
    box-sizing: border-box;
    background-color: #fff;
    margin-top: 10px;
}

/* 在手機螢幕上稍微調整高度 */
@media (max-width: 480px) {
    textarea {
        min-height: 150px;
    }
}

/* Apply this to your terms and conditions paragraphs */
.text-indent {
    padding-left: 40px; /* Moves the entire paragraph 20px from the left edge */
    padding-right: 0px; /* Usually good to balance it on the right too */
    line-height: 1.6;
    margin-bottom: 15px;
}

.content-box {
    /* 1. Internal Padding: prevents text from touching the edges of the white box */
    padding: 30px 40px;
    /* 2. Vertical Margin: creates distinct separation between different steps */
    margin: 40px auto;
    /* 3. Horizontal Padding: adds 'safe space' on small screens */
    padding-left: 25px;
    padding-right: 25px;
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent to show Asset 1 texture */
    border-radius: 15px;
    max-width: 800px;
}

.terms-list li {
    list-style-type: none; /* We will use manual numbering */
    padding-left: 0em; /* Create space for the number on the left */
    text-indent: -1.2em; /* Pull the first line (the number) back into that space */
    margin-bottom: 12px; /* Add breathing room between clauses */
    line-height: 1.6; /* Professional spacing for legal text */
    text-align: justify; /* Optional: makes the right edge clean */
}
