/* Contact Form Component Styles */

.contact-form-component form {
  width: 100%;
}

.contact-form-component .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.contact-form-component .col-lg-4, 
.contact-form-component .col-lg-6, 
.contact-form-component .col-lg-12 {
  padding: 0 15px;
  flex: 1 1 auto;
}

.contact-form-component .col-lg-12 {
  flex: 0 0 100%;
}

.contact-form-component .col-lg-4 {
  flex: 0 0 33.333333%;
}

.contact-form-component .col-lg-6 {
  flex: 0 0 50%;
}

.contact-form-component .form-group {
  margin-bottom: 20px;
}

.contact-form-component .input-group {
  display: flex;
  align-items: center;
}

.contact-form-component .form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.contact-form-component .form-control:focus {
  outline: none;
  border-color: #005895;
  box-shadow: 0 0 0 2px rgba(0, 88, 149, 0.1);
}

.contact-form-component textarea.form-control {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

/* Custom checkbox styles */
.contact-form-component .cuadrito .container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
  margin-left: 20px;
}

.contact-form-component .container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
}

.contact-form-component .cuadrito .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

.contact-form-component .cuadrito_text {
  color: #000000; 
  font-weight: 400;
  display: inline-block;
  margin-left: 10px;
  margin-bottom: 0;
  font-size: 14px;
}

/* On mouse-over, add a grey background color */
.contact-form-component .container:hover input ~ .checkmark {
  background-color: #005189;
}

/* When the checkbox is checked, add a blue background */
.contact-form-component .container input:checked ~ .checkmark {
  background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.contact-form-component .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.contact-form-component .container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.contact-form-component .container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.contact-form-component h4.gris {
  color: #1c1c1c;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.contact-form-component .site-button {
  background-color: #005895;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.contact-form-component .site-button:hover {
  background-color: #003d6b;
}

.contact-form-component .site-button:disabled {
  background-color: #999999;
  cursor: not-allowed;
  opacity: 0.6;
}

.contact-form-component .site-button:disabled:hover {
  background-color: #999999;
}

.contact-form-component .g-recaptcha {
  margin: 20px 0;
}

.contact-form-component .form-control.d-none {
  display: none;
}

/* Loader Styles */
.contact-form-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

.contact-form-loader.active {
  display: flex;
}

.loader-spinner {
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top: 6px solid #005895;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.contact-form-loader p {
  color: white;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

@media (max-width: 1024px) {
  .contact-form-component .col-lg-4 {
    flex: 0 0 50%;
  }

  .contact-form-component .col-lg-6 {
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  .contact-form-component .col-lg-4, 
  .contact-form-component .col-lg-6 {
    flex: 0 0 100%;
  }
}
