/* --- Volunteer Section Styles --- */
.volunteer-wrapper {
  background-color: #f8f9fa; /* Soft neutral background to make the card pop */
}

.volunteer-card {
  border-radius: 12px;
  overflow: hidden;
  border: none;
}

.volunteer-header-bg {
  background-color:var(--color-1); /* Elegant dark primary color */
  color: #ffffff;
}

.volunteer-heading {
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.volunteer-divider {
  height: 4px;
  width: 50px;
  background-color: var(--color-3); /* Accent color */
  border-radius: 2px;
}

.volunteer-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #4a4a4a;
  font-weight: 400;
}
/* Form Design */
.hero-banner.volunteer {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.volunteer-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.volunteer-title {
    color: #0A3161;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.volunteer-desc {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.form-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #0A3161;
}

.form-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.form-top h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
    font-family: var(--font-02);
}
.form-top h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
    font-family: var(--font-02);
}

.form-top .secure {
    color: #28a745;
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.form-group, .hr-field-group {
    margin-bottom: 22px;
}

.form-group label, .hr-field-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: inline-block;
    font-size: 18px;
}

.form-group label span, .hr-required {
    color: #B31942; /* Campaign Red for required fields */
    margin-left: 3px;
}

.form-control, .form-select, .form-control-fill {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    background-color: #fbfbfc;
}

.form-control:focus, .form-select:focus, .form-control-fill:focus {
    border-color: #0A3161;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 49, 97, 0.15);
    outline: none;
}

/* Checkbox Styling */
.form-group input[type="checkbox"],
input[type="checkbox"].form-control {
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    margin-right: 10px;
    accent-color: #0A3161;
    cursor: pointer;
    display: inline-block !important;
    position: relative;
    top: 3px;
    background-color: #ffffff !important;
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
}

.form-group label:has(input[type="checkbox"]) {
    font-weight: 500;
    cursor: pointer;
    color: #495057;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: flex-start;
    line-height: 1.4;
}

/* Buttons */
.btn-area {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.next-btn {
    background: #0A3161;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 150px;
}

.next-btn:hover {
    background: #072244;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 49, 97, 0.3);
}

.next-btn svg {
    width: 18px;
    margin-left: 10px;
    fill: currentColor;
}

/* jQuery Validation Error Styles */
.is-invalid {
    border-color: #B31942 !important;
    background-color: #fff8f8;
}

label.error {
    color: #B31942;
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

.byAddressLocationMsg {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #fff8f8;
    border: 1px solid #B31942;
    display: none;
}

/* Responsive spacing for grid */
.row {
    margin-bottom: -15px;
}
.col-sm-6, .col-sm-12 {
    padding-bottom: 15px;
}

@media (max-width: 768px) {
    .form-box {
        padding: 25px 20px;
    }
    .btn-area {
        flex-direction: column;
    }
}
/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
  .volunteer-heading {
    font-size: 2rem;
  }
  
  .volunteer-header-bg {
    padding-bottom: 2rem !important;
  }
  
  .volunteer-divider {
    margin-bottom: 10px;
  }
}