/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1.5;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
a{
	text-decoration: none;
}

img{
	max-width: 100%;
	height: auto;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}



/*css resset end*/

/*------------KV-------------*/
.KV{
	margin-top: 80px;
	position: relative;
}

.kv-img{
	background-image: url(../IMG/Banner/KV_1440.png);
    width: 100%;
    height: 800px; 
    background-position:  top center; 
    background-size: cover; 
    background-repeat: no-repeat; 
    overflow: hidden;
}



/*-------- 卡片樣式 ---------- */

.join-content{
    max-width: 1200px;
    margin: 0 auto;
}

.join-card{
    max-width: 1200px;
    background-color: #F9F9F9;
    display: flex;
    flex-direction: column;
    padding: 40px;
    border-radius: 24px;
}

.join-container{
    background-color: var(--white);
    padding: 64px;
    background-image: url(../IMG/BG_Element/JoinUs_BG.png);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
}


.result-space{
    padding: 80px 180px;
}

.result-title{
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 64px;
}

.activity-container{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.map-outline{
    transition: transform 0.3s ease;
}

.map-outline:hover{
    transform: translateY(-6px) scale(1.1);
}

.activity-info{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.address-text{
    color: var(--helper-text);
    font-size: 20px;
    text-align: center;
    font-weight: 500;
}

.time-text{
    font-size: 24px;
    color: var(--text-dark);
    font-weight: 700;
    text-align: center;
}

.activity-remind{
    margin-top: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
}

.open-map{
    width: 24px;
    height: 24px;
}

.date p{
	font-size: 20px;
}

.detail{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.date-line{
    width: 100%;
	display: flex;
	align-items: stretch;
	gap: 8px;
    margin-top: 16px;
}

.date{
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	text-align: center;
	background-color: #FEFEFE;
	padding: 24px 10px;
	gap: 4px;
    border-radius: 16px;
}

.date h3{
	font-size: 20px;
	color: var(--secondary);
    font-weight: 700;
}


.goright{
	height: 13px;
	align-self: center;
}


/* Input */

label{
    font-weight: 600;
}


.form-block{
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.input-container {
    margin-bottom: 20px;
    display: inline-block; 
    white-space: nowrap; 
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    color: var(--text-dark);
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ffffff00;
    font-size: 18px;
    line-height: 1.5;
    background-color: #F0F0F0;
    border-radius: 8px;
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

.input-container.invalid input {
    border: 1px solid red; 
}

.input-container .error-message {
    color: red;
    font-size: 16px;
    margin-top: 4px;
    display: none; 
}

.input-container.invalid .error-message {
    display: block;
}

/* ToggleToken */

.radio-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.radio-group .error-message {
    color: red;
    font-size: 16px;
    margin-top: 4px;
    display: none;
}

.radio-group.invalid .error-message {
    display: block;
}

.radio-container {
    display: flex;
    align-items: center;
}

.radio-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Hide native checkbox visuals; labels carry the visible UI */
.radio-group input[type="checkbox"] {
    display: none;
}

.radio-option{
    display: flex;
    flex-direction: row;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: -8px;
}

.radio-label {
    cursor: pointer;
    padding: 8px 16px;
    background-color: #F6F7FA;
    transition: background-color 0.3s, color 0.3s;
    color: #737373;
    border-radius: 8px;
}

.radio-label:hover {
    background: #dadada;
    color: #4e4e4e;
}

.radio-input:checked + .radio-label {
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 8px;
}

.session-location-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

@media (min-width: 1024px) {
    .session-location-link:hover .session-location-icon {
        transform: translateY(-4px);
    }
}

.session-meta {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.session-location-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.session-time {
    margin-left: 4px;
}

@media (max-width: 767px) {
    .session-time {
        display: block;
        margin-left: 0;
    }
    .session-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .session-meta.session-location {
        flex-direction: row;
        align-items: center;
    }
}




/* 確認送出 */
.next{
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: var(--white);
    background: var(--primary-gradient);
    padding: 16px 24px;
    width: 100%;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:disabled {
    background-color: #ddd; 
    color: #ffe5c5;
    cursor: not-allowed; 
    opacity: 0.6; 
  }




.confirm-btn {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    cursor: pointer;
    margin: 0 auto;
    padding: 16px 24px;
    width: 100%;
    font-size: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}




/* -------------------------------------結果頁------------------------------------ */

.result{
    position: relative;
    margin-top: 80px;
}

.IMG{
    margin-top: 144px;
    margin-bottom: -8px;
}



.success-img{
    width: 28px;
}

.card-header{
    padding: 16px 24px;
    background-color: #ddd;
    text-align: center;
    border-radius: 24px 24px 0px 0px;
}
.card-body{
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
    padding: 0px 40px;
}

.submit-block{
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 40px;
    background-color: var(--inner-background);
    border-radius: 24px;
}

.label-text{
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin: 0 auto;
}

.result-text{
    width: 80%;
    text-align: right;
}

.label-text .body3{
    width: 120px;
    font-size: 18px;
    font-weight: 500;
}

.label-block{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 40px;
}


.label-text h5{
    width: 100%;
    text-align: right;
    word-break: break-all;
    font-weight: 700;
    font-size: 18px;
}

.success-block{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.success-text{
    font-size: 24px;
    font-weight: 700;
    color: #339555;
}

.helptext{
    display: flex;
    flex-direction: column;
    text-align: right;
}

.result-CTA{
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin: 42px 0px 40px 0px;
}

.result-info{
    background-color: white;
    border-radius: 24px;
}


/* -------Agreement------- */

.agreement{
    margin-top: 0;
    margin-top: 80px;
}


.agree-content li{
    margin-top: 16px;
}


.agree-compony{
    margin-top: 24px;
}

/* checkbox */


.indented a{
    color:var(--secondary) ;
    margin-left: -4px;
    text-decoration: underline;
}

.agree-check{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 32px;
    margin-bottom: 8px;
    align-items: center;
}

.agree-check .error-message{
    padding-left: 26px;
}

.invalid input {
    border-color: red;
}

.error-message {
    color: red;
    font-size: 16px;
    margin-top: 4px;
}



/*------------ modal--------------- */



  
  
  .agree-content{
    padding: 24px 24px 56px 24px;
    background-color: white;
}

  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); 
    display: none;
    z-index: 999;
  }
  
  .modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 75vh;
    height: auto;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 999; 
    border-radius: 24px;
  }
  
  .modal-header {
    top: 0;
    width: 100%;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  
  .modal-header h2 {
    margin: 0;
    font-size: 20px;
    text-align: center;
    width: 100%;
    font-weight: 700;
  }

.close-btn {
    font-size: 32px;
    cursor: pointer;
    position: absolute;
    right: 16px;
  }


  .modal-content { 
    padding: 0px 24px 24px 24px;
    overflow-y: auto;
    min-height: auto;
    max-height: calc(75vh - 160px);
    margin-bottom: 56px;
  }

  .error-content{
    padding: 16px;
    display: flex;
    flex-direction: column;
  }
  

  .agree-content{
    position: relative;
    background-color: #f9f9f9;
    border-radius: 16px;
    margin-bottom: 24px;
}

.godown-btn {
    position: fixed;
    bottom: 124px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border-radius: 0;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    white-space: nowrap;
}

.arrow-down {
    width: 18px;
    height: 18px;
    animation: floatDown 1.8s infinite ease-in-out;
    margin-left: 12px;
}

@keyframes floatDown {
    0% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(2px); 
    }
    100% {
        transform: translateY(-2px); 
    }
}

  .modal-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 24px;
    background-color: white;
    text-align: center;
  }
  
  
  .modal-footer button.enabled {
    cursor: pointer;
    opacity: 1;
  }
  
  .hidden {
    display: none;
  }

  #agree-button{
    margin-top: 0;
  }

  .error-icon{
    width: 64px;
    margin: 0 auto;
  }

  .error-content h4{
    font-size: 20px;
    text-align: center;
    padding: 4px 0px 12px 0px;
  }


 .check-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
}

 .indented {
    display: inline-block;
    text-indent: 0px;
    width: 100%;
}
.indented a {
    display: inline;
    width: 100%;
}

input[type="checkbox"] {
    all: unset;
    appearance: none; 
    -webkit-appearance: none; 
    width: 8px;
    height: 8px; 
    position: relative;
    background-color: white;
    border: 1px solid #323232;
    border-radius: 4px;
    cursor: pointer;
    margin: 0;
    margin-top: 5px;
    padding: 4px;
}
input[type="checkbox"]:checked {
    background-color: var(--secondary); 
    border: 1px solid var(--secondary);
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    display: block;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
}




.input-container #captcha{
    max-width: 80%;
}

.captcha-img {
    display: inline-block; 
    vertical-align: middle; 
}


.captcha-block{
    display: flex;
    gap: 12px;
}

.captcha-btn{
    font-weight: 600;
    background-color: white;
    font-size: 16px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 4px;padding: 0;
    border-bottom: 1px solid var(--secondary);
}

.captcha-img{
    width: 20%;
    height: 47px;
}

.captcha-lable{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.captcha-lable{
    width: 100%;
    margin-bottom: 8px;
}

.captcha-lable label{
    margin-bottom: 0;
}

.refresh-icon{
    width: 18px;
}

@media (max-width: 1439px) {
    .kv-img {
		height: auto; 
		padding-bottom: 56.25%;
		background-size: cover; 
        background-position: center; 
    }

     .result-space{
        padding: 40px 140px;
    }

	.Join-Content{
		gap: 24px;
	}
}


@media (max-width: 1023px) {

    .join-container{
        background-image: none;
    }

    .date-line{
		flex-direction: column;
	}

    .date p br{
		display: none;
	}

    .goright{
		width: 13px;
		height: 19px;
		rotate: 90deg;
		margin: 0 auto;
	}

    .slogan{
        padding: 64px 120px;
    }
}


@media (max-width: 767px) {
	.KV{
		margin-top: 56px;
	}

    .TitleContent br{
        display: none;
    }

	.kv-img{
		background-image: url(../IMG/Banner/KV_360.png);
	}

    .agree-content{
        padding: 12px 16px 40px 16px;
    }

    .agreement .Title{
        font-size: clamp(24px, 6vw, 28px);
    }


    .agreement,.result{
        margin-top: 56px;
    }

    .agree-content{
        padding: 24px 16px;
    }


    .agree-content li{
        margin-top: 12px;
    }

    .label-text{
        gap: 8px;
    }
    .label-text p{
        width: auto;
        white-space: nowrap;
    }
    
    .helptext h5{
        text-align: right;
    }
    .submit-block{
        padding: 24px 16px;
    }


    .caption{
        margin-bottom: 16px;
    }

    .join-card{
        padding: 24px;
    }

    .result-title{
        margin-bottom: 32px;    
    }
}





@media (max-width: 767px) {

    .address-item{
        font-size: 20px;
    }

    .Join-container{
		padding: 0 24px;
		top: 50vw;
	}

    .address-text{
        font-size: 18px;
    }

    .cta-line{
        width: 100%;
    }

    .date-line{
        gap: 4px;
    }

    .yuanta-info{
        gap: 4px;
    }

    .open-map{
        width: 20px;
        margin-top: 4px;
    }

    .slogan{
        padding: 32px 40px;
    }

    .join-card{
        padding: 24px;
    }
    
    .cta-line{
        margin-bottom: 24px;
    }

    .date p{
		font-size: 18px;
    }

    .time-text{
        font-size: 20px;
        flex-direction: column;
        gap: 0;
    }

    .session-location-icon{
        margin-left: 4px;
    }

    .radio-label{
        padding: 8px 14px;
    }

}

