/* ========================================
   FORM STYLES
======================================== */

/* Newsletter Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-input {
  padding: 12px 15px;
  background-color: #1a1a1a;
  border: 1px solid #38383B;
  border-radius: 4px;
  color: #FFFFFF;
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  transition: border-color 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: #A8A6A1;
}

.newsletter-input::placeholder {
  color: #A8A6A1;
}

.newsletter-btn {
  padding: 12px 20px;
  background-color: #A8A6A1;
  color: #000000;
  border: none;
  border-radius: 4px;
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background-color: #DFE0E1;
  transform: translateY(-1px);
}

/* General Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
  padding: 12px 15px;
  background-color: #1a1a1a;
  border: 1px solid #38383B;
  border-radius: 4px;
  color: #FFFFFF;
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  transition: border-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #A8A6A1;
  box-shadow: 0 0 5px rgba(168, 166, 161, 0.3);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
  color: #A8A6A1;
}

/* Form Labels */
label {
  color: #DFE0E1;
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  margin-bottom: 5px;
  display: block;
}

/* Form Buttons */
button[type="submit"],
input[type="submit"],
.form-btn {
  padding: 12px 20px;
  background-color: #A8A6A1;
  color: #000000;
  border: none;
  border-radius: 4px;
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

button[type="submit"]:hover,
input[type="submit"]:hover,
.form-btn:hover {
  background-color: #DFE0E1;
  transform: translateY(-1px);
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

/* Error and Success States */
.form-error {
  font-family: var(--font-family-body);
  color: #ff6b6b;
  font-size: var(--font-size-xs);
  margin-top: 5px;
}

.form-success {
  font-family: var(--font-family-body);
  color: #4CAF50;
  font-size: var(--font-size-xs);
  margin-top: 5px;
}

input.error,
textarea.error,
select.error {
  border-color: #ff6b6b;
}

input.success,
textarea.success,
select.success {
  border-color: #4CAF50;
}

/* Checkbox and Radio Styles */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #38383B;
  background-color: #1a1a1a;
  margin-right: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: #A8A6A1;
  border-color: #A8A6A1;
}

input[type="checkbox"] {
  border-radius: 3px;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:checked::after {
  content: '✓';
  color: #000000;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

input[type="radio"]:checked::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #000000;
  display: block;
  margin: 3px auto;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  color: #DFE0E1;
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  cursor: pointer;
  margin-bottom: 10px;
}

/* Select Dropdown */
select {
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

/* Textarea */
textarea {
  min-height: 100px;
  resize: vertical;
  font-family: var(--font-family-body);
}

/* File Input */
input[type="file"] {
  padding: 8px;
  background-color: #1a1a1a;
  border: 1px solid #38383B;
  border-radius: 4px;
  color: #DFE0E1;
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
  background-color: #A8A6A1;
  color: #000000;
  border: none;
  padding: 8px 12px;
  border-radius: 3px;
  font-family: var(--font-family-body);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  margin-right: 10px;
}

input[type="file"]::-webkit-file-upload-button:hover {
  background-color: #DFE0E1;
}

/* ========================================
   CONTACT FORM STYLES
======================================== */

/* Contact Form */
.contact-form {
  background-color: #38383B;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  color: #DFE0E1;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: #000000;
  border: 2px solid #DFE0E1;
  color: #FFFFFF;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #A8A6A1;
  box-shadow: 0 0 0 3px rgba(168, 166, 161, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #A8A6A1;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Submit Button */
.submit-btn {
  background-color: #A8A6A1;
  color: #000000;
  border: none;
  padding: 15px 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  background-color: #DFE0E1;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(168, 166, 161, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  background-color: #38383B;
  color: #A8A6A1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Required Field Indicator */
.required {
  color: #A8A6A1;
  margin-left: 3px;
}

/* Form Validation */
.form-input.error,
.form-textarea.error {
  border-color: #ff6b6b;
}

.error-message {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.error-message.show {
  display: block;
}

/* Success Message */
.success-message {
  background-color: #4CAF50;
  color: #FFFFFF;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: none;
}

.success-message.show {
  display: block;
}

/* Loading State */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading .submit-btn::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid #000000;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Focus Styles for Accessibility */
.form-input:focus-visible,
.form-textarea:focus-visible,
.submit-btn:focus-visible {
  outline: 2px solid #A8A6A1;
  outline-offset: 2px;
}

/* ========================================
   CONTACT FORM RESPONSIVE STYLES
======================================== */

/* Responsive Design */
@media (max-width: 768px) {
  .contact-form {
    padding: 25px;
  }

  .form-input,
  .form-textarea {
    padding: 10px 12px;
  }

  .submit-btn {
    width: 100%;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 20px;
  }
}

/* Print Styles for Contact Form */
@media print {
  .contact-form {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
  }

  .submit-btn {
    display: none;
  }
}

/* ========================================
   ARTIFACT CORRECTIONS FORM STYLES
======================================== */

/* Report Corrections Form */
.corrections-section {
  background-color: #38383B;
  padding: 40px;
  border-radius: 8px;
  margin: 60px 0;
}

.corrections-title {
  color: #A8A6A1;
  font-size: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.corrections-description {
  color: #DFE0E1;
  margin-bottom: 30px;
  line-height: 1.6;
}

.form-date, input[type="date"] {
  background-color: #38383B;
  border: 2px solid #38383B;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 16px;
  color: #FFFFFF;
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}
  
.form-date:focus,
input[type="date"]:focus {
  border-color: #A8A6A1;
  box-shadow: 0 0 0 3px rgba(168, 166, 161, 0.2);
}
  
.form-date:hover,
input[type="date"]:hover {
    border-color: #A8A6A1;
}
  
.form-date::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
  background-color: #A8A6A1;
  border-radius: 4px;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  filter: invert(1);
}