/* Volunteer Page Custom Styles */

/* Grid Cards */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1 0 auto; }

.card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card h3 {
    color: #000;
    margin-bottom: 15px;
    font-size: 22px;
}
.card p {
    font-size: 16px;
    color: var(--txt-secondary);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Section Headings */
section h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--clr-blue);
}

/* Responsive Grid */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr !important;
    }
    section h2 {
        font-size: 24px;
    }
    .card h3 {
        font-size: 18px;
    }
    .card p {
        font-size: 14px;
    }
}
.card:nth-child(1) { background: #e0f7fa; } /* Rescue - blue-ish */
.card:nth-child(2) { background: #fff3e0; } /* Foster - orange-ish */
.card:nth-child(3) { background: #e8f5e9; } /* Adoption - green-ish */
.card:nth-child(4) { background: #f3e5f5; } /* Volunteer - purple-ish */
.content-container {
    max-width: 800px; /* Keeps text from stretching too wide on large screens */
    margin: 0 auto;   /* Center it horizontally */
    text-align: center;
    padding: 0 15px;  /* Some side padding for smaller screens */
}

.content-container h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--clr-blue);
}

.content-container p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--txt-secondary);
    margin-bottom: 15px;
}
.surrender-form {
  text-align: center;
  padding: 40px 0;
}

.iframe-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.iframe-container iframe {
  width: 100%;
  max-width: 900px; /* Adjust for desired width */
  height: 1300px; /* Adjust for desired height */
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .iframe-container iframe {
    height: 1600px;
  }
}
@media (max-width: 480px) {
  .iframe-container iframe {
    height: 2000px;
  }
}
/* Volunteer Form Iframe Container */
.iframe-container.volunteer {
  display: flex;
  justify-content: center;
  width: 100%;
}

.iframe-container.volunteer iframe {
  width: 100%;
  max-width: 900px; /* Keep it readable on large screens */
  height: 3100px; /* Increased significantly for long volunteer forms */
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .iframe-container.volunteer iframe {
    height: 2600px;
  }
}

@media (max-width: 768px) {
  .iframe-container.volunteer iframe {
    height: 3100px;
  }
}

@media (max-width: 480px) {
  .iframe-container.volunteer iframe {
    height: 3500px;
  }
}
/* Adoption Form Iframe Container */
.iframe-container.adopt {
  display: flex;
  justify-content: center;
  width: 100%;
}

.iframe-container.adopt iframe {
  width: 100%;
  max-width: 900px; /* Keep it readable on large screens */
  height: 750px; /* Compact, fits card-style Jotform */
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .iframe-container.adopt iframe {
    height: 1300px;
  }
}

@media (max-width: 768px) {
  .iframe-container.adopt iframe {
    height: 1450px;
  }
}

@media (max-width: 480px) {
  .iframe-container.adopt iframe {
    height: 1600px;
  }
}
/* Tablet / landscape mobile */
@media (max-width: 768px) {
  .iframe-container.adopt iframe {
    max-width: 100%;
    height: 600px; /* slightly smaller */
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .iframe-container.adopt iframe {
    max-width: 100%;
    height: 550px; /* compact for small screens */
  }
}