/**
 * 설비투어 신청 페이지 CSS
 * Based on Figma Design - 1920px PC
 */

/* ===== Variables ===== */
:root {
    --ft-primary: #111111;
    --ft-green: #55B954;
    --ft-grey: #B8B8B8;
    --ft-grey-light: #CFCFCF;
    --ft-grey-border: #9D9D9D;
    --ft-white: #FFFFFF;
    --ft-black: #000000;
    --ft-container: 1440px;
    --ft-font: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

/* ===== FOUC Prevention ===== */
.facility-tour-wrap,
.facility-tour_wrap {
    opacity: 0;
    transition: opacity 0.15s ease-in;
}

.facility-tour-wrap.is-loaded,
.facility-tour_wrap.is-loaded {
    opacity: 1;
}

/* ===== Base ===== */
.facility-tour-wrap {
    font-family: var(--ft-font);
    color: var(--ft-primary);
    background: var(--ft-white);
}

/* ===== Title Tabs ===== */
.facility-tour-title {
    padding-top: 120px;
}

.title-container {
    max-width: var(--ft-container);
    margin: 0 auto;
    padding: 0 20px;
}

.title-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.title-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px 15px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.title-tab span {
    font-size: 40px;
    font-weight: 700;
    color: var(--ft-grey);
    letter-spacing: -0.01em;
}

.title-tab.is-active {
    border-bottom-color: var(--ft-black);
}

.title-tab.is-active span {
    color: var(--ft-primary);
}

.title-tab:hover span {
    color: var(--ft-primary);
}

/* ===== Step Indicator ===== */
.facility-tour-stepper {
    padding: 80px 0 60px;
}

.stepper-container {
    max-width: var(--ft-container);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 200px;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 17px);
    width: calc(100% + 0px);
    height: 1px;
    background: #BCBDC0;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ft-white);
    border: 1px solid var(--ft-green);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.step-item.is-active .step-circle {
    background: var(--ft-green);
}

.step-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--ft-primary);
    letter-spacing: -0.004em;
}

.step-item.is-active .step-number {
    color: var(--ft-white);
}

.step-label {
    font-size: 19px;
    font-weight: 700;
    color: var(--ft-primary);
    text-align: center;
    letter-spacing: -0.0048em;
}

.step-line {
    display: none;
}

/* ===== Content Section ===== */
.facility-tour-content {
    padding-bottom: 80px;
}

.content-container {
    max-width: var(--ft-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Section Header ===== */
.section-header {
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--ft-primary);
    letter-spacing: -0.008em;
    line-height: 1.2;
    margin-bottom: 32px;
}

.section-divider {
    height: 2px;
    background: var(--ft-primary);
}

.section-divider-grey {
    height: 1px;
    background: var(--ft-grey-light);
    margin: 48px 0;
}

/* ===== Notice Section ===== */
.notice-section {
    margin-bottom: 0;
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    cursor: pointer;
    width: 100%;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 1px solid var(--ft-grey-border);
    border-radius: 5px;
    background: var(--ft-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 1px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-icon {
    background: var(--ft-green);
    border-color: var(--ft-green);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-icon::after {
    content: '';
    width: 14px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 5l4 4 8-8'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.notice-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--ft-primary);
    line-height: 1.3;
    letter-spacing: -0.0044em;
    flex: 1;
}

/* ===== Guide Section ===== */
.guide-section {
    margin-bottom: 0;
}

.guide-content {
    margin-bottom: 40px;
}

.guide-content p {
    font-size: 18px;
    font-weight: 500;
    color: var(--ft-primary);
    line-height: 1.5;
    letter-spacing: -0.0044em;
    margin-bottom: 0;
}

.guide-content p:empty {
    height: 18px;
}

.guide-agreement {
    margin-top: 40px;
}

.agreement-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--ft-primary);
    letter-spacing: -0.0044em;
}

/* ===== Buttons ===== */
.btn-container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.btn-next,
.btn-submit {
    padding: 14px 30px;
    min-width: 120px;
    background: var(--ft-black);
    color: var(--ft-white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
    letter-spacing: -0.0032em;
}

.btn-next:hover,
.btn-submit:hover {
    opacity: 0.8;
}

.btn-prev {
    padding: 14px 30px;
    min-width: 88px;
    background: var(--ft-white);
    color: var(--ft-primary);
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.0032em;
}

.btn-prev:hover {
    border-color: var(--ft-primary);
}

/* ===== Form Elements ===== */
.form-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 32px;
}

.form-label {
    width: 180px;
    min-width: 180px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ft-primary);
    padding-top: 12px;
}

.form-label.required::after {
    content: '*';
    color: #dc3545;
    margin-left: 4px;
}

.form-input {
    flex: 1;
}

.form-text,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ft-grey-light);
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--ft-font);
    color: var(--ft-primary);
    background: var(--ft-white);
    transition: border-color 0.2s ease;
}

.form-text:focus,
.form-select:focus {
    border-color: var(--ft-green);
    outline: none;
}

.form-select {
    cursor: pointer;
}

.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 1px solid var(--ft-grey-light);
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--ft-font);
    color: var(--ft-primary);
    resize: vertical;
}

.form-textarea:focus {
    border-color: var(--ft-green);
    outline: none;
}

.textarea-wrapper {
    position: relative;
}

.char-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 12px;
    color: var(--ft-grey);
}

/* ===== Apply Type Section (Card Style) ===== */
.apply-type-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.apply-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 180px;
    padding: 50px 30px;
    border: 1px solid var(--ft-grey-light);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--ft-white);
}

