:root {
  --primary: #173560;
  --dark: #7c6244;
  --navy: #173560;
  --background: #f6f5f2;
  --card-bg: #ffffff;
  --text-color: #1f1f1f;
  --input-bg: #f6f5f2;
  --input-border: #d1c7b7;
  --placeholder: #aaaaaa;
  --primary-light-red: #D9483F;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  min-height: 100vh;
  color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  letter-spacing: 0.03em;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--dark);
  color: #1f1f1f;
  text-transform: uppercase;
}

.btn-primary:hover {
  background-color: var(--dark);
}

.emergency-btn {
  background-color: var(--primary-light-red);
  backdrop-filter: blur(10px);
  background: rgba(217, 72, 63, 0.6);
  box-shadow: 0 15px 25px rgba(0,0,0,0.3), inset 0 -2px 0 rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  font-size: 4rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.emergency-btn:hover {
  background-color: rgba(217, 72, 63, 0.8);
  backdrop-filter: blur(15px);
  transform: translateY(-2px);
}

#submit-button {
  background: linear-gradient(to bottom, #dc2626, #b91c1c);
  box-shadow: 0 4px 14px rgba(220,38,38,0.5);
}

#submit-button:hover {
  background: linear-gradient(to bottom, #b91c1c, #dc2626);
  box-shadow: 0 6px 20px rgba(220,38,38,0.7);
}

.gradient-card {
  background: linear-gradient(145deg, #f6f5f2, #ffffff);
  box-shadow: 0 10px 25px -5px rgba(220, 200, 180, 0.3), 0 10px 10px -5px rgba(220, 200, 180, 0.2);
}

input, select, textarea {
  background-color: var(--input-bg) !important;
  color: var(--text-color) !important;
  border-color: var(--input-border) !important;
}

input::placeholder, textarea::placeholder {
  color: var(--placeholder) !important;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25) !important;
}

.form-progress {
  height: 5px;
  transition: width 0.4s ease;
}

.form-field {
  transition: all 0.3s ease;
  opacity: 1;
  max-height: 500px;
  overflow: hidden;
}

.form-field.hidden {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
}

.custom-radio {
  display: inline-block;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}

.custom-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: var(--input-bg);
  border: 2px solid var(--primary);
  border-radius: 50%;
}

.custom-radio input:checked ~ .checkmark {
  background-color: var(--input-bg);
}

.custom-radio .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-radio input:checked ~ .checkmark:after {
  display: block;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.loading-spinner {
  animation: spin 1s linear infinite;
  border-top-color: var(--primary) !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.modal-enter {
  animation: modalEnter 0.3s ease-out;
}

@keyframes modalEnter {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

#confirmation-modal .bg-white {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

@media (max-width: 640px) {
  .emergency-btn {
    width: 85% !important;
    height: 120px !important;
    font-size: 2rem !important;
  }
}

.stroke-pages-header {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f6f5f2 100%);
  padding: 2.5rem 0 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(183, 62, 62, 0.1);
}

.stroke-pages-header img {
  display: block;
  max-width: 950px;
  width: 92%;
  height: auto;
  margin: 0 auto;
  filter: contrast(1.02) saturate(1.05);
  transition: transform 0.3s ease;
}

.stroke-pages-header img:hover {
  transform: scale(1.01);
}

.demo-disclaimer {
  background: linear-gradient(180deg, #f6f5f2 0%, #f0ede8 100%);
  color: #666666;
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 1.25rem 0;
  border-bottom: 2px solid #d4cfc4;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}


#campus-buttons button {
  background: linear-gradient(to bottom, #e2e8f0, #cbd5e1);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.3), inset 0 -1px 2px rgba(0,0,0,0.05);
  color: #1f2937;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease-in-out;
  border: 2px solid transparent;
}

#campus-buttons button:hover {
  background: linear-gradient(to bottom, #cbd5e1, #94a3b8);
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.4), 0 2px 6px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

#campus-buttons button.campus-button-active {
  background: linear-gradient(to bottom, #dc2626, #b91c1c) !important;
  color: #ffffff !important;
  border-color: #991b1b !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.5), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  transform: translateY(-2px);
}

#campus-buttons button.campus-button-active:hover {
  background: linear-gradient(to bottom, #b91c1c, #dc2626) !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.7), inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

#campus-buttons button.campus-button-active::before {
  content: '✓ ';
  font-weight: bold;
  margin-right: 0.25rem;
}

.campus-button-active {
  background-color: #dc2626;
  color: #fff;
}

.step-label {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  padding-bottom: 0.5rem;
}

.step-label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.25rem;
  background-color: #e5e7eb;
  border-radius: 0.25rem;
}

.step-label.active {
  color: #10b981;
  font-weight: 600;
}

.step-label.active::after {
  background-color: #10b981;
}

.step-label.completed {
  color: #10b981;
}

.step-label.completed::after {
  background-color: #10b981;
}

.field-valid {
  border-color: #10b981 !important;
}

.field-invalid {
  border-color: #ef4444 !important;
}

.validation-message {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.validation-error {
  color: #ef4444;
  display: block;
}

.tab-button {
  transition: color 0.2s, border-color 0.2s;
}

.border-primary {
  border-color: var(--primary) !important;
}

.hidden {
  display: none !important;
}

.min-h-screen {
  min-height: 100vh;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.animate-pulse {
  animation: pulse 1.5s infinite;
}

.transition-colors {
  transition: background-color 0.2s, color 0.2s;
}
