/* --- CONTACT FORM: MODERN POLISH --- */

body {
  background: linear-gradient(to bottom right, #f0f9ff, #e0f7fa);
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Section Wrapper */
main {
  padding: 60px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section Heading */
h2 {
  text-align: center;
  font-size: 2.3rem;
  font-weight: 700;
  color: #0077cc;
  margin-bottom: 40px;
}

/* Form Container */
form {
  width: 100%;
  max-width: 750px;
  padding: 40px 35px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease;
}

/* Labels */
label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: #444;
  font-size: 0.95rem;
}

/* Inputs and Selects */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="datetime-local"],
textarea,
select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #f9fbfc;
  transition: all 0.3s ease-in-out;
  margin-bottom: 20px;
}

input:focus,
textarea:focus,
select:focus {
  background-color: #ffffff;
  border-color: #00bcd4;
  box-shadow: 0 0 8px rgba(0, 188, 212, 0.25);
  outline: none;
}

/* Textarea Style */
textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit Button */
input[type="submit"] {
  background: linear-gradient(to right, #00c853, #00e676);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 18px rgba(0, 200, 83, 0.3);
  cursor: pointer;
  margin-top: 10px;
}

input[type="submit"]:hover {
  background: #00b248;
  transform: translateY(-2px);
}

input[type="submit"]:active {
  background: #009624;
  transform: scale(0.97);
}

/* File Input */
input[type="file"] {
  background-color: #f4f7f9;
  border: 1px dashed #b0bec5;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 20px;
}

input[type="file"]::file-selector-button {
  background: #00acc1;
  color: #fff;
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  margin-right: 12px;
  transition: background 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
  background: #0097a7;
}

/* Flash messages */
.alert {
  font-size: 0.95rem;
  padding: 14px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-success {
  background-color: #e6f9ed;
  color: #2e7d32;
}

.alert-error {
  background-color: #fdecea;
  color: #c62828;
}

/* Fade Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Layout */
@media (max-width: 768px) {
  form {
    padding: 30px 20px;
  }

  input[type="submit"] {
    width: 100%;
  }
}
