html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ContactForm Styles */
.ContactForm {
  background: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  /* max-width: 800px; */
  margin: 40px auto;
}

.ContactForm-title {
  font-size: 28px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 16px;
  text-align: center;
}

.ContactForm-description {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.5;
}

.ContactForm-form {
  width: 100%;
}

.ContactForm-field {
  margin-bottom: 24px;
}

.ContactForm-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  margin-bottom: 8px;
}

.ContactForm-input,
.ContactForm-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ContactForm-input:focus,
.ContactForm-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.ContactForm-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ContactForm-textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.ContactForm-error {
  display: block;
  color: #dc3545;
  font-size: 14px;
  margin-top: 4px;
}

.ContactForm-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.ContactForm-submit {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
  /* display: inline-flex; */
  align-items: center;
  text-decoration: none;
  width: 100%;
}

.ContactForm-submit:hover {
  background-color: #0056b3;
  color: white;
}

.ContactForm-back {
  background-color: transparent;
  color: #6c757d;
  border: 1px solid #6c757d;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ContactForm-back:hover {
  background-color: #6c757d;
  color: white;
  text-decoration: none;
}

.ContactForm-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}

.ContactForm-error-msg {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ContactForm {
    padding: 24px;
    margin: 20px auto;
  }
  
  .ContactForm-actions {
    flex-direction: column;
  }
  
  .ContactForm-submit,
  .ContactForm-back {
    width: 100%;
    justify-content: center;
  }
}

/* Form sections */
.contact-form-section {
  /* margin-top: 32px;
  padding-top: 24px; */
  border-top: 1px solid #e9ecef;
}

.form-section-title {
  font-size: 20px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}

.form-text {
  font-size: 12px;
  color: #6c757d;
  margin-top: 4px;
}

input[type="radio"],
input[type="checkbox"]{
    display: none;
}

.containerOptions{
    display: flex;
    flex-wrap: wrap;
}

.containerOptions .radioContainer,
.containerOptions .checkboxContainer{
    position:relative;
    margin-bottom: 30px;
    align-items: center;
    display: flex;
    height: 30px;
    flex:0 0 50%;
}

.containerOptions .radioContainer label,
.containerOptions .checkboxContainer label{
    margin-left:50px;
}


.containerOptions .radioContainer label::before,
.containerOptions .checkboxContainer label::before{
    content:"";
    border-radius: 8%;
    border: 1px solid #9b9b9b66;
    height: 30px;
    width: 30px;
    top: 0%;
    left: 0%;
    margin: auto 0px;
    display: block;
    position: absolute;
}

.containerOptions .radioContainer input[type="radio"]:checked + label::before,
.containerOptions .checkboxContainer input[type="checkbox"]:checked + label::before
{
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    color: #fff;
    background-color: #0085b7;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    align-content: center;
}

label {
    font-weight: bold;
    font-size: 1.0em;
}

@media (max-width: 1400px) {
    .ContactForm {
        width: 90%;
    }
}

@media (max-width: 880px) {
    .ContactForm {
        width: 95%;
    }
}

@media (max-width: 520px) {
    .containerOptions .radioContainer,
    .containerOptions .checkboxContainer{
        flex:0 0 100%;
    }
}

/* Validation styling for multi-select checkboxes */
.field-validation-error {
    color: #dc3545 !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block !important;
}

/* Iframe-specific styling */
html.iframe-context {
    scroll-behavior: smooth;
}

/* Ensure validation messages are visible in iframe */
.text-danger {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Required label styling */
.form-label-title.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}