/* Contact page specific styles */
.contact-form {
  background: #fff;
  padding: 30px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(178, 17, 23, 0.2);
  max-width: 600px;
  margin: 20px auto;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #000077;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 10px 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: #b21117;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  background-color: #b21117;
  color: white;
  font-weight: 700;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #7a0e11;
}

.contact-form .errors {
  background-color: #ffe6e6;
  border: 1px solid #b21117;
  color: #b21117;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  list-style-type: none;
}

.contact-form .success {
  background-color: #e6ffe6;
  border: 1px solid #2ecc40;
  color: #2ecc40;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

/* Contact info section */
.contact-info {
  background: #f9f9f9;
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 20px auto;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #333;
}

.contact-info h2 {
  color: #b21117;
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 700;
}

.contact-info p,
.contact-info ul {
  margin-bottom: 12px;
  line-height: 1.5;
}

.contact-info ul {
  padding-left: 20px;
  list-style-type: disc;
}

/* Map section */
.map {
  max-width: 600px;
  margin: 30px auto 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(178, 17, 23, 0.2);
  overflow: hidden;
}

.map h2 {
  color: #b21117;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Contact details wrapper */
.contact-details-wrapper {
  display: flex;
  gap: 30px;
  max-width: 1240px;
  margin: 0 auto 40px auto;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-details-wrapper .map,
.contact-details-wrapper .contact-info {
  flex: 1 1 45%;
  max-width: 600px;
  box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-details-wrapper {
    flex-direction: column;
    margin: 0 auto 30px auto;
  }
  .contact-details-wrapper .map,
  .contact-details-wrapper .contact-info {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Captcha styles */
.captcha-group {
    margin: 20px 0;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.captcha-image {
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 40px;
    vertical-align: middle;
}

.captcha-refresh {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.captcha-refresh:hover {
    background-color: #f0f0f0;
}

#captcha {
    width: 120px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

@media (max-width: 600px) {
    .captcha-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .captcha-image {
        margin-bottom: 10px;
    }
}
