/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.4;
  color: #2c3e50;
  background-color: #f8fafe;
  height: 100vh;
  padding: 15px;
  overflow: hidden;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(135, 206, 235, 0.15);
  overflow: hidden;
  height: calc(100vh - 30px);
  display: flex;
  flex-direction: column;
}

/* Header */
h1 {
  background: #87ceeb;
  color: #ffffff;
  padding: 20px 30px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* Form Styles */
.feedback-form {
  padding: 25px 30px;
  overflow-y: auto;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px 25px;
  align-content: start;
}

.form-group {
  margin-bottom: 0;
}

/* Full width form groups */
.description-box,
.form-group:has(#images),
.form-group:has(#comments),
#commentsGroup,
.submit-btn,
.message {
  grid-column: 1 / -1;
}

/* Labels */
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e8f4f8;
  border-radius: 8px;
  font-size: 14px;
  background-color: #fcfdfe;
  color: #2c3e50;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: #87ceeb;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
select:hover,
textarea:hover {
  border-color: #b8dff0;
}

/* Select Dropdowns */
select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg fill='%2387ceeb' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  appearance: none;
}

/* Textarea Specific */
textarea {
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}

.description-box textarea {
  min-height: 100px;
}

/* File Input */
input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 2px dashed #b8dff0;
  border-radius: 10px;
  background-color: #f8fefe;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"]:hover {
  border-color: #87ceeb;
  background-color: #f0f9ff;
}

input[type="file"]:focus {
  outline: none;
  border-color: #87ceeb;
  box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

/* Small Text */
small {
  color: #7b8794;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

/* Submit Button */
.submit-btn {
  background: #4a90e2;
  color: #ffffff;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  background: #357abd;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Message Styles */
.message {
  padding: 12px 18px;
  border-radius: 8px;
  margin-top: 15px;
  font-weight: 500;
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  min-width: 300px;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.message.loading {
  background-color: #e8f4f8;
  color: #4a90e2;
  border: 1px solid #b8dff0;
}

.message.success {
  background-color: #e8f5e8;
  color: #27ae60;
  border: 1px solid #a8e6a8;
}

.message.error {
  background-color: #fdf2f2;
  color: #e74c3c;
  border: 1px solid #f5b2b2;
}

/* Required Field Indicator */
/* label::after {
  content: " *";
  color: #e74c3c;
  font-weight: bold;
} */

/* Form Group Spacing */
.form-group:last-of-type {
  margin-bottom: 0;
}

/* Hidden Elements */
[style*="display: none"] {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .container {
    border-radius: 12px;
    height: calc(100vh - 20px);
  }
  
  h1 {
    padding: 15px 20px;
    font-size: 20px;
  }
  
  .feedback-form {
    padding: 20px 25px;
    grid-template-columns: 1fr;
    grid-gap: 15px;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .submit-btn {
    padding: 12px 25px;
    font-size: 14px;
    margin-top: 10px;
  }
  
  textarea {
    min-height: 60px;
  }
  
  .description-box textarea {
    min-height: 80px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 18px;
    padding: 12px 15px;
  }
  
  .feedback-form {
    padding: 15px 20px;
    grid-gap: 12px;
  }
  
  .message {
    min-width: 250px;
    padding: 10px 15px;
  }
}

/* Focus States for Accessibility */
input:focus,
select:focus,
textarea:focus,
.submit-btn:focus {
  outline: 2px solid #87ceeb;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  body {
    background: white;
  }
  
  .container {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .submit-btn,
  .message {
    display: none;
  }
}

/* Custom Scrollbar */
textarea::-webkit-scrollbar {
  width: 8px;
}

textarea::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
  background: #b8dff0;
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: #87ceeb;
}

/* Enhanced Visual Hierarchy */
.form-group:nth-child(odd) {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  margin-left: 0;
  margin-right: 0;
}

/* Professional Card Style */
.container {
  border: 1px solid rgba(135, 206, 235, 0.2);
}

/* Input States */
input[required]:invalid {
  border-color: #e8f4f8;
}

input[required]:valid {
  border-color: #b8dff0;
}

/* Placeholder Styles */
::placeholder {
  color: #a0aec0;
  opacity: 1;
}

/* Selection Styles */
::selection {
  background-color: rgba(135, 206, 235, 0.3);
  color: #2c3e50;
}