body {
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
    background: #fff;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 540px;
    margin: 48px auto;
    background: #fff;
    padding: 36px 32px 28px 32px;
    border-radius: 8px;
    border: 1px solid #d3d3d3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
h1 {
    font-size: 14px;
    margin-bottom: 30px;
    text-align: center;
    color: #ccbe7a;
    font-family: Arial, sans-serif;
    font-weight: normal;
    letter-spacing: 1px;
}
form label {
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
    color: #222;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: left;
}
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #F1F1F1;
    border-radius: 3px;
    font-size: 1.08em;
    box-sizing: border-box;
    margin-bottom: 10px;
    background: #F1F1F1;
    transition: border 0.2s;
    color: #222;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, select:focus, textarea:focus {
    border: 1px solid #F1F1F1;
    outline: none;
    background: #F1F1F1;
}
textarea {
    min-height: 64px;
    resize: vertical;
    font-family: inherit;
    font-size: inherit;
}
.required {
    color: #e53935;
    margin-left: 2px;
}
.section {
    margin-top: 22px;
    margin-bottom: 14px;
    font-size: 1em;
    color: #444;
    line-height: 1.7;
}
.birthday-group {
    display: flex;
    gap: 12px;
}
.submit-btn {
    width: 100%;
    background: #404040;
    color: #fff;
    border: none;
    padding: 13px 0;
    border-radius: 3px;
    font-size: 1.13em;
    margin-top: 30px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: background 0.2s, box-shadow 0.2s;
    text-align: center;
    display: block;
}
.submit-btn:hover {
    background: #222;
    box-shadow: 0 2px 8px rgba(64,64,64,0.08);
}
input[type="checkbox"] {
    margin-right: 7px;
    accent-color: #4a90e2;
}
label input[type="checkbox"] {
    vertical-align: middle;
}
a {
    color: #4a90e2;
    text-decoration: none;
    display: inline-block;
    margin-top: 18px;
    font-weight: 500;
}
a:hover {
    text-decoration: underline;
}
.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 0;
}
.form-group {
    flex: 1 1 0;
    min-width: 0;
}
.form-group label {
    margin-top: 0;
}
@media (max-width: 600px) {
    .container {
        padding: 18px 6vw 18px 6vw;
    }
    h1 {
        font-size: 1.1em;
    }
    .submit-btn {
        font-size: 1em;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .contact-row input#contact,
    #regionCodeOther {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        padding: 11px 12px;
        margin-bottom: 10px;
    }
    .contact-row.region-other-mobile {
        display: block;
    }
    .contact-row.region-other-mobile #regionCodeOther,
    .contact-row.region-other-mobile #contact {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        padding: 11px 12px;
        margin-bottom: 10px;
        font-size: 1.08em;
        display: block;
    }
    #regionCodeOther {
        display: none;
    }
    .contact-row.region-other-mobile #regionCodeOther.show,
    .contact-row.region-other-mobile #contact {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        padding: 11px 12px;
        margin-bottom: 10px;
        font-size: 1.08em;
        display: block;
    }
    #regionCodeOther {
        margin-top: 0;
    }
    #regionCodeOther.show {
        display: block;
    }
}
.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
    margin-bottom: 6px;
}
.api-test-row {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    display: none;
}
#testApiBtn {
    background: #4a90e2;
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: 3px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: background 0.2s;
}
#testApiBtn:hover {
    background: #357abd;
}
.contact-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.contact-row select#regionCode {
    width: 250px;
    min-width: 120px;
    max-width: 260px;
    flex-shrink: 0;
}
.contact-row input#contact {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}
@media (max-width: 600px) {
    .contact-row {
        flex-direction: column;
        gap: 0;
    }
    .contact-row select#regionCode {
        width: 100%;
        min-width: 0;
        margin-bottom: 8px;
        max-width: 100%;
    }
    #regionCodeOther {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .contact-row input#contact {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}
