/* volunteer.css */
/* border: var(--border-width) solid transparent;
border-image: url('/static/img/mosaic3.png') 30 round; */

:root {
  --primary-color: #005b96;
  --accent-color: #c4e2f5;
  --bg-light: #fafafa;
  --card-bg: #ffffff;
  --shadow-color: rgba(0, 91, 150, 0.15);
  --font-body: 'Open Sans', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 100%);
  color: #333;
}

main, header {
  box-sizing: border-box;
}


/* CONTACT SECTION */
.contact-section {
  padding: 2rem;
  text-align: center;
}

.volunteer-header {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.volunteer-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.disclaimer {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  color: #666;
}

.disclaimer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.contact-grid {
  display: flex;
  justify-content: center;
}

.form-card {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 8px 24px var(--shadow-color);
  border: 3px solid transparent;
  border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color)) 1;
  animation: fadeIn 0.8s ease-out both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-card h2 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  text-align: left;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="file"],
.contact-form textarea,
.contact-form ul#sortable-list li {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 6px rgba(0,91,150,0.3);
  outline: none;
}

/* DRAG-AND-DROP RANKING */
.preferences {
  text-align: left;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.preferences legend {
  font-weight: 600;
  color: var(--primary-color);
  padding: 0 0.5rem;
}

#sortable-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sortable-list li {
  background: var(--bg-light);
  cursor: grab;
  display: flex;
  align-items: center;
}

#sortable-list li:not(:last-child) {
  margin-bottom: 0.5rem;
}

#sortable-list li:active {
  cursor: grabbing;
}

/* BUTTON */
.btn.submit {
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-color);
}

/* footer {
  background: var(--bg-light);
  padding: 2rem;
  font-size: 0.9rem;
  color: #333;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.newsletter-form,
.contact-info {
  flex: 1;
  min-width: 250px;
  margin-bottom: 1.5rem;
}

.newsletter-form h3,
.newsletter-form p {
  text-align: left;
}

.newsletter-form input,
.newsletter-form button {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  margin-bottom: 0.5rem;
}

.newsletter-form button {
  background: var(--primary-color);
  color: #fff;
  border: none;
}

.contact-info p {
  margin: 0.5rem 0;
  text-align: left;
}

.social-icons .fa {
  padding: 8px;
  font-size: 20px;
  width: 30px;
  text-align: center;
  margin-right: 5px;
  border-radius: 50%;
  background: #ddd;
  color: #555;
  transition: background 0.2s;
}

.social-icons .fa:hover {
  background: var(--primary-color);
  color: #fff;
} */

@media (max-width: 600px) {
  .form-card {
    padding: 1rem;
  }
}

/* shrink the footprint */
.newsletter-form--compact { padding: .75rem 1rem; }
.newsletter-form--compact h3 { display: none; } /* removes the “news/Newsletter” heading */

.newsletter-embed { position: relative; border-radius: 1rem; overflow: hidden; }
.newsletter-embed--tiny .newsletter-iframe { width: 100%; height: 220px; border: 0; } /* try 180–260px */
.newsletter-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--card-bg));
  pointer-events: none;
}
.newsletter-expand {
  position: absolute; right: .6rem; bottom: .4rem;
  padding: .2rem .5rem; border-radius: .5rem; text-decoration: none;
  font-size: .9rem; color: var(--primary-color); background: rgba(0,0,0,.04);
}
.newsletter-expand:hover { text-decoration: underline; }