.apply-type-card input[type="radio"] {
    display: none;
}

.apply-type-card:hover {
    border-color: var(--ft-primary);
}

.apply-type-card.is-selected {
    border-color: var(--ft-primary);
}

.type-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--ft-primary);
}

.type-icon svg {
    width: 40px;
    height: 40px;
}

.type-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--ft-primary);
    letter-spacing: -0.004em;
}

/* ===== Form Fields Container ===== */
.form-fields-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-fields-container .form-row {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.form-fields-container .form-label {
    width: 231px;
    min-width: 231px;
    font-size: 18px;
    font-weight: 500;
    color: var(--ft-primary);
    padding-top: 0;
    letter-spacing: -0.0036em;
}

.form-fields-container .form-label.required::before {
    content: '*';
    color: #FF0000;
    margin-right: 2px;
}

.form-fields-container .form-label.required::after {
    display: none;
}

.form-fields-container .form-input {
    flex: 1;
    max-width: 318px;
}

.form-fields-container .form-input.full-width {
    max-width: 490px;
}

/* Email and Phone inputs need more width */
.form-fields-container .form-input.wide {
    max-width: 700px;
    min-width: 680px;
}

.form-fields-container .form-input:has(.email-input-wrap) {
    max-width: 700px;
    min-width: 680px;
}

.form-fields-container .form-input:has(.phone-input-wrap) {
    max-width: 700px;
    min-width: 620px;
}

/* Ensure all form inputs in container have proper border */
.form-fields-container .form-control-wrap .form-control {
    width: 100%;
    height: 52px;
    border: 1px solid #B8B8B8;
    border-radius: 5px;
    padding: 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--ft-font);
    color: var(--ft-primary);
    background: var(--ft-white);
    box-sizing: border-box;
}

/* Form Control Wrapper */
.form-control-wrap {
    position: relative;
}

.form-control-wrap.has-icon .form-control {
    padding-right: 40px;
}

.form-control-wrap .control-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ft-primary);
    pointer-events: none;
}

/* Input Suffix (e.g. "명", "persons") */
.form-control-wrap .input-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ft-primary);
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
}

.form-control-wrap input[type="number"] {
    padding-right: 50px;
}

/* Hide number input spinner */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Form Control */
.form-control {
    width: 100%;
    height: 52px;
    padding: 16px;
    border: 1px solid #B8B8B8;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--ft-font);
    color: var(--ft-primary);
    background: var(--ft-white);
    transition: border-color 0.2s ease;
    appearance: none;
    letter-spacing: -0.0028em;
    box-sizing: border-box;
}