.field-error {
    border: 1.5px solid #e53935 !important;
    background: #fff0f0 !important;
}
.field-error-message {
    color: #e53935;
    font-size: 13px;
    margin-top: 2px;
    margin-bottom: 4px;
    display: block;
}
.get-token-row {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
}
#getTokenBtn {
    background: #4a90e2;
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: 3px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: background 0.2s;
}
#getTokenBtn:hover {
    background: #357abd;
}

/* iPad/Tablet (portrait & landscape) styles */
@media (min-width: 601px) and (max-width: 1024px) {
    .container {
        max-width: 700px;
        padding: 40px 48px 32px 48px;
        margin: 40px auto;
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    }
    h1 {
        font-size: 1.35em;
        margin-bottom: 36px;
        letter-spacing: 1.5px;
    }
    .form-row {
        gap: 32px;
    }
    .form-group label {
        font-size: 1.08em;
    }
    input[type="text"], input[type="email"], input[type="tel"], select, textarea {
        font-size: 1.13em;
        padding: 15px 14px;
        border-radius: 5px;
    }
    .submit-btn {
        font-size: 1.18em;
        padding: 16px 0;
        border-radius: 5px;
        margin-top: 36px;
    }
    .contact-row {
        gap: 18px;
    }
    .contact-row select {
        width: 260px;
        min-width: 160px;
        font-size: 1.08em;
    }
    .logo-row {
        margin-top: 32px;
        margin-bottom: 12px;
    }
    .section {
        font-size: 1.08em;
        margin-top: 28px;
        margin-bottom: 18px;
    }
    .field-error-message {
        font-size: 14px;
    }
}

.error-message {
    background: #fff0f0;
    border: 1px solid #e53935;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
    color: #e53935;
}

.error-message h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #e53935;
}

.error-message ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.error-message li {
    margin-bottom: 4px;
    font-size: 13px;
}

.error-message p {
    margin: 8px 0 0 0;
    font-size: 13px;
    line-height: 1.4;
}

#regionCodeOther {
    width: 180px;
    min-width: 120px;
    max-width: 240px;
    flex-shrink: 0;
}
#regionCodeOther.show {
    display: block;
}
@media (max-width: 600px) {
    .contact-row.region-other-mobile #regionCodeOther.show,
    .contact-row.region-other-mobile #contact {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        padding: 11px 12px;
        margin-bottom: 10px;
        font-size: 1.08em;
        display: block;
    }
    #regionCodeOther {
        margin-top: 0;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

@media (min-width: 1025px) {
    .container {
        max-width: 720px;
        padding: 48px 48px 36px 48px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    }
    form label {
        font-size: 1.13em;
        margin-top: 24px;
        margin-bottom: 10px;
    }
    input[type="text"], input[type="email"], input[type="tel"], select, textarea {
        font-size: 1.15em;
        padding: 15px 14px;
    }
    .form-row {
        gap: 40px;
        margin-bottom: 18px;
    }
    .form-group {
        margin-bottom: 0;
    }
}

.indent {
    display: inline-block;
    margin-left: 2em;
}

#regionCodeOther { display: none !important; }
#regionCodeOther.show { display: block !important; }

.info-statement {
    display: flex;
    align-items: flex-start;
    margin-left: 2em;
    margin-bottom: 0.5em;
}
.info-number {
    margin-left: -2em;
    min-width: 2em;
    text-align: right;
    flex-shrink: 0;
    font-weight: bold;
    color: #444;
    margin-right: 0.5em;
}
.info-text {
    /* No extra margin needed, aligns with the block's left margin */
    color: #444;
    line-height: 1.7;
}

/* Override iOS Safari default blue styling for select dropdowns */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #222 !important;
    background-color: #F1F1F1 !important;
}

/* iOS Safari specific overrides */
select::-ms-expand {
    display: none;
}

/* Override iOS Safari's default blue color for select options */
select option {
    color: #222;
    background-color: #F1F1F1;
}

/* Additional iOS Safari overrides */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select {
        color: #222 !important;
        background-color: #F1F1F1 !important;
    }
    
    select:focus {
        color: #222 !important;
        background-color: #F1F1F1 !important;
    }
} 