/**
 * Custom styles for the CAAT donation page - Updated 10/2026 for CAATNON-37
 * Author: Circle Interactive for the Campaign Against Arms Trade (CAAT)
 **/
.crm-container {
  font-family: "korolev","Trebuchet MS","Lucida Grande",Tahoma,sans-serif !important;
  .crm-multiple-checkbox-radio-options .crm-option-label-pair {
    display:flex;
    align-items: unset;
    input {
      width: 2rem;
    }
  }
  .required-text {
    font-size: 0.6em;
    font-weight: normal;
    color: #E20613;
  }
  .crm-marker {
    margin-right: 0;
    color:#E20613;
  }
}
#crm-container.crm-public .content {
  font-size: 1.1rem;
}
body.page-civicrm-contribute-transact {
  background: rgb(var(--bs-dark-rgb));
  font-size: 1.1rem !important;
  .crm-public .label {
    font-size: 1.3rem !important;
    line-height: 2; 
    font-weight:bold;
    label {
      font-weight:bold;
    }
  }
  header, main {
    background: #fff;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
  }
  @media (max-width: 992px) {
    header, main {
      width: 100%;
    }
  }
  .col-lg-8 {
    flex: 0 0 auto;
    width: 100%;
  }
  nav.navbar,
  .bg-light {
    background: white !important;
  }
  header{
    height:150%;
  }
  h1 {
    text-transform: uppercase;
    font: 700 3em/3.2 "korolev","Trebuchet MS","Lucida Grande",Tahoma,sans-serif;
    transform: scale(1, 1.3);
  }
  h2 {
    text-transform: uppercase;
    font: 700 2em/2.2 "korolev","Trebuchet MS","Lucida Grande",Tahoma,sans-serif;
    transform: scale(1, 1.3);
  }
  @media (max-width: 992px) {
    h1 {
      font: 700 2em/1.2 "korolev","Trebuchet MS","Lucida Grande",Tahoma,sans-serif;
      margin-bottom: 1.5rem;
    }
    h2 {
      font: 700 1.5em/1 "korolev","Trebuchet MS","Lucida Grande",Tahoma,sans-serif;
    }
  }
}
#crm-container.crm-public input[type="text"], #crm-container.crm-public input[type="password"], #crm-container.crm-public input[type="email"], #crm-container.crm-public select {
    font-size: 1.1rem;
}
.select2-drop {
  background: white !important;
}
.crm-public .crm-contribution-main-form-block {
  .intro_text-section {
    border-bottom: solid 2px #CCC;
  }
  .contribution-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .crm-section.price_set-section {
    .crm-section.other_amount-section {
        .label {
          float:unset;
          display:block;
          width:100%;
          text-align:left;
        }
        .other_amount-content {
          float: unset;
          margin-left:unset;
          input {
            width: 15rem;
          }
        }
    }
    .crm-section.contribution_amount-section {
      .label {
        float:unset;
        display:block;
        width:100%;
        text-align:left;
      }

      .contribution_amount-content {
        display:flex;
        margin-left: unset;
        gap: 2%;
        justify-content: space-evenly;
        margin-top: 2rem;
        .price-set-row {
          width: 23%;
          border: solid 2px #CCC;
          border-radius: 5px;
          padding: 1.5rem 1rem;
          &:hover,
          &.highlight {
            border-color: #E20613;
          }

          .crm-option-label-pair {
            display: flex;
            justify-content: space-evenly;
            label {
              max-width:65%;
            }
            input {
              height:2rem;
              width: 2rem;
              line-height: 2rem;
            }
            .custom-price-amount {
              font-size: 2rem;
              display: block;
              font-weight: bold;
              margin-bottom: 1rem;
            }
          }
          &.other-amount-option .custom-price-amount {
            font-size: 1.5rem;
            line-height: 1.5;
          }
        }
      }
    }
  }
  .contribution-numbered-section {
    position: relative;
  }
  .contribution-section--details { 
    margin: 2rem 0;
    border-top: solid 2px #CCC;
    legend {
      display:none;
    }
    fieldset.crm-profile {
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      .label {
        float: unset;
        text-align: left;
        display: block;
        width: 100%;
      }
      .content {
        margin-left:unset;
        input {
          width: 90%;
        }
      }
    }
  }
  .contribution-section--additional {
    border-top: solid 2px #CCC;
    padding-top: 2rem;
    margin-top:2rem;
    .crm-section.editrow_custom_140-section,
    .crm-section.editrow_custom_141-section,
    .crm-section.editrow_custom_142-section {
        display: flex;
        border: solid 2px #CCC;
        border-radius: 5px;
        padding: 1rem;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1rem !important;
        .label {
          width: 70%;
          text-align: left;
        }
      }
      .advice {
        background-color:#f7f7f7;
        padding: 1rem;
        border: solid 2px #CCC;
        border-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        p {
          color:#E20613;
          font-weight: bold;
          text-align: center;
          font-size: 1.1em;
        }
        .info-icon {
          margin-right: 1rem;
        }
      }
      .help {
        display:none;
      }
    }
  .crm-submit-buttons {
    text-align: center;
    button {
      background-color:#E20613;
      color: #fff;
      text-transform: uppercase;
      font-size: 1.5rem;
      border: none;
      padding: 1rem 2rem;
      cursor: pointer;
      margin-left:auto;
      margin-right:auto;
    }
  }
}
.crm-contribution-confirm-form-block {
  .crm-submit-buttons {
    text-align: center;
    button {
      background-color:#E20613;
      color: #fff;
      text-transform: uppercase;
      font-size: 1.5rem;
      border: none;
      padding: 1rem 2rem;
      cursor: pointer;
      margin-left:auto;
      margin-right:auto;
    }
  }
  .help {
    background-color:#f7f7f7;
    padding: 1rem;
    border: solid 2px #CCC;
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;
    p {
      color:#E20613;
      font-weight: bold;
      text-align: center;
      font-size: 1.1rem;
    }
  }
  h2 {
    border-top: solid 2px #CCC;
    margin-top: 4rem;
  }
}

@media (max-width: 992px) {
  .crm-public .crm-contribution-main-form-block {
    #priceset-div {
      margin: 2rem 0;
    }
    .crm-section.price_set-section {
      .crm-section.contribution_amount-section {
        .contribution_amount-content {
          display:block;
          margin-top: 2rem;
          .price-set-row {
            width: 100%;
          }
        }
      }
    }
    .contribution-section--details {
        fieldset.crm-profile {
          display: block;
        }
      }
  }
}
.contribution-numbered-section::before {
  content: counter(contribution-section);
  position: absolute;
  top: 2.5rem;
  left: 2.5rem;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #E20613;
  border-radius: 50%;
  font-weight: 700;
  color: #E20613;
  font-size: 2rem;
}
.contribution-numbered-section {
  counter-increment: contribution-section;
  padding-left: 8rem;
}
#crm-container {
  counter-reset: contribution-section 0;
}
@media (max-width: 992px) {
  .contribution-numbered-section::before {
    position: relative;
    display:block;
    top: 0;
    left: 0;
  }
  .contribution-numbered-section {
    padding-left: unset;
  }
}