/* Ensure all input types get proper border */
input.form-control,
input.form-control[type="text"],
input.form-control[type="tel"],
input.form-control[type="email"],
input.form-control[type="number"] {
    border: 1px solid #B8B8B8;
    border-radius: 5px;
    background: var(--ft-white);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-control::placeholder {
    color: var(--ft-primary);
}

.form-control:focus {
    border-color: var(--ft-primary);
    outline: none;
}

select.form-control {
    cursor: pointer;
}

/* Email Input */
.email-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.email-input-wrap .email-id {
    width: 318px !important;
    min-width: 318px !important;
    max-width: 318px !important;
    flex-shrink: 0;
}

.email-input-wrap .email-id .form-control {
    width: 100%;
    height: 52px;
    border: 1px solid #B8B8B8;
    border-radius: 5px;
    padding: 16px;
    box-sizing: border-box;
    background-color: var(--ft-white);
}

.email-at {
    font-size: 24px;
    font-weight: 500;
    color: var(--ft-primary);
    flex-shrink: 0;
}

.email-input-wrap .email-domain {
    width: 318px !important;
    min-width: 318px !important;
    max-width: 318px !important;
    flex-shrink: 0;
}

.email-input-wrap .email-domain .form-control {
    width: 100%;
    height: 52px;
    border: 1px solid #B8B8B8;
    border-radius: 5px;
    padding: 16px;
    padding-right: 40px;
    box-sizing: border-box;
    background-color: var(--ft-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.email-input-wrap .email-domain-custom {
    width: 318px !important;
    min-width: 318px !important;
    max-width: 318px !important;
    flex-shrink: 0;
}

.email-input-wrap .email-domain-custom .form-control {
    width: 100%;
    height: 52px;
    border: 1px solid #B8B8B8;
    border-radius: 5px;
    padding: 16px;
    box-sizing: border-box;
    background-color: var(--ft-white);
}

/* Phone Input */
.phone-input-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.phone-input-wrap .form-control-wrap {
    flex-shrink: 0;
}

.phone-input-wrap .phone-prefix {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}

.phone-input-wrap .phone-prefix .form-control {
    width: 100%;
    height: 52px;
    border: 1px solid #B8B8B8;
    border-radius: 5px;
    padding: 16px;
    padding-right: 40px;
    box-sizing: border-box;
    background-color: var(--ft-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.phone-input-wrap .phone-mid {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
}

.phone-input-wrap .phone-last {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
}

.phone-input-wrap .phone-mid .form-control,
.phone-input-wrap .phone-last .form-control {
    width: 100%;
    height: 52px;
    border: 1px solid #B8B8B8;
    border-radius: 5px;
    padding: 16px;
    box-sizing: border-box;
    background-color: var(--ft-white);
    margin-left: 30px;
}

.phone-input-wrap .btn-verify-phone {
    flex-shrink: 0;
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    height: 52px;
    padding: 0;
    background: #B8B8B8;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ft-white);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
}

/* Selectric Override for Phone Input */
.phone-input-wrap .phone-prefix .selectric-wrapper {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}

.phone-input-wrap .phone-prefix .selectric {
    width: 100% !important;
    height: 52px !important;
    border: 1px solid #B8B8B8 !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.phone-input-wrap .phone-prefix .selectric .label {
    display: block !important;
    height: 52px !important;
    line-height: 52px !important;
    margin: 0 38px 0 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #111 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.phone-input-wrap .phone-prefix .selectric .button {
    width: 20px !important;
    height: 20px !important;
    right: 16px !important;
    background: transparent !important;
}

.phone-input-wrap .phone-prefix .selectric .button:after {
    display: none !important;
}

.phone-input-wrap .phone-prefix .selectric .button:before {
    content: '' !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
}

.phone-input-wrap .phone-prefix .selectric-items {
    min-width: 120px !important;
}

/* Selectric Override for Email Domain */
.email-input-wrap .email-domain .selectric-wrapper {
    width: 318px !important;
    min-width: 318px !important;
    max-width: 318px !important;
}

.email-input-wrap .email-domain .selectric {
    width: 100% !important;
    height: 52px !important;
    border: 1px solid #B8B8B8 !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.email-input-wrap .email-domain .selectric .label {
    display: block !important;
    height: 52px !important;
    line-height: 52px !important;
    margin: 0 38px 0 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #111 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.email-input-wrap .email-domain .selectric .button {
    width: 20px !important;
    height: 20px !important;
    right: 16px !important;
    background: transparent !important;
}

.email-input-wrap .email-domain .selectric .button:after {
    display: none !important;
}

.email-input-wrap .email-domain .selectric .button:before {
    content: '' !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
}

.email-input-wrap .email-domain .selectric-items {
    min-width: 318px !important;
}

.btn-verify-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 52px;
    padding: 0 30px;
    background: #B8B8B8;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ft-white);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-verify-phone:hover {
    background: #9D9D9D;
}

.btn-verify-phone.filled {
    background: #B8B8B8;
    border: none;
    color: var(--ft-white);
}

.btn-verify-phone.filled:hover {
    background: #9D9D9D;
}

.btn-verify-phone.verified {
    background: var(--ft-green);
    border-color: var(--ft-green);
    color: var(--ft-white);
}

/* SMS Verify Wrap */
.sms-verify-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.sms-verify-wrap .sms-input {
    flex: 1;
    max-width: 150px;
}

.btn-verify-code {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 20px;
    background: var(--ft-green);
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ft-white);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-verify-code:hover {
    opacity: 0.8;
}

/* Legacy Tour Type Selector (for backwards compatibility) */
.tour-type-selector {
    display: flex;
    gap: 20px;
}

.type-option {
    flex: 1;
    cursor: pointer;
}

.type-option input[type="radio"] {
    display: none;
}

.type-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px solid var(--ft-grey-light);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.type-option input:checked + .type-box {
    border-color: var(--ft-green);
    background: rgba(85, 185, 84, 0.05);
}

.type-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ft-primary);
    margin-bottom: 4px;
}

.type-desc {
    font-size: 11px;
    color: var(--ft-grey);
}

/* ===== Phone Verification ===== */
.phone-wrap {
    display: flex;
    gap: 12px;
}

.phone-wrap .form-text {
    flex: 1;
}

.btn-sms {
    padding: 12px 20px;
    background: #495057;
    color: var(--ft-white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-sms:hover {
    background: #343a40;
}

.btn-sms.verified {
    background: var(--ft-green);
    cursor: default;
}

.sms-verify-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.sms-input {
    width: 150px !important;
}

.btn-verify {
    padding: 12px 20px;
    background: var(--ft-green);
    color: var(--ft-white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-verify:hover {
    opacity: 0.8;
}

.timer {
    font-size: 14px;
    color: #dc3545;
    font-weight: 500;
}

/* ===== Privacy Section ===== */
.privacy-section {
    margin-bottom: 0;
}

.privacy-content {
    max-height: 200px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
}

/* Privacy Notice */
.privacy-notice {
    margin-bottom: 20px;
}

.privacy-notice ul {
    margin: 0;
    padding-left: 20px;
}

.privacy-notice li {
    font-size: 16px;
    font-weight: 500;
    color: var(--ft-primary);
    line-height: 1.5;
    letter-spacing: -0.0032em;
}

/* Privacy Notice Text (without bullet) */
.privacy-notice-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--ft-primary);
    line-height: 1.5;
    letter-spacing: -0.0032em;
    margin-bottom: 24px;
}

/* Privacy Policy Content (scrollable box) */
.privacy-policy-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 24px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.7;
    color: #495057;
}

.privacy-policy-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ft-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
}

.privacy-policy-content h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ft-primary);
    margin-top: 20px;
    margin-bottom: 12px;
}

.privacy-policy-content p {
    margin-bottom: 10px;
}

.privacy-policy-content ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.privacy-policy-content li {
    margin-bottom: 4px;
}

.privacy-policy-content strong {
    color: var(--ft-primary);
}

.privacy-policy-content table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    table-layout: fixed;
    border-top: solid 2px var(--ft-primary);
    border-left: solid 1px #d2d2d2;
    margin-bottom: 12px;
}

.privacy-policy-content table th,
.privacy-policy-content table td {
    border-bottom: solid 1px #d2d2d2;
    border-right: solid 1px #d2d2d2;
    padding: 8px;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    word-break: break-all;
}

.privacy-policy-content table th {
    font-weight: 700;
    color: var(--ft-primary);
}

