:root {
  --primary: #5b50e6;
  --primary-dark: #493fd0;
  --primary-light: #efedff;

  --danger: #e5484d;
  --danger-dark: #c9363c;
  --danger-light: #ffe8e9;

  --success: #24a168;
  --warning: #d98513;

  --text-main: #172033;
  --text-sub: #687386;
  --text-light: #8c95a7;

  --background: #f4f6fc;
  --surface: #ffffff;

  --border: #dfe3ed;
  --border-strong: #cbd1de;

  --shadow-sm: 0 4px 14px rgba(33, 42, 73, 0.06);
  --shadow-md: 0 12px 32px rgba(33, 42, 73, 0.1);
  --shadow-lg: 0 24px 60px rgba(33, 42, 73, 0.16);

  --radius-sm: 10px;
  --radius-md: 15px;
  --radius-lg: 22px;
  --radius-xl: 28px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: var(--background);
  word-break: keep-all;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

input,
select,
textarea {
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.caption {
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.title {
  color: var(--text-main);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.body {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.65;
}

.number {
  font-variant-numeric: tabular-nums;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  color: #30394d;
  font-size: 14px;
  font-weight: 700;
}

.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.input::placeholder {
  color: #a1a8b6;
}

.input:hover {
  border-color: #aaa4ee;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 80, 230, 0.12);
}

.input:disabled {
  color: var(--text-light);
  background: #f1f3f7;
  cursor: not-allowed;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-sub);
  font-size: 14px;
  cursor: pointer;
}

.checkbox input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
}

.btn {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    #665bef 0%,
    var(--primary) 100%
  );
  box-shadow: 0 8px 20px rgba(91, 80, 230, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(
    135deg,
    #5d52e3 0%,
    var(--primary-dark) 100%
  );
  box-shadow: 0 11px 24px rgba(91, 80, 230, 0.28);
}

.btn-outline {
  color: var(--primary);
  background: #ffffff;
  border: 1px solid #bdb7f6;
}

.btn-outline:hover:not(:disabled) {
  background: var(--primary-light);
  border-color: var(--primary);
}

.btn-danger {
  color: #ffffff;
  background: var(--danger);
  box-shadow: 0 8px 20px rgba(229, 72, 77, 0.18);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger-dark);
}

.btn-lg {
  min-height: 54px;
  font-size: 16px;
}

.btn-sm {
  min-height: 38px;
  padding: 0 13px;
  font-size: 13px;
  border-radius: 11px;
}

.btn-block {
  width: 100%;
}

.form-message {
  padding: 12px 14px;
  color: var(--danger-dark);
  background: var(--danger-light);
  border: 1px solid #ffc9cb;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.form-message.success {
  color: #157347;
  background: #e5f7ee;
  border-color: #b7e8ce;
}

.empty-message {
  padding: 34px 16px;
  color: var(--text-light);
  text-align: center;
  font-size: 14px;
}

.site-footer {
    width: 100%;
    margin-top: 40px;
    padding: 20px 16px;
    text-align: center;
    color: #98a2b3;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .title {
    font-size: 20px;
  }
}