:root {
  --primary-color: #96358e;
  --primary-color-hover: #ba72a3;
  --primary-color-focus: 59, 130, 246;
  --form-bg-color: transparent;
  --form-text-color: #96358e;
  --response-bg-color: #e8f5e9;
  --border-radius: 0.375rem;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition-duration: 0.2s;

  --bs-border-color: #f2e2ed;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #96358e;
  --bs-btn-border-color: #96358e;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #ba72a3;
  --bs-btn-hover-border-color: #96358e;
  --bs-btn-focus-shadow-rgb: 49,132,253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #96358e;
  --bs-btn-active-border-color: #96358e;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #96358e;
  --bs-btn-disabled-border-color: #96358e;
}

.img-fluid{
  max-width: 100%;
  height: auto;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  /* padding: 20px; */

  /* background-image: url("../assets/img/Karak-.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat; */
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  /* background-color: #fff; */
  /* border-radius: var(--border-radius); */
  box-shadow: var(--box-shadow);
  /* box-shadow: 0px -15px 0 1px var(--primary-color), 0px 1px 0 1px var(--primary-color); */
  overflow: hidden;


  /* background-image: url("../assets/img/bg2.jpg");
  background-position: bottom right;
  background-size: cover;
  background-repeat: no-repeat; */
}

.form-header {
  padding: 2rem;
  background-color: var(--primary-color);
  color: white;
  position: relative;
}

.form-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
}

.back-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: white;
  text-decoration: none;
  opacity: 0.9;
  font-size: 0.9rem;
}

.back-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.form-header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(to right bottom, rgba(0,0,0,0.1) 50%, transparent 50%);
}

.form-content {
  padding: 2rem;
  /* background-color: var(--form-bg-color);
  color: var(--form-text-color); */
  /* background-color: #fbfbfb; */
  background-color: #fff;
  color: var(--form-text-color);
  border: 2px solid var(--bs-border-color);
  border-radius: var(--border-radius);
}

.form-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  animation: fadeIn 0.3s ease-out;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--form-text-color) !important;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-duration) ease-in-out, box-shadow var(--transition-duration) ease-in-out;
}

.form-control:focus {
  color: #212529;
  background-color: #fff;
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-focus), 0.25);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.required {
  color: #dc3545;
  margin-left: 4px;
}

.btn {
  display: inline-block;
  font-weight: 500;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--border-radius);
  transition: color var(--transition-duration) ease-in-out, background-color var(--transition-duration) ease-in-out, border-color var(--transition-duration) ease-in-out, box-shadow var(--transition-duration) ease-in-out;
}

.btn-primary {
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  color: #fff;
  background-color: var(--primary-color-hover);
  border-color: var(--primary-color-hover);
}

.btn-lg {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
}

.progress {
  display: none;
  height: 4px;
  overflow: hidden;
  background-color: #e9ecef;
  border-radius: 0.25rem;
  margin-top: 1rem;
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background-color: var(--primary-color);
  transition: width 0.6s ease;
}

.form-status {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: var(--border-radius);
}

.form-status.success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.form-status.error {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

/* .webhook-response {
  display: none;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: var(--response-bg-color);
  animation: fadeIn 0.5s ease-out;
} */

.webhook-response {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  border-left: 5px solid var(--primary-color);
  z-index: 9999;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Visible state */
.webhook-response.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.webhook-response h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.webhook-response-content {
  white-space: pre-wrap;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Checkboxes and Radio Buttons */
.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5em;
  margin-bottom: 0.5rem;
}

.form-check-input {
  float: left;
  margin-left: -1.5em;
  width: 1em;
  height: 0.5em !important;
  margin-top: 0.25em;
  vertical-align: top;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.25);
  appearance: none;
  transition: all var(--transition-duration) ease-in-out;
}

.form-check-input[type="checkbox"] {
  border-radius: 0.25em;
}

.form-check-input[type="radio"] {
  border-radius: 50%;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="radio"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-label {
  color: var(--form-text-color);
  font-weight: normal;
}

/* File Upload Styles */
.custom-file {
  position: relative;
  display: inline-block;
  width: 100%;
  height: calc(1.5em + 1.5rem + 2px);
  margin-bottom: 0;
}

.custom-file-input {
  position: relative;
  z-index: 2;
  width: 100%;
  height: calc(1.5em + 1.5rem + 2px);
  margin: 0;
  opacity: 0;
}

.custom-file-label {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: calc(1.5em + 1.5rem + 2px);
  padding: 0.75rem 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #6c757d;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  transition: all var(--transition-duration) ease-in-out;
}

.custom-file-input:focus ~ .custom-file-label {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-focus), 0.25);
}

.custom-file-label::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: block;
  height: calc(1.5em + 1.5rem);
  padding: 0.75rem 1rem;
  line-height: 1.5;
  color: #fff;
  content: "Browse";
  background-color: var(--primary-color);
  border-left: inherit;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.file-drop-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 150px;
  padding: 1.5rem;
  border: 2px dashed #ced4da;
  border-radius: var(--border-radius);
  background-color: #f8f9fa;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-drop-area:hover,