/* Privacy Table */
.privacy-table-wrap {
    margin-bottom: 32px;
    overflow-x: auto;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.privacy-table th,
.privacy-table td {
    padding: 16px 20px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #D2D2D2;
    font-size: 16px;
    line-height: 1.6;
}

.privacy-table thead th {
    background: var(--ft-white);
    font-weight: 700;
    color: var(--ft-primary);
    border-top: 2px solid var(--ft-primary);
}

.privacy-table tbody td {
    font-weight: 500;
    color: #666666;
    background: var(--ft-white);
}

.privacy-table tbody td.category {
    font-weight: 700;
    color: var(--ft-primary);
}

.privacy-table tbody td.category.highlight {
    color: #FF0000;
}

.privacy-agreement {
    margin-top: 16px;
}

.privacy-agreement .checkbox-label {
    gap: 10px;
}

.privacy-agreement .agreement-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--ft-primary);
}

.required-mark {
    color: #dc3545;
    font-weight: 700;
}

/* ===== Calendar (FullCalendar 여기어때 스타일) ===== */
.calendar-wrapper {
    margin: 40px 0;
    background: var(--ft-white);
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    padding: 32px;
}

/* Calendar Legend Top */
.calendar-legend-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E5E5;
}

.legend-left {
    display: flex;
    gap: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
}

.legend-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-item.available .dot {
    background: var(--ft-green);
}

.legend-item.closed .dot {
    background: #BCBDC0;
}

.selected-date-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: #F8F9FA;
    border-radius: 8px;
}

.selected-date-label {
    font-size: 14px;
    font-weight: 500;
    color: #666666;
}

.selected-date-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--ft-green);
}

/* FullCalendar Container */
#tourCalendar {
    background: var(--ft-white);
    font-family: var(--ft-font);
}

/* FullCalendar Toolbar (Navigation) */
.fc .fc-toolbar {
    margin-bottom: 24px;
}

.fc .fc-toolbar-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ft-primary);
}

.fc .fc-button-group {
    gap: 8px;
}

.fc .fc-button-primary {
    background: var(--ft-white);
    border: 1px solid #E5E5E5;
    color: #666666;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.fc .fc-button-primary:hover {
    background: #F8F9FA;
    border-color: var(--ft-green);
    color: var(--ft-green);
}

.fc .fc-button-primary:focus {
    box-shadow: none;
}

.fc .fc-button-primary:disabled {
    background: #F8F9FA;
    border-color: #E5E5E5;
    color: #BCBDC0;
    opacity: 0.6;
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: var(--ft-green);
    border-color: var(--ft-green);
    color: var(--ft-white);
}

/* FullCalendar Header (Weekdays) */
.fc .fc-col-header-cell {
    padding: 16px 0;
    background: transparent;
    border: none;
}

.fc .fc-col-header-cell-cushion {
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    text-decoration: none;
}

.fc .fc-day-sun .fc-col-header-cell-cushion {
    color: #FF6B6B;
}

.fc .fc-day-sat .fc-col-header-cell-cushion {
    color: #4A90D9;
}

/* FullCalendar Date Cells */
.fc .fc-daygrid-day {
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fc .fc-daygrid-day:hover {
    background: rgba(85, 185, 84, 0.08);
}

.fc .fc-daygrid-day-frame {
    padding: 8px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fc .fc-daygrid-day-top {
    justify-content: center;
    margin-bottom: 4px;
}

.fc .fc-daygrid-day-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--ft-primary);
    text-decoration: none;
    padding: 0;
}

.fc .fc-day-sun .fc-daygrid-day-number {
    color: #FF6B6B;
}

.fc .fc-day-sat .fc-daygrid-day-number {
    color: #4A90D9;
}

/* Past Days */
.fc .fc-day-past .fc-daygrid-day-number {
    color: #BCBDC0;
}

.fc .fc-day-past {
    background: #FAFAFA;
    cursor: not-allowed;
}

/* Weekend Days (Saturday, Sunday) - styled like past dates */
.fc .fc-day-sat:not(.fc-day-past),
.fc .fc-day-sun:not(.fc-day-past) {
    background: #FAFAFA;
    cursor: not-allowed;
}

.fc .fc-day-sat:not(.fc-day-past):hover,
.fc .fc-day-sun:not(.fc-day-past):hover {
    background: #FAFAFA;
}

/* Closed Days (no schedule registered) - styled like past dates */
.fc .fc-day-closed:not(.fc-day-past) {
    background: #FAFAFA;
    cursor: not-allowed;
}

.fc .fc-day-closed:not(.fc-day-past):hover {
    background: #FAFAFA;
}

.fc .fc-day-closed .fc-daygrid-day-number {
    color: #BCBDC0;
}

/* Today */
.fc .fc-day-today {
    background: rgba(85, 185, 84, 0.05);
}

