* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #eef3f8;
  color: #1f2937;
}

.page {
  min-height: 100vh;
  padding: 24px 12px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.box {
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

.header {
  text-align: center;
  margin-bottom: 24px;
}

.header h1,
.header h2 {
  margin: 0;
  color: #0a4a8a;
}

.header p {
  margin: 8px 0 0;
  color: #6b7280;
}

.section {
  border: 1px solid #e5e7eb;
  background: #fafafa;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.section h3 {
  margin: 0 0 14px;
  color: #0a4a8a;
  font-size: 17px;
}

label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  background: white;
}

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

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

.inline-row input {
  flex: 1;
}

button {
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  background: #0a4a8a;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  opacity: 0.92;
}

button.secondary {
  background: #64748b;
}

button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

.status-box {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
}

.status-box.ok {
  background: #e8f7ef;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.status-box.warn {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.appointment-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.appt-card {
  margin: 0;
  padding: 14px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  background: white;
  cursor: pointer;
  transition: 0.15s;
}

.appt-card input {
  display: none;
}

.appt-card strong {
  display: block;
  color: #111827;
}

.appt-card small {
  color: #64748b;
}

.appt-card.selected {
  border-color: #0a4a8a;
  background: #eef6ff;
}

.nearest-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.slots,
#sameDaySlots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#sameDaySlots h4 {
  width: 100%;
  margin: 8px 0 4px;
  color: #475569;
}

.slot {
  background: white;
  color: #0a4a8a;
  border: 1px solid #0a4a8a;
  padding: 10px 14px;
}

.slot:hover,
.slot.selected {
  background: #0a4a8a;
  color: white;
}

.slot.suggested {
  border-width: 2px;
}

.book-btn {
  width: 100%;
  font-size: 17px;
  padding: 15px;
  margin-top: 8px;
}

.message {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #f1f5f9;
}

.message.ok {
  background: #e8f7ef;
  color: #166534;
}

.message.error {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 700px) {
  .box {
    padding: 18px;
  }

  .appointment-types {
    grid-template-columns: 1fr;
  }

  .inline-row,
  .nearest-card {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
.status-line{
    display:flex;
    align-items:center;
    gap:8px;
}

.status-line svg{
    flex-shrink:0;
    color:#d97706;
}
