

/* Start:/local/templates/new_en/components/richcode/custom-form/form/styles.css?17570077988949*/
/* Basic Reset for the Form */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

.custom-form-container{
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 15vh;
}

form#custom-form {
  width: 100%;
  max-width: 600px;
  padding: 20px;
}

form#custom-form .required-star {
  color: #af70ff;
  padding-left: 0.25em;
}

.form-title {
  font-size: 40px;
  line-height: 1em;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Input fields */
input[type="text"],
input[type="email"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 5px;
  border-bottom: 1px solid #0000001f;
  font-size: 16px;
  transition: all 0.3s ease;
}

textarea {
  resize: vertical; /* Allow vertical resizing only */
  min-height: 100px;
  max-height: 500px;
}

/* Focus effect for input fields */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="file"]:focus,
textarea:focus,
select:focus {
  border-color: #21ab78;
  background-color: #fff;
  outline: none;
}

/* Placeholder text color */
input::placeholder,
textarea::placeholder {
  color: #aaa;
}

/* Label styles */
label {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  display: block;
}

/* Radio buttons and checkboxes */
input[type="radio"],
input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #af70ff;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
  background-color: #af70ff; /* Update the background color to match the accent color */
  border-color: #af70ff;
}

/* File upload input */
input[type="file"] {
  padding: 10px;
  background-color: #fafafa;
  border: 1px solid #ccc;
  cursor: pointer;
}

/* Submit button */
button[type="submit"] {
  background-color: #21ab78;
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

button[type="submit"]:hover {
  opacity: 75%;
}

/* Form Section Container */
.form-block {
  margin-top: 12px;
  background-color: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 24px;
  padding-top: 22px;
  position: relative;
}
.form-block.invalid {
  border: 1px solid #af70ff;
}

/* Error messages */
p.error {
  color: #af70ff;
  font-size: 14px;
  margin-top: 5px;
}

/* Static Text */
.static-text {
  font-size: 16px;
  color: #555;
  margin-bottom: 10px;
}

/* Checkbox and radio buttons containers */
.radio-option,
.checkbox-option {
  margin-bottom: 10px;
}

.radio_wrapper,
.checkbox_wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
}

.block-title {
  margin-bottom: 10px;
  display: flex;
}

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.modal-content {
  text-align: center;
}

.modal-content > h2 {
  margin-bottom: 10px;
}

.modal-close {
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

.modal-redirect {
  background-color: #21ab78;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
  border-radius: 8px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.form-group {
  padding-bottom: 10px;
}

.required-warning-message {
  padding: 10px 0;
  color: #af70ff;
}

.line-separator {
  border-top: 1px solid rgb(218, 220, 224);
  left: 0;
  position: absolute;
  width: 100%;
}

/* Custom radio buttons */
.radio_wrapper input[type="radio"] {
  display: none;
}

.radio_wrapper input[type="radio"] + label {
  display: inline-block;
  padding-left: 30px;
  position: relative;
}

.radio_wrapper input[type="radio"] + label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #5f6368; /* gray border by default */
  background-color: white; /* white background by default */
  transition: border-color 0.2s ease-in-out;
}

.radio_wrapper input[type="radio"]:checked + label:before {
  border-color: #af70ff; /* purple border when checked */
}

.radio_wrapper input[type="radio"]:checked + label:after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #af70ff; /* purple dot inside the circle when checked */
  animation: scaleDot 0.4s ease-in-out;
}

@keyframes scaleDot {
  0% {
    transform: translateY(-50%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translateY(-50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
}

/* Custom checkboxes */
.checkbox_wrapper input[type="checkbox"] {
  display: none;
}

.checkbox_wrapper input[type="checkbox"] + label {
  display: inline-block;
  padding-left: 30px; /* Spacing for the checkbox */
  position: relative;
  cursor: pointer;
  font-size: 16px; /* Optional: Adjust font size */
}

.checkbox_wrapper input[type="checkbox"] + label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #5f6368; /* Default gray border */
  border-radius: 4px; /* Rounded corners */
  background-color: #fff;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.checkbox_wrapper input[type="checkbox"]:checked + label:before {
  border-color: #af70ff; /* Purple border when checked */
  background-color: #af70ff; /* Purple background */
}

.checkbox_wrapper input[type="checkbox"]:checked + label:after {
  content: "";
  position: absolute;
  left: 7px;
  top: 45%;
  transform: translateY(-50%) rotate(45deg);
  width: 4px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  animation: drawCheckmark 0.3s ease forwards;
}

@keyframes drawCheckmark {
  0% {
    opacity: 0;
    transform: translateY(-50%) rotate(45deg) scale(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) rotate(45deg) scale(1.2);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) rotate(45deg) scale(1);
  }
}

.custom-file-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  margin-bottom: 10px;
}

#upload-button {
  background-color: #21ab78;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#upload-button:hover {
  background-color: #21ab78;
}

#file-names {
  font-size: 14px;
  color: #555;
}

input[type="file"] {
  display: none;
}

.file-names {
  display: grid;
  row-gap: 0.5rem;
}

.file-item {
  display: flex;
  align-items: center;
  margin: 5px 0;
}

.file-item span {
  margin-right: 10px;
}

.delete-file {
  background: none;
  border: none;
  color: red;
  cursor: pointer;
}

#custom-form a {
  color: #21ab78;
  text-decoration: none;
}

#custom-form a:hover {
  color: #21ab78;
  text-decoration: underline;
}

 .form-submitted {
        max-width: 600px;
        margin: 0 auto;
        padding: 30vh 20px;
        border-radius: 6px;
        display: grid;
        justify-items: center;
    }

    .form-submitted-content {
        text-align: center;
    }

    .form-submitted-content h2 {
        font-size: 21px;
        font-weight: 500;
        margin-bottom: 0;
        margin-bottom: 15px;
    }

    .form-submitted-content p {
        color: #666;
        font-size: 16px;
        margin-bottom: 15px;
    }

    .btn {
        display: inline-block;
        background-color: #21ab78;
        border: none;
        padding: 8px 16px;
        font-size: 16px;
        border-radius: 4px;
        cursor: pointer;
        text-decoration: none;
    }

    .btn.btn-primary .btn-text {
        color: #fff;
    }

    .btn:hover {
        background-color: #21ab78;
        opacity: 75%;
    }

    .form-submitted a {
        color: #21ab78;
        text-decoration: none;
    }

    .form-submitted a:hover {
        color: #21ab78;
        text-decoration: underline;
    }
/* End */
/* /local/templates/new_en/components/richcode/custom-form/form/styles.css?17570077988949 */