.fc .fc-day-today .fc-daygrid-day-number {
    background: var(--ft-green);
    color: var(--ft-white);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Selected Day (단일 선택) */
.fc .fc-daygrid-day.fc-day-selected {
    background: var(--ft-green);
    border-radius: 12px;
}

.fc .fc-daygrid-day.fc-day-selected .fc-daygrid-day-number {
    color: var(--ft-white);
    background: transparent;
}

/* Date Range Selection (범위 선택) */
.fc .fc-daygrid-day.fc-day-range-selecting {
    background: rgba(85, 185, 84, 0.3);
    border-radius: 12px;
}

.fc .fc-daygrid-day.fc-day-in-range {
    background: rgba(85, 185, 84, 0.15);
    border-radius: 0;
}

.fc .fc-daygrid-day.fc-day-range-start {
    background: var(--ft-green);
    border-radius: 12px 0 0 12px;
}

.fc .fc-daygrid-day.fc-day-range-end {
    background: var(--ft-green);
    border-radius: 0 12px 12px 0;
}

.fc .fc-daygrid-day.fc-day-range-start.fc-day-range-end {
    border-radius: 12px;
}

.fc .fc-daygrid-day.fc-day-range-start .fc-daygrid-day-number,
.fc .fc-daygrid-day.fc-day-range-end .fc-daygrid-day-number {
    color: var(--ft-white);
    background: transparent;
}

.fc .fc-daygrid-day.fc-day-range-start .fc-event-available,
.fc .fc-daygrid-day.fc-day-range-end .fc-event-available {
    background: rgba(255, 255, 255, 0.25) !important;
    color: var(--ft-white) !important;
}

/* FullCalendar Events (Status Badges) */
.fc .fc-daygrid-day-events {
    margin-top: auto;
}

.fc .fc-daygrid-event {
    margin: 2px auto 0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.fc .fc-event-available {
    background: #55B954 !important;
    color: #FFFFFF !important;
    font-weight: 700;
}

/* 정원이 모두 찬 날짜 - 관리자 일정관리 화면과 동일한 '투어 불가' 배지 */
.fc .fc-event-closed {
    background: #f44336 !important;
    border-color: #f44336 !important;
    color: #FFFFFF !important;
    font-weight: 700;
    cursor: not-allowed;
}

/* Hide default borders */
.fc-theme-standard td,
.fc-theme-standard th {
    border: none;
}

.fc-theme-standard .fc-scrollgrid {
    border: none;
}

/* Hide other month days */
.fc .fc-day-other {
    visibility: hidden;
}

/* Capacity text in event */
.fc .fc-event-title {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Time Slots ===== */
.timeslot-wrapper {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--ft-grey-light);
}

.subsection-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--ft-primary);
    margin-bottom: 20px;
}

.timeslot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.timeslot-item {
    padding: 16px 24px;
    border: 2px solid var(--ft-grey-light);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    min-width: 140px;
}

.timeslot-item:hover:not(.disabled) {
    border-color: var(--ft-green);
}

.timeslot-item.selected {
    border-color: var(--ft-green);
    background: rgba(85, 185, 84, 0.05);
}

.timeslot-item.disabled {
    background: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
    /* 예약이 마감된 시간대는 마우스 오버/클릭 자체를 차단 */
    pointer-events: none;
}

.timeslot-item .time {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ft-primary);
    margin-bottom: 4px;
}

.timeslot-item .capacity {
    font-size: 13px;
    color: var(--ft-grey);
}

.no-slots {
    color: var(--ft-grey);
    text-align: center;
    padding: 20px;
}

/* Date-grouped Time Slots */
.timeslot-date-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ft-grey-light);
}

.timeslot-date-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.timeslot-date-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.timeslot-date-header .date-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--ft-primary);
    padding-left: 12px;
    border-left: 3px solid var(--ft-green);
}

.timeslot-date-header .selected-time-badge {
    display: inline-block;
    margin-left: 12px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ft-grey);
    background: transparent;
    border-radius: 4px;
}

.timeslot-date-header .selected-time-badge.has-selection {
    color: #fff;
    background: var(--ft-green);
}

.timeslot-list-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.timeslot-list-inner .timeslot-item {
    min-width: 100px;
    padding: 12px 16px;
}

.timeslot-list-inner .timeslot-item .time {
    font-size: 14px;
}

.timeslot-list-inner .timeslot-item .capacity {
    font-size: 11px;
}

.no-slots-small {
    color: var(--ft-grey);
    font-size: 13px;
    padding: 8px 0;
    margin: 0;
}

/* ===== CAPTCHA ===== */
.captcha-section {
    margin-bottom: 0;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
}

.captcha-box img {
    height: 50px;
    border-radius: 4px;
}

.btn-refresh {
    width: 40px;
    height: 40px;
    background: var(--ft-white);
    border: 1px solid var(--ft-grey-light);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-refresh:hover {
    background: #e9ecef;
}

.ico-refresh {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23495057'%3E%3Cpath d='M17.65 6.35A7.958 7.958 0 0012 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0112 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z'/%3E%3C/svg%3E");
    background-size: contain;
}

.captcha-input {
    width: 150px !important;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--ft-white);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid var(--ft-grey-light);
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--ft-primary);
}

.modal-body {
    padding: 32px 24px;
}

.completion-icon {
    width: 80px;
    height: 80px;
    background: var(--ft-green);
    color: var(--ft-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
}

.completion-message {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--ft-primary);
    margin-bottom: 8px;
}

.completion-notice {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.completion-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--ft-grey-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-size: 14px;
    color: var(--ft-grey);
}

.info-row .value {
    font-size: 15px;
    font-weight: 600;
    color: var(--ft-primary);
}

.document-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
}

.document-notice h4 {
    font-size: 16px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 12px;
}

.document-notice p {
    font-size: 14px;
    color: #856404;
    margin-bottom: 12px;
}

.document-notice ul {
    margin: 0;
    padding-left: 20px;
}

.document-notice li {
    font-size: 13px;
    color: #856404;
    margin-bottom: 4px;
}

.document-notice .warning {
    color: #dc3545;
    font-weight: 500;
    margin-top: 12px;
    margin-bottom: 0;
}

