:root {
  --vibrant-orange: #FF6B35;
  --dark-orange: #E55627;
  --light-orange: #FF8C42;
  --gold-orange: #FFA042;
  --pure-black: #000000;
  --dark-gray: #1A1A1A;
  --medium-gray: #333333;
  --light-gray: #E5E5E5;
  --pure-white: #FFFFFF;
  --off-white: #F5F5F5;
  --gradient-orange: linear-gradient(135deg, #FF6B35 0%, #FF8C42 50%, #FFA042 100%);
}

body {
  font-family: 'Raleway', sans-serif;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 140, 66, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, var(--pure-white) 0%, var(--off-white) 100%);
  color: var(--pure-black);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 30px auto;
  padding: 40px;
  background: var(--pure-white);
  border-radius: 16px;
  box-shadow: 
    0 8px 30px rgba(255, 107, 53, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.15);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative accents */
.container::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: var(--gradient-orange);
  border-bottom-left-radius: 100%;
  opacity: 0.08;
}

.container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: var(--gradient-orange);
  border-top-right-radius: 100%;
  opacity: 0.08;
}

h2 {
  color: var(--vibrant-orange);
  text-align: center;
  font-weight: 700;
  font-size: 2.3em;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding-bottom: 12px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-orange);
  border-radius: 2px;
}

h4 {
  color: var(--dark-orange);
  border-bottom: 1px solid rgba(255, 107, 53, 0.3);
  padding-bottom: 8px;
  margin: 25px 0 18px 0;
  font-weight: 600;
  font-size: 1.2em;
  position: relative;
  padding-left: 12px;
}

h4::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--vibrant-orange);
  font-size: 0.9em;
}

/* Refined Form Elements */
form {
  background: linear-gradient(135deg, var(--off-white) 0%, var(--pure-white) 100%);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 53, 0.2);
  box-shadow: 
    inset 0 1px 2px rgba(255, 107, 53, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vibrant-orange);
  font-size: 16px;
  z-index: 2;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding-left: 40px !important;
}

input[type="text"],
input[type="email"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  margin: 6px 0 18px 0;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  background: var(--pure-white);
  color: var(--pure-black);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--vibrant-orange);
  box-shadow: 
    0 0 0 3px rgba(255, 107, 53, 0.15),
    0 4px 12px rgba(255, 107, 53, 0.1);
  outline: none;
  transform: translateY(-1px);
  background: linear-gradient(135deg, #FFF8F6 0%, var(--pure-white) 100%);
}

/* Elegant Buttons */
button[type="submit"] {
  background: var(--gradient-orange);
  color: var(--pure-white);
  padding: 16px 40px;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin: 35px auto 0;
  width: 100%;
  max-width: 300px;
  box-shadow: 
    0 4px 15px rgba(255, 107, 53, 0.3),
    0 1px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--dark-orange) 0%, var(--vibrant-orange) 50%, var(--light-orange) 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(255, 107, 53, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.15);
}

button[type="submit"]:hover::before {
  left: 100%;
}

button[type="submit"]:active {
  transform: translateY(0);
}

/* Refined Map Styles */
.map-container {
  margin: 25px 0;
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(255, 107, 53, 0.1);
}

.map-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-orange);
  z-index: 10;
}

#locationMap {
  height: 400px;
  width: 100%;
  background: var(--dark-gray);
}

.map-instructions {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.95), rgba(255, 140, 66, 0.95));
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  color: var(--pure-white);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-instructions i {
  font-size: 16px;
}

.coordinates-display {
  background: linear-gradient(135deg, var(--dark-gray) 0%, #2A2A2A 100%);
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 107, 53, 0.3);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--pure-white);
  font-weight: 500;
}

/* Refined Alert Styles */
.alert {
  padding: 16px 20px;
  border-radius: 10px;
  margin: 20px 0;
  border: 1px solid;
  font-weight: 500;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

.alert::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: inherit;
  border-radius: 4px 0 0 4px;
}

.alert-danger {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFEBEB 100%);
  border-color: rgba(255, 107, 53, 0.4);
  color: #CC0000;
}

.alert-success {
  background: linear-gradient(135deg, #F5FFF5 0%, #EBFFEB 100%);
  border-color: rgba(0, 204, 0, 0.4);
  color: #006600;
}

.alert-info {
  background: linear-gradient(135deg, #F5F9FF 0%, #EBF3FF 100%);
  border-color: rgba(53, 138, 255, 0.4);
  color: #0044CC;
}

.alert-info a {
  color: var(--vibrant-orange);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.alert-info a:hover {
  color: var(--dark-orange);
  text-decoration: underline;
}

/* Subtle Location Section */
.location-section {
  background: linear-gradient(135deg, var(--pure-white) 0%, #FFFCFB 100%);
  padding: 22px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 107, 53, 0.3);
  margin: 22px 0;
  position: relative;
}

.location-section::before {
  content: '📍';
  position: absolute;
  top: -12px;
  left: 15px;
  background: var(--pure-white);
  padding: 0 8px;
  font-size: 1.1em;
  color: var(--vibrant-orange);
}

/* Elegant Select Dropdown */
select {
  background: var(--pure-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23FF6B35' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 40px !important;
}

/* Refined Label Styling */
label {
  color: var(--dark-gray);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  font-size: 15px;
  position: relative;
  padding-left: 6px;
}

label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 14px;
  background: var(--vibrant-orange);
  border-radius: 1px;
}

/* File Input Styling */
input[type="file"] {
  padding: 12px !important;
  background: linear-gradient(135deg, #FFF8F6 0%, var(--pure-white) 100%) !important;
  border: 1px dashed var(--light-gray) !important;
  transition: all 0.3s ease;
}

input[type="file"]:focus {
  border-color: var(--vibrant-orange) !important;
  background: linear-gradient(135deg, #FFF0EC 0%, #FFF8F6 100%) !important;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .container {
    margin: 15px;
    padding: 25px 20px;
    border-radius: 12px;
  }
  
  h2 {
    font-size: 1.8em;
    letter-spacing: 1px;
  }
  
  form {
    padding: 20px 15px;
  }
  
  .map-container {
    margin: 20px 0;
    border-radius: 10px;
  }
  
  #locationMap {
    height: 350px;
  }
  
  button[type="submit"] {
    padding: 14px 30px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 20px 15px;
    margin: 10px;
  }
  
  h2 {
    font-size: 1.6em;
  }
  
  form {
    padding: 15px 12px;
  }
  
  input[type="text"],
  input[type="email"],
  select,
  textarea {
    padding: 12px 14px !important;
    font-size: 14px;
  }
}

/* Subtle Animations */
@keyframes gentleGlow {
  0% { 
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  }
  50% { 
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
  }
  100% { 
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  }
}

input:focus, select:focus, textarea:focus {
  animation: gentleGlow 2s infinite;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

form {
  animation: slideIn 0.5s ease-out;
}

/* Refined Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--off-white);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 53, 0.6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 107, 53, 0.8);
}

/* Loading state for submit button */
button[type="submit"].loading {
  pointer-events: none;
  opacity: 0.7;
}

button[type="submit"].loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid transparent;
  border-top: 2px solid var(--pure-white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success state animation */
.success-checkmark {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  animation: gentleScale 0.4s ease-in-out;
}

@keyframes gentleScale {
  0% { transform: scale(0); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Print styles */
@media print {
  .container {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  button[type="submit"] {
    background: #000 !important;
    color: #fff !important;
    box-shadow: none !important;
  }
}