.file-drop-area.is-active {
  background-color: rgba(var(--primary-color-focus), 0.05);
  border-color: var(--primary-color);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}

.selected-files {
  margin-top: 0.75rem;
}

.selected-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
}

.file-info {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-top: 1rem;
}

/* Audio Recorder Styles */
.audio-recorder {
  display: flex;
  flex-direction: column;
}

.record-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.record-button.recording {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.record-status {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

/* Switch Styles */
.custom-control {
  position: relative;
  display: block;
  min-height: 1.5rem;
  padding-left: 2.5rem;
}

.custom-control-input {
  position: absolute;
  left: 0;
  z-index: -1;
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0;
}

.custom-switch .custom-control-label::before {
  left: -2.25rem;
  width: 1.75rem;
  pointer-events: all;
  border-radius: 0.875rem;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
  background-color: #fff;
  transform: translateX(0.75rem);
}

.custom-switch .custom-control-label::after {
  top: calc(0.25rem + 2px);
  left: calc(-2.25rem + 2px);
  width: calc(1rem - 4px);
  height: calc(1rem - 4px);
  background-color: #adb5bd;
  border-radius: 0.5rem;
  transition: transform var(--transition-duration) ease-in-out, background-color var(--transition-duration) ease-in-out;
}

.custom-control-label {
  position: relative;
  margin-bottom: 0;
  vertical-align: top;
}

.custom-control-label::before {
  position: absolute;
  top: 0.25rem;
  left: -1.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  content: "";
  background-color: #fff;
  border: 1px solid #adb5bd;
}

.custom-control-label::after {
  position: absolute;
  top: 0.25rem;
  left: -1.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  content: "";
  background: no-repeat 50% / 50% 50%;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
  color: #fff;
  border-color: var(--primary-color);
  background-color: var(--primary-color);
}

.form-switch-wrapper {
  padding: 0.75rem 1rem;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
}

/* HTML Content Styling */
.html-content {
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.html-content p {
  margin-bottom: 1rem;
}

.html-content p:last-child {
  margin-bottom: 0;
}

.html-content a {
  color: var(--primary-color);
  text-decoration: none;
}

.html-content a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
    width: 100%;
  }
  
  .form-header,
  .form-content {
    padding: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

label {
  color: var(--primary-color);
   /* font-family: Roboto; */
   font-size: 18px;
   font-style: normal;
   font-weight: normal;
   line-height: normal;
}
input {
/*     width: 100%; */
   width:100%;
   /* padding: 0.600rem 10px; */
   padding: 0.4rem 10px;
   font-size: 1rem;
   letter-spacing: 0.062rem;
   margin-bottom: 1.875rem;
   border: 1px solid #ccc;
   background: transparent;
   border-radius: 10px;
}


/* new */

.img-container{
max-width: 400px;
padding: 0px 20px;
margin: -15px auto;
}

.iti {
display: block !important;
}

.iti--separate-dial-code .iti__selected-flag {
background-color: var(--bs-border-color) !important;
}

.form-bg{
  width: 100%;
  min-height: 100vh;
  background-image: url("../assets/img/Karak-Page-1-.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-control:focus{
border-color: var(--primary-color);
outline: 0px;
box-shadow: rgb(255 195 225) 0px 0px 5px 0.1rem;
}

.form-select:focus, .form-check-input:focus {
border-color: var(--primary-color);
outline: 0px;
box-shadow: rgb(255 195 225) 0px 0px 5px 0.1rem;
}

.form-select{
padding: 0.75rem 1rem !important;
}

.form-select option {
background-color: #f0f0f0;
color: #333;
padding: 10px;
}

.rel{
position: relative;
}

.leaves{
  position: absolute;
  top: -55px;
  right: 10px;
  max-width: 150px;
}

/* btn */

/* .btn-leave:disabled{
  background-color: var(--primary-color-hover) !important;
} */

.btn-leave:hover .leaves{
  transition: all 0.3s ease;
  transform: rotate(-1deg);
}


.turnstile-wrapper {
  width: 100%;
  max-width: 70%;
  margin: 20px auto;
  /* border: 2px solid #ccc; */
  border-radius: 10px;
  padding: 9px;
  /* background: #f9f9f9; */
}

.cf-turnstile {
  transform: scale(1.2); /* increase widget size */
  transform-origin: 0 0;
}


/* Smaller screens */
@media (max-width: 480px) {
  .turnstile-wrapper {
    width: 100%;
    max-width: 50%;
    margin: 10px 0px !important;
    /* border: 2px solid #ccc; */
    border-radius: 10px;
    padding: 2px;
    /* background: #f9f9f9; */
  }
  
  .cf-turnstile {
    transform: scale(1); /* increase widget size */
    transform-origin: 0 0;
  }

  .leaves{
    position: absolute;
    top: -18px;
    right: 10px;
    max-width: 50px;
  
    }
}

/* Larger screens */
@media (min-width: 1024px) {
  .cf-turnstile {
    transform: scale(1.2); /* increase widget size */
  transform-origin: 0 0;
  }
}