.modal-footer {
    padding: 16px 24px 24px;
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .title-tab span {
        font-size: 29px;
    }

    .section-title {
        font-size: 22px;
    }

    .notice-text,
    .guide-content p,
    .agreement-text {
        font-size: 14px;
    }

    .step-label {
        font-size: 14px;
    }

    .step-item:not(:last-child)::after {
        width: calc(100% + 10px);
    }

    .checkbox-label {
        gap: 20px;
    }

    /* Apply Type Cards */
    .apply-type-section {
        gap: 16px;
    }

    .apply-type-card {
        width: 160px;
        height: 150px;
        padding: 30px 20px;
    }

    .type-text {
        font-size: 16px;
    }

    /* Form Fields */
    .form-fields-container .form-label {
        width: 180px;
        min-width: 180px;
        font-size: 16px;
    }

    .form-fields-container .form-input {
        max-width: 280px;
    }

    .form-fields-container .form-input.full-width {
        max-width: 400px;
    }

    /* Privacy Table */
    .privacy-table {
        min-width: 600px;
    }

    .privacy-table th,
    .privacy-table td {
        font-size: 14px;
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    .facility-tour-title {
        padding-top: 80px;
    }

    .title-tabs {
        gap: 20px;
    }

    .title-tab span {
        font-size: 22px;
    }

    .facility-tour-stepper {
        padding: 40px 0;
    }

    .stepper-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .step-item {
        min-width: auto;
    }

    .step-item:not(:last-child)::after {
        display: none;
    }

    .step-label {
        font-size: 11px;
    }

    .section-title {
        font-size: 19px;
        margin-bottom: 19px;
    }

    .notice-text,
    .guide-content p,
    .agreement-text {
        font-size: 13px;
    }

    .checkbox-label {
        gap: 16px;
    }

    .checkbox-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 8px;
    }

    .form-label {
        width: 100%;
        min-width: auto;
        padding-top: 0;
    }

    .tour-type-selector {
        flex-direction: column;
    }

    .phone-wrap {
        flex-direction: column;
    }

    .btn-container {
        flex-direction: column;
    }

    .btn-next,
    .btn-prev,
    .btn-submit {
        width: 100%;
    }

    .captcha-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .captcha-input {
        width: 100% !important;
    }

    /* Apply Type Cards Mobile */
    .apply-type-section {
        flex-direction: row;
        gap: 12px;
    }

    .apply-type-card {
        width: calc(50% - 6px);
        height: 130px;
        padding: 20px 15px;
    }

    .type-icon svg {
        width: 30px;
        height: 30px;
    }

    .type-text {
        font-size: 14px;
    }

    /* Form Fields Mobile */
    .form-fields-container {
        gap: 24px;
    }

    .form-fields-container .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .form-fields-container .form-label {
        width: 100%;
        min-width: auto;
        font-size: 14px;
    }

    .form-fields-container .form-input,
    .form-fields-container .form-input.full-width {
        max-width: 100%;
        width: 100%;
    }

    .form-control {
        height: 48px;
        font-size: 14px;
        border: 1px solid #B8B8B8;
        border-radius: 5px;
        background: var(--ft-white);
    }

    /* Email Input Mobile */
    .email-input-wrap {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .email-input-wrap .email-id {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .email-at {
        font-size: 18px !important;
    }

    .email-input-wrap .email-domain {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .email-input-wrap .email-domain-custom {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .form-fields-container .form-input.wide {
        min-width: auto !important;
    }

    /* Phone Input Mobile */
    .phone-input-wrap {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .phone-input-wrap .phone-prefix {
        width: 80px !important;
        min-width: 80px !important;
        max-width: 80px !important;
    }

    .phone-input-wrap .phone-mid,
    .phone-input-wrap .phone-last {
        width: 80px !important;
        min-width: 80px !important;
        max-width: none !important;
        flex: 1 !important;
    }

    .phone-input-wrap .btn-verify-phone {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .phone-input-wrap .form-control {
        height: 48px;
        border: 1px solid #B8B8B8;
        border-radius: 5px;
        background: var(--ft-white);
    }

    .email-input-wrap .form-control {
        height: 48px;
        border: 1px solid #B8B8B8;
        border-radius: 5px;
        background: var(--ft-white);
    }

    .btn-verify-phone {
        height: 48px;
        padding: 0 16px;
        font-size: 13px;
        flex: none;
        width: 100%;
        margin-top: 8px;
    }

    .sms-verify-wrap {
        flex-wrap: wrap;
    }

    .sms-verify-wrap .sms-input {
        max-width: none;
        flex: 1;
    }

    .btn-verify-code {
        height: 48px;
        padding: 0 16px;
        font-size: 13px;
    }

    /* Privacy Table Mobile */
    .privacy-table-wrap {
        margin-left: -20px;
        margin-right: -20px;
        padding: 0 20px;
    }

    .privacy-table {
        min-width: 500px;
    }

    .privacy-table th,
    .privacy-table td {
        font-size: 12px;
        padding: 8px 10px;
    }

    .privacy-notice li {
        font-size: 13px;
    }

    .privacy-agreement .agreement-text {
        font-size: 14px;
    }
}

/* ===== Reservation Check Page ===== */

/* Check Page Header */
.facility-tour-check-wrap .reservation-header .section-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.008em;
}

.reservation-check-content {
    padding-top: 60px;
}

/* Check Form Section */
.check-form-section {
    padding: 48px 0;
}

.check-form-section .form-row {
    margin-bottom: 40px;
}

.check-form-section .form-row:last-child {
    margin-bottom: 0;
}

/* Check Form - Form Control */
.check-form-section .form-control-wrap {
    width: 318px;
}

.check-form-section .form-control-wrap .form-control {
    width: 100%;
    height: 52px;
    border: 1px solid #B8B8B8;
    border-radius: 5px;
    padding: 16px;
    box-sizing: border-box;
    font-family: var(--ft-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--ft-primary);
    background: transparent;
}

.check-form-section .form-control-wrap .form-control::placeholder {
    color: #B8B8B8;
    font-weight: 500;
}

.check-form-section .form-control-wrap .form-control:focus {
    outline: none;
    border-color: var(--ft-primary);
}

/* Check Form - Email Input */
.check-form-section .email-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-form-section .email-input-wrap .email-id {
    width: 318px;
}

.check-form-section .email-input-wrap .email-at {
    font-size: 24px;
    font-weight: 500;
    color: var(--ft-primary);
    flex-shrink: 0;
}

.check-form-section .email-input-wrap .email-domain {
    width: 318px;
}

/* Check Form - Selectric Override */
.check-form-section .email-domain .selectric-wrapper {
    width: 318px !important;
}

.check-form-section .email-domain .selectric {
    width: 100% !important;
    height: 52px !important;
    border: 1px solid #B8B8B8 !important;
    border-radius: 5px !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

.check-form-section .email-domain .selectric .label {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    margin: 0 38px 0 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--ft-primary) !important;
    line-height: 1 !important;
}

.check-form-section .email-domain .selectric .button {
    background: transparent !important;
}

.check-form-section .email-domain .selectric-items {
    width: 318px !important;
}

/* Check Button Container */
.check-btn-container {
    display: flex;
    justify-content: center;
    padding: 48px 0;
}

/* Check Tour Button */
.btn-check-tour {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 47px;
    background: var(--ft-black);
    border: none;
    border-radius: 5px;
    color: var(--ft-white);
    font-size: 16px;
    font-weight: 700;
    font-family: var(--ft-font);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-check-tour:hover {
    background: #333;
}

.btn-check-tour:active {
    transform: scale(0.98);
}

/* Reservation Result Section */
.reservation-result-content {
    padding-top: 0;
}

/* Reservation Box */
.reservation-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 80px 40px;
    border: 1px solid #B8B8B8;
    border-radius: 4px;
    box-sizing: border-box;
    gap: 40px;
}

.reservation-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.reservation-line {
    font-size: 30px;
    font-weight: 500;
    color: var(--ft-primary);
    letter-spacing: -0.006em;
    margin: 0;
}

.reservation-line .highlight-text {
    font-size: 36px;
    font-weight: 500;
    color: #42AB34;
}

.reservation-line .leader-name {
    font-size: 30px;
    font-weight: 500;
    color: var(--ft-primary);
}

.reservation-notice {
    font-size: 22px;
    font-weight: 500;
    color: #414141;
    letter-spacing: -0.0044em;
    margin: 0;
}

/* Cancel Tour Button */
.btn-cancel-tour {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 47px;
    background: var(--ft-black);
    border: none;
    border-radius: 5px;
    color: var(--ft-white);
    font-size: 16px;
    font-weight: 700;
    font-family: var(--ft-font);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-tour:hover {
    background: #333;
}

.btn-cancel-tour:active {
    transform: scale(0.98);
}

/* Reservation List Styles */
.result-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: var(--ft-primary);
}

.reservation-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reservation-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    background: #fafafa;
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.reservation-no {
    font-size: 16px;
    font-weight: 600;
    color: var(--ft-primary);
}

.reservation-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.reservation-status.status-pending {
    background: #fff3cd;
    color: #856404;
}

.reservation-status.status-approved {
    background: #d4edda;
    color: #155724;
}

.reservation-status.status-rejected,
.reservation-status.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.reservation-body p {
    margin: 8px 0;
    font-size: 16px;
    color: #333;
}

.reservation-body p strong {
    display: inline-block;
    min-width: 80px;
    color: #666;
}

.reservation-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    text-align: right;
}

.btn-cancel-reservation {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: #dc3545;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel-reservation:hover {
    background: #c82333;
}

.cancel-disabled {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    color: #999;
    background: #f0f0f0;
    border-radius: 4px;
}

/* No Result Section */
.no-result-content {
    padding: 100px 0;
}

.no-result-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.no-result-icon {
    margin-bottom: 24px;
}

.no-result-icon svg {
    width: 64px;
    height: 64px;
}

.no-result-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--ft-primary);
    margin-bottom: 12px;
}

.no-result-subtext {
    font-size: 16px;
    font-weight: 400;
    color: var(--ft-grey);
}

/* Check Page Responsive */
@media screen and (max-width: 1024px) {
    .facility-tour-check-wrap .reservation-header .section-title {
        font-size: 32px;
    }

    .btn-check-tour {
        width: 100%;
        max-width: 300px;
    }

    .reservation-box {
        padding: 60px 30px;
    }

    .reservation-line {
        font-size: 24px;
    }

    .reservation-line .highlight-text {
        font-size: 28px;
    }

    .reservation-notice {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .facility-tour-check-wrap .reservation-header .section-title {
        font-size: 28px;
    }

    .check-form-section .form-row {
        margin-bottom: 24px;
    }

    .check-form-section .form-control-wrap {
        width: 100%;
    }

    .check-form-section .email-input-wrap {
        flex-wrap: wrap;
    }

    .check-form-section .email-input-wrap .email-id,
    .check-form-section .email-input-wrap .email-domain {
        width: 100%;
    }

    .check-form-section .email-domain .selectric-wrapper {
        width: 100% !important;
    }

    .reservation-box {
        padding: 40px 20px;
        gap: 30px;
    }

    .reservation-line {
        font-size: 20px;
    }

    .reservation-line .highlight-text {
        font-size: 24px;
    }

    .reservation-notice {
        font-size: 16px;
    }

    .btn-cancel-tour {
        width: 100%;
        max-width: 260px;
    }

    .no-result-content {
        padding: 60px 0;
    }

    .no-result-icon svg {
        width: 48px;
        height: 48px;
    }

    .no-result-text {
        font-size: 18px;
    }

    .no-result-subtext {
        font-size: 14px;
    }
}

/* ===== Cancel Page Styles ===== */

/* Cancel Content */
.cancel-content {
    padding-top: 80px;
}

.cancel-header .section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--ft-primary);
    text-align: center;
}

/* Cancel Submit Button */
.btn-cancel-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 47px;
    background: var(--ft-black);
    border: none;
    border-radius: 5px;
    color: var(--ft-white);
    font-size: 16px;
    font-weight: 700;
    font-family: var(--ft-font);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-submit:hover {
    background: #333;
}

.btn-cancel-submit:active {
    transform: scale(0.98);
}

.btn-cancel-submit:disabled {
    background: var(--ft-grey);
    cursor: not-allowed;
}

/* Cancel Success Section */
.cancel-success-content {
    padding-top: 0;
}

.cancel-success-content .cancel-btn-container {
    padding-bottom: 48px;
}

.cancel-failed-content {
    padding: 100px 0;
}

.cancel-success-box {
    margin-top: 0;
}

.cancel-failed-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.failed-icon {
    margin-bottom: 24px;
}

.failed-icon svg {
    width: 64px;
    height: 64px;
}

.failed-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--ft-primary);
    margin-bottom: 16px;
}

