/* Membership-renewal gate + qualified-member profile dashboard.
   A signed-in qualified member enters their CRN and password; on success the
   student record and a grid of member service tiles are shown. No sidebar. */

.icap {
  background: #ffffff;
  padding: 2.5rem 1.25rem 4rem;
}

.icap__wrap {
  max-width: 1000px;
  margin: 0 auto;
}

/* --- Renew gate --- */

.renew {
  max-width: 30rem;
  margin: 1rem auto 0;
  border: 1px solid #e5e5e6;
  border-radius: 8px;
  padding: 2rem 2.25rem 2.25rem;
}

.renew__title {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #282937;
  margin: 0 0 0.5rem;
}

.renew__lead {
  font-size: 0.9375rem;
  color: #5c5c66;
  margin: 0 0 1.5rem;
}

.renew__field {
  margin-bottom: 1.25rem;
}

.renew__field label {
  display: block;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #282937;
  margin-bottom: 0.4rem;
}

.renew__field input {
  width: 100%;
  font-size: 1rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid #767676;
  border-radius: 4px;
}

.renew__field input:focus {
  outline: 2px solid #0091bd;
  border-color: #0091bd;
}

.renew__btn {
  width: 100%;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #fff;
  background: #72246c;
  border: 0;
  border-radius: 4px;
  padding: 0.85rem 1rem;
  cursor: pointer;
}

.renew__btn:hover {
  background: #9a205f;
}

.renew__msg {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.9375rem;
}

.renew__msg.is-error {
  display: block;
  background: #fdeaee;
  color: #a4103c;
  border: 1px solid #f3c6d0;
}

/* --- Qualified profile --- */

.icap-banner {
  background: #e9f7ee;
  border: 1px solid #bfe5cd;
  color: #1f7a3d;
  font-weight: 500;
  border-radius: 4px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 2rem;
}

.icap-profile__title {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: #282937;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e5e6;
}

.icap-info__label {
  font-weight: 700;
  color: #282937;
  margin: 0 0 0.75rem;
}

.icap-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.icap-table th,
.icap-table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e5e5e6;
  color: #282937;
}

.icap-table th {
  width: 30%;
  background: #f8f8f8;
  font-weight: 700;
}

.icap-note {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #5c5c66;
  margin: 0 0 2.5rem;
}

.icap-note a {
  color: #9a205f;
}

.icap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.icap-card {
  background: #f7f7f8;
  border: 1px solid #e5e5e6;
  border-radius: 4px;
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icap-card__title {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #1f6fb2;
  margin: 0 0 0.75rem;
}

.icap-card__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #5c5c66;
  margin: 0 0 1.25rem;
  flex: 1 0 auto;
}

.icap-card__text a {
  color: #9a205f;
}

.icap-card__btn {
  display: inline-block;
  background: #e23744;
  color: #fff;
  font-size: 0.8125rem;
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border-radius: 3px;
}

.icap-card__btn:hover {
  background: #c62c38;
  color: #fff;
}

@media only screen and (max-width: 640px) {
  .icap-grid {
    grid-template-columns: 1fr;
  }
  .icap-table th {
    width: 42%;
  }
}

/* Download PDF action */
.icap-actions {
  margin: 0 0 1.75rem;
}

.icap-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #72246c;
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
}

.icap-download::before {
  content: "\2193";
  font-weight: 700;
}

.icap-download:hover {
  background: #9a205f;
}
