/* Import base styles from style.css for consistency */
@import url('style.css');

:root {
  --primary: #002169;
  --primary-light: #F3F6FF;
  --secondary: #334D87;
  --accent: #FFCD00;
  --gray: #667AA5;
  --border: #e5e7eb;
  --shadow: 0 4px 12px rgba(0, 33, 105, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 33, 105, 0.12);
  --transition: all 0.3s ease;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
}

/* Page Layout */
body {
  background: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Logo styles for header */
.brand {
  display: flex;
  align-items: center;
}

.brand .logo {
  height: 40px;
  width: auto;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.form-wrapper {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-top: 20px;
}

/* Title Section */
.form-title-section {
  text-align: center;
  padding: 40px 40px 30px;
  background: white;
}

.form-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 10px 0;
}

.form-subtitle {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  margin: 0;
  max-width: 500px;
  margin: 0 auto;
}

/* Form Styles */
.appointment-form {
  padding: 30px 40px 40px;
  border-top: 1px solid #eee;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
  display: block;
}

.form-field input {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
  background: white;
}

.form-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 33, 105, 0.1);
}

.form-field input::placeholder {
  color: #999;
}

.required {
  color: #dc2626;
}

/* Form Sections */
.form-section {
  margin-bottom: 30px;
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  display: block;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
}

.checkbox-item input[type="checkbox"] {
  margin: 2px 0 0 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-text {
  color: #333;
  cursor: pointer;
  font-size: 13px;
}

/* Date/Time Section */
.datetime-row {
  margin-top: 10px;
}

.datetime-row input[type="datetime-local"] {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  width: 200px;
  max-width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.datetime-row input[type="datetime-local"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 33, 105, 0.1);
}

/* Submit Button */
.form-actions {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.btn-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background: var(--secondary);
}

.btn-submit:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 33, 105, 0.3);
}

/* Suggestions dropdown */
.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 9999;
  max-height: 200px;
  overflow: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.suggestions-list[hidden] {
  display: none;
}

.suggestion-item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover,
.suggestion-item.is-active {
  background: #f8f9fa;
}

.suggestion-item:last-child {
  border-bottom: none;
}

/* Position form fields for autocomplete */
.form-field {
  position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .appointment-form {
    padding: 20px 25px 30px;
  }
  
  .form-title-section {
    padding: 0 25px 20px;
  }
  
  .form-title {
    font-size: 20px;
  }
  
  .form-subtitle {
    font-size: 13px;
  }
  
  .datetime-row input[type="datetime-local"] {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .appointment-form {
    padding: 15px 20px 25px;
  }
  
  .form-title-section {
    padding: 20px 20px 15px;
  }
}
