/* ==========================================================================
   Event Form - 2-Step Layout
   ========================================================================== */

.event-form-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

/* Step 1 - zsm-store-finder의 100vh 오버라이드 */
.event-form-wrap .zsm-store-finder {
    height: auto;
    max-height: none;
    overflow: visible;
}

.event-form-wrap .zsm-scroll-area {
    max-height: 60vh;
    height: auto;
    flex: none;
    overflow-y: auto;
}

/* ==========================================================================
   Step 2 - 폼
   ========================================================================== */

#event-step-2 {
    padding: 24px;
}

/* 뒤로가기 버튼 */
.event-form__back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #3b82f6;
    cursor: pointer;
    line-height: 1;
}

.event-form__back-btn:hover {
    color: #2563eb;
}

.event-form__back-btn svg {
    flex-shrink: 0;
}

/* 헤더 */
.event-form__header {
    margin-bottom: 20px;
}

.event-form__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #111;
}

/* 선택된 매장 카드 */
.event-selected-store {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    margin-bottom: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.event-selected-store__name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.event-selected-store__address {
    font-size: 13px;
    color: #888;
}

/* ==========================================================================
   폼 필드
   ========================================================================== */

.event-form__field {
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 4px;
}

.event-form__field label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

.event-form__field input[type="text"],
.event-form__field input[type="tel"] {
    width: 100%;
    padding: 8px 0;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
    background: transparent;
    box-sizing: border-box;
}

.event-form__field input::placeholder {
    color: #aab0b8;
}

.event-form__checkbox {
    margin: 24px 0;
}

.event-form__checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.event-form__checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #3b82f6;
    cursor: pointer;
}

.event-form__submit {
    width: 100%;
    padding: 14px;
    background-color: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.event-form__submit:hover {
    background-color: #2563eb;
}

.event-form__submit:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* ==========================================================================
   메시지
   ========================================================================== */

.event-form__message {
    display: none;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.event-form__message--success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.event-form__message--error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ==========================================================================
   반응형
   ========================================================================== */

@media (max-width: 520px) {
    #event-step-2 {
        padding: 16px;
    }

    .event-form-wrap .zsm-scroll-area {
        max-height: 55vh;
    }
}
