:root 
{
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --background: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --error: #ef4444;
}

/* Hide the file-input once files are selected */
.hidden-input 
{
  display: none !important;
}

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

body 
{
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.5;
  padding: 2rem;
}

/* Location Slider */
.location-slider-container 
{
  text-align: center;
  padding: 20px 0;
  background-color: #f8f9fa;
  position: relative;
}

.location-slider 
{
  display: inline-flex;
  background-color: #e9ecef;
  border-radius: 25px;
  padding: 4px;
  position: relative;
}

.location-option 
{
  padding: 10px 30px;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s ease;
  z-index: 1;
  font-weight: 500;
  font-size: 16px;
  color: #6c757d;
}

.location-option.active 
{
  background-color: #007bff;
  color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.location-help-btn 
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #17a2b8;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  margin-left: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  vertical-align: middle;
}

.location-help-btn:hover 
{
  background-color: #138496;
  transform: scale(1.1);
}

.location-help-btn svg 
{
  display: block;
}

.container 
{
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

h2 
{
  margin-bottom: 1.5rem;
  font-weight: 600;
}

form 
{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

label 
{
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

select,
input[type="text"] 
{
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}
select:focus,
input[type="text"]:focus 
{
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

select:disabled,
select.locked 
{
  background-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.7;
}

fieldset 
{
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--background);
}

legend 
{
  font-weight: 600;
  padding: 0 0.5rem;
}

.add-file-btn 
{
  margin-top: 1rem;
  background: var(--surface);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.add-file-btn:hover 
{
  background: var(--primary-color);
  color: white;
}

.file-input-wrapper 
{
  position: relative;
  width: 100%;
}

.file-input-wrapper input[type="file"] 
{
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-btn 
{
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.upload-btn:hover 
{
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.file-display 
{
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.file-item 
{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.875rem;
}

.file-item .remove-btn 
{
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--error);
  cursor: pointer;
}
.file-item .remove-btn:hover 
{
  opacity: 0.8;
}

button[type="submit"]
 {
  align-self: flex-start;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

button[type="submit"]:hover 
{
  background: var(--primary-hover);
}

.error-messages 
{
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

/* Default error messages */
.error-messages 
{
  background: #fee2e2;
  border: 1px solid var(--error);
  color: var(--error);
}

/* Info messages */
.error-messages .flash-info 
{
  background: #dbeafe;
  border: 1px solid #3b82f6;
  color: #1e40af;
  display: block;
  padding: 0.5rem;
  margin: 0.25rem 0;
  border-radius: 4px;
}

/* Error messages */
.error-messages .flash-error
{
  background: #fee2e2;
  border: 1px solid var(--error);
  color: var(--error);
  display: block;
  padding: 0.5rem;
  margin: 0.25rem 0;
  border-radius: 4px;
}

/* Success messages */
.error-messages .flash-success 
{
  background: #dcfce7;
  border: 1px solid #16a34a;
  color: #15803d;
  display: block;
  padding: 0.5rem;
  margin: 0.25rem 0;
  border-radius: 4px;
}

.error-messages ul 
{
  list-style: none;
  padding-left: 0;
}

@media (max-width: 640px) 
{
  body 
  {
    padding: 1rem;
  }
  .container
   {
    padding: 1.5rem;
  }
}

/* Copyright footer */
.copyright-footer 
{
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.copyright-footer p 
{
  color: var(--text-light);
  font-size: 0.875rem;
  margin: 0;
}