/* Reset some defaults */
body, html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  background:
    /* Top-left logo with proper spacing */
    url('IShub-logo.jpg') no-repeat top 40px left 20px/120px auto,
    /* Top-right logo with proper spacing */
    url('IShub-logo.jpg') no-repeat top 40px right 20px/120px auto,
    /* Gradient overlay with reduced opacity */
    linear-gradient(135deg, rgba(106, 130, 251, 0.75) 0%, rgba(252, 92, 125, 0.75) 100%),
    /* Background image - full cover */
    url('background.jpg') no-repeat center center/cover;
  color: #222;
}

/* Add padding to prevent content from being hidden under logos */
body {
  padding-top: 160px; /* Adjusted based on logo height */
}

h1 {
  text-align: center;
  margin-top: 0; /* Removed previous margin */
  padding-top: 20px; /* Added instead */
  font-size: 2.5rem;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: relative; /* Ensures it stays above background */
  z-index: 1;
}

p {
  text-align: center;
  color: #f3f3f3;
  font-size: 1.2rem;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

form {
  background: rgba(255, 255, 255, 0.95);
  max-width: 480px; /* Slightly reduced to prevent logo overlap */
  margin: 20px auto 0 auto; /* Adjusted top margin */
  padding: 32px 28px 24px 28px;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}

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

label {
  font-weight: 600;
  color: #333;
}

label.required::after {
  content: " *";
  color: #fc5c7d;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="file"],
input[type="tel"],
select,
textarea {
  padding: 10px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  font-size: 1rem;
  transition: border 0.2s;
  background: #f9f9f9;
}

input:focus,
select:focus,
textarea:focus {
  border: 1.5px solid #6a82fb;
  outline: none;
  background: #fff;
}

input[type="file"] {
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button[type="submit"] {
  margin-top: 10px;
  padding: 12px 0;
  background: linear-gradient(90deg, #6a82fb 0%, #fc5c7d 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10);
  transition: background 0.2s, transform 0.1s;
}

button[type="submit"]:hover {
  background: linear-gradient(90deg, #fc5c7d 0%, #6a82fb 100%);
  transform: translateY(-2px) scale(1.03);
}

.error-text {
  color: #fc5c7d;
  font-size: 0.95rem;
  min-height: 18px;
}

.word-count {
  font-size: 0.95rem;
  color: #6a82fb;
  margin-bottom: 2px;
}

#message {
  text-align: center;
  margin-top: 24px;
  font-size: 1.2rem;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(0,0,0,0.10);
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  body {
    padding-top: 120px;
    background:
      url('IShub-logo.jpg') no-repeat top 20px left 10px/80px auto,
      url('IShub-logo.jpg') no-repeat top 20px right 10px/80px auto,
      linear-gradient(135deg, rgba(106, 130, 251, 0.75) 0%, rgba(252, 92, 125, 0.75) 100%),
      url('background.jpg') no-repeat center center/cover;
  }
  
  form {
    padding: 18px 8px 14px 8px;
    max-width: 95vw;
    margin-top: 10px;
  }
  
  h1 {
    font-size: 1.8rem;
    padding-top: 10px;
  }
  
  p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
}