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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, rgb(1, 108, 110) 0%, rgb(0, 88, 90) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin: 0;
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 500px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  height: 50px;
  width: auto;
  max-width: 200px;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgb(1, 108, 110), rgb(0, 88, 90));
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header h1 {
  color: #333;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.form-header p {
  color: #666;
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 16px;
  /* Prevents zoom on iOS */
  transition: all 0.3s ease;
  background: #fafbfc;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgb(1, 108, 110);
  background: white;
  box-shadow: 0 0 0 3px rgba(1, 108, 110, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.submit-btn {
  background: linear-gradient(135deg, rgb(1, 108, 110) 0%, rgb(0, 88, 90) 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  box-shadow: rgba(0, 0, 0, 0.02) 0px 2px 0px 0px;
  width: 100%;
  min-height: 48px;
  /* Better touch target */
  -webkit-tap-highlight-color: transparent;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(1, 108, 110, 0.3);
}

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

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

.success-message,
.error-message {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  margin-top: 20px;
}

.success-message {
  background: #f0f9ff;
  border: 2px solid #0ea5e9;
  color: #0c4a6e;
}

.error-message {
  background: #fef2f2;
  border: 2px solid #ef4444;
  color: #7f1d1d;
}

.success-icon,
.error-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.success-icon {
  color: #10b981;
}

.error-icon {
  color: #ef4444;
}

.success-message h3,
.error-message h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.success-message p,
.error-message p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 600px) {
  body {
    padding: 12px;
    align-items: flex-start;
    padding-top: 20px;
  }

  .container {
    min-height: auto;
    padding: 0;
  }

  .form-container {
    padding: 24px 20px;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .logo {
    height: 36px;
    max-width: 140px;
  }

  .form-header h1 {
    font-size: 1.75rem;
    margin-bottom: 6px;
  }

  .form-header p {
    font-size: 0.95rem;
  }

  .contact-form {
    gap: 16px;
  }

  .form-group {
    gap: 6px;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 16px;
  }

  .submit-btn {
    padding: 14px 20px;
    font-size: 16px;
    min-height: 44px;
  }

  .success-message,
  .error-message {
    padding: 24px 20px;
    margin-top: 16px;
  }

  .success-icon,
  .error-icon {
    font-size: 2.5rem;
  }

  .success-message h3,
  .error-message h3 {
    font-size: 1.3rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  body {
    padding: 8px;
    padding-top: 16px;
  }

  .form-container {
    padding: 20px 16px;
  }

  .form-header h1 {
    font-size: 1.5rem;
  }

  .form-header p {
    font-size: 0.9rem;
  }

  .logo {
    height: 32px;
    max-width: 120px;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 600px) and (orientation: landscape) {
  body {
    padding: 8px;
    align-items: center;
  }

  .form-container {
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* Animation for form appearance */
.form-container {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus states for accessibility */
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid rgb(1, 108, 110);
  outline-offset: 2px;
}

.submit-btn:focus-visible {
  outline: 2px solid rgb(1, 108, 110);
  outline-offset: 2px;
}