/* File: styles/check_in.css */

:root {
  --brand-green: #008878;
  --brand-blue:  #005EB8;
  --gray-light:  #F7FAFC;
  --gray-lighter:#EDF2F7;
  --gray:        #A0AEC0;
  --text:        #2D3748;
  --white:       #FFFFFF;
  --radius:      12px;
  --shadow:      rgba(0, 0, 0, 0.05);
  --max-width:   900px;
}

/* Reset & base */
* {
  margin: 0; padding: 0; box-sizing: border-box;
}
html {
  background: var(--gray-light);
  font-family: system-ui, sans-serif;
  color: var(--text);
}
a { text-decoration: none; color: inherit; }

/* Container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 0;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-lighter);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nhs-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand-blue);
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.site-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover,
.site-nav .active {
  background: var(--gray-lighter);
  color: var(--brand-green);
}
.btn-portal {
  background: var(--brand-green);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: background 0.2s;
}
.btn-portal:hover {
  background: var(--brand-blue);
}

/* Intro */
.checkin-intro {
  text-align: center;
  margin: 2rem 0 1rem;
}
.checkin-intro h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  color: var(--brand-green);
}
.checkin-intro p {
  color: var(--gray);
  font-size: 1rem;
}

/* Form Section */
.checkin-form-section {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px var(--shadow);
  margin-bottom: 2rem;
}
.checkin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: center;
}
.form-group {
  display: flex;
  flex-direction: column;
  width: 200px;
}
.form-group label {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: var(--gray);
}
.form-group input {
  padding: 0.5rem;
  border: 1px solid var(--gray-lighter);
  border-radius: var(--radius);
  font-size: 0.875rem;
}
.btn-primary {
  background: var(--brand-green);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: var(--brand-blue);
}

/* Appointment Card */
.appointment-card-section .card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px var(--shadow);
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto 2rem;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-lighter);
}
.card-header h3 {
  font-size: 1rem;
  color: var(--text);
}
.status-pill {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
}
.status-pill.upcoming {
  background: #E6FFFA;
  color: var(--brand-green);
}

.card-body {
  padding: 1rem;
}
.card-body .type {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.card-body .doctor,
.card-body .location {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--gray-lighter);
}
.btn-outline {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  border: 1px solid var(--brand-green);
  border-radius: var(--radius);
  color: var(--brand-green);
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover {
  background: var(--brand-green);
  color: var(--white);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem 0;
  color: var(--gray);
  font-size: 0.875rem;
  border-top: 1px solid var(--gray-lighter);
}

/* Responsive */
@media (max-width: 600px) {
  .checkin-form {
    flex-direction: column;
    align-items: stretch;
  }
  .form-group {
    width: 100%;
  }
  .appointment-card-section .card {
    max-width: 100%;
  }
  .site-nav ul {
    flex-wrap: wrap;
    gap: 1rem;
  }
}