.failed-subtext {
    font-size: 16px;
    font-weight: 400;
    color: var(--ft-grey);
    margin-bottom: 32px;
}

/* Cancel Complete Text */
.cancel-complete-text {
    font-size: 30px;
    font-weight: 500;
    color: var(--ft-primary);
    letter-spacing: -0.006em;
    margin: 0;
}

.cancel-thanks-text {
    font-size: 22px;
    font-weight: 500;
    color: #414141;
    letter-spacing: -0.0044em;
    margin: 0;
}

/* Disabled Button Style */
.btn-cancel-submit.disabled {
    background: var(--ft-grey);
    cursor: not-allowed;
}

.btn-cancel-submit.disabled:hover {
    background: var(--ft-grey);
}

/* Cancel Page Responsive */
@media screen and (max-width: 1024px) {
    .cancel-header .section-title {
        font-size: 32px;
    }

    .btn-cancel-submit {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-width: 768px) {
    .cancel-content {
        padding-top: 60px;
    }

    .cancel-header .section-title {
        font-size: 28px;
    }

    .cancel-form-section .form-control-wrap {
        width: 100%;
    }

    .cancel-form-section .email-input-wrap {
        flex-wrap: wrap;
    }

    .cancel-form-section .email-input-wrap .email-id,
    .cancel-form-section .email-input-wrap .email-domain {
        width: 100%;
    }

    .cancel-failed-content {
        padding: 60px 0;
    }

    .failed-icon svg {
        width: 48px;
        height: 48px;
    }

    .failed-text {
        font-size: 20px;
    }

    .failed-subtext {
        font-size: 14px;
    }

    .cancel-complete-text {
        font-size: 24px;
    }

    .cancel-thanks-text {
        font-size: 18px;
    }
}

/* ===== 예약 확인/취소 - 화면 축소 시 입력 박스 폭 통일 (2026-09-04) =====
   1024px 이하에서 입력 박스가 318px 로 고정돼 있어 신청자명/이메일 영역의
   폭이 서로 달라 보이던 문제. 세로로 쌓고 폭을 100% 로 맞춘다. */
@media screen and (max-width: 1024px) {

    .check-form-section .form-input,
    .cancel-form-section .form-input {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .check-form-section .form-control-wrap,
    .cancel-form-section .form-control-wrap {
        width: 100% !important;
    }

    .check-form-section .email-input-wrap,
    .cancel-form-section .email-input-wrap {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .check-form-section .email-input-wrap .email-id,
    .check-form-section .email-input-wrap .email-domain,
    .check-form-section .email-input-wrap .email-domain-custom,
    .cancel-form-section .email-input-wrap .email-id,
    .cancel-form-section .email-input-wrap .email-domain,
    .cancel-form-section .email-input-wrap .email-domain-custom {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    /* Selectric 이 감싼 도메인 선택 박스 (min/max-width 가 318px 로 잠겨 있어 함께 풀어준다) */
    .check-form-section .email-domain .selectric-wrapper,
    .cancel-form-section .email-domain .selectric-wrapper,
    .check-form-section .email-domain .selectric-items,
    .cancel-form-section .email-domain .selectric-items {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    /* 직접입력 전환 시 입력창(되돌리기 버튼 36px + 여백 4px 제외) */
    .check-form-section .email-domain #emailDomainDirect,
    .cancel-form-section .email-domain #emailDomainDirect {
        width: calc(100% - 40px) !important;
    }
}

/* ===== 예약 확인/취소 - 버튼 가운데 정렬 (2026-09-04) =====
   .btn-container 기본값이 flex-end(오른쪽)이고, 768px 이하에서는
   flex-direction:column 이 되어 가로 중앙이 align-items 로 넘어가므로 둘 다 지정한다. */
.check-btn-container,
.cancel-btn-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
}

.check-btn-container .btn-check-tour,
.cancel-btn-container .btn-cancel-submit {
    margin-left: auto !important;
    margin-right: auto !important;
}
