:root {
  --primary: #111827;          /* 진한 네이비 느낌 */
  --accent: #f97316;           /* 주황 포인트 */
  --accent-soft: #ffedd5;
  --bg: #f3f4f6;
  --card: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text-main: #111827;
  --text-sub: #6b7280;
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-main);
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 16px;
}

.container {
  width: 100%;
  max-width: 640px;
  background-color: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--border);
}

/* ---------------- HEADER ---------------- */

.header {
  margin-bottom: 20px;
}

.title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title .logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.5;
}

.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #facc15;
}

/* ---------------- SECTIONS ---------------- */

form {
  margin-top: 12px;
}

.section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}

.section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 16px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
}

.section-title-tag {
  font-size: 11px;
  color: var(--text-sub);
}

/* ---------------- FORM FIELDS ---------------- */

.field {
  margin-bottom: 12px;
}

.field-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field-label .required {
  color: #ef4444;
  font-size: 12px;
  margin-left: 4px;
}

.field-helper {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
  width: 100%;
  padding: 10px 11px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  outline: none;
  background-color: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.2);
  background-color: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.field-inline {
  display: flex;
  gap: 10px;
}

.field-inline .field {
  flex: 1;
  margin-bottom: 0;
}

/* ---------------- DATE CARD UI ---------------- */

.date-card-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.date-card {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: #f9fafb;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.date-card:hover {
  border-color: #fb923c;
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.2);
}

.date-card.active {
  border-color: #fb923c;
  background: #fff7ed;
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.4);
}

.date-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-main);
}

.date-card-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.4;
}

.hidden {
  display: none !important;
}

/* ---------------- UPLOAD AREA ---------------- */

.upload-area {
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #0f172a, #111827);
  position: relative;
  overflow: hidden;
}

.upload-area::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.2), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(251, 146, 60, 0.2), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.upload-inner {
  position: relative;
  border-radius: 12px;
  border: 1px dashed rgba(249, 250, 251, 0.6);
  background: linear-gradient(135deg, rgba(15,23,42,0.8), rgba(17,24,39,0.9));
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  cursor: pointer;
}

.upload-inner.dragover {
  border-color: #fb923c;
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.6);
  transform: translateY(-1px);
}

.upload-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #f97316, #fb923c);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.6);
}

.upload-icon span {
  font-size: 22px;
  color: #ffffff;
}

.upload-title {
  font-size: 13px;
  font-weight: 600;
  color: #f9fafb;
}

.upload-sub {
  font-size: 11px;
  color: #e5e7eb;
}

.upload-sub span {
  color: #fed7aa;
  font-weight: 500;
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.7);
  background: rgba(15, 23, 42, 0.8);
  color: #f9fafb;
  font-size: 12px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease, box-shadow 0.08s ease;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.5);
}

.upload-preview {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.upload-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background-color: #020617;
}

.upload-thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.upload-thumb-info {
  position: absolute;
  inset: auto 4px 4px 4px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #f9fafb;
  background: linear-gradient(to top, rgba(15,23,42,0.9), transparent);
  padding: 4px 5px 2px 5px;
  border-radius: 6px;
}

.upload-thumb-remove {
  border: none;
  background: rgba(15,23,42,0.8);
  color: #fecaca;
  font-size: 11px;
  border-radius: 999px;
  padding: 0 6px;
  cursor: pointer;
}

/* 숨겨진 파일 입력 */
#mainPhotos,
#hostPhotos {
  display: none;
}

/* ---------------- FOOTER ---------------- */

.footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.submit-btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
  transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.08s ease;
}

.submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.submit-btn[disabled] {
  opacity: 0.7;
  cursor: default;
  box-shadow: none;
}

.status-message {
  font-size: 12px;
  margin-top: 4px;
}

.status-success {
  color: #16a34a;
}

.status-error {
  color: #dc2626;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 480px) {
  .container {
    padding: 18px;
    border-radius: 12px;
  }
  .title {
    font-size: 20px;
  }
  .field-inline {
    flex-direction: column;
  }
  .upload-thumb img {
    height: 72px;
  }
}
