/* Claim form styling */
.wpcf7-form {
  max-width: 800px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

/* Style for input fields */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}


.wpcf7 input[type="submit"] {
  width: 100% !important;
}

/* Style for readonly fields */
.wpcf7-form input[readonly] {
  background-color: #f9f9f9;
  cursor: not-allowed;
}

/* Style for file uploads */
.wpcf7-form input[type="file"] {
  padding: 10px 0;
}

/* Style for claim type dropdown */
#claim_type {
  padding: 10px;
  width: 100%;
  margin-bottom: 20px;
  border: 1px solid #4CAF50;
  border-radius: 4px;
  font-size: 16px;
}

/* Style for submit button */
.wpcf7-submit {
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  width: 100% !important;
}

.wpcf7-submit:hover {
  background-color: #2F4858;
}

/* Style for claim field groups */
.claim-fields {
  border: 1px solid #e0e0e0;
  padding: 20px;
  margin-top: 20px;
  border-radius: 5px;
  background-color: #f9f9f9;
}

/* Style for the popup */
#claimPopup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

#claimPopup > div {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  max-width: 500px;
  width: 80%;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

#popup-message h3 {
  margin-top: 0;
  color: #4CAF50;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

/* Style for the claim summary */
.submission-summary {
  background-color: #f0f8ff;
  padding: 15px;
  border-radius: 5px;
  border-left: 5px solid #4CAF50;
}

.submission-summary h3 {
  color: #4CAF50;
  margin-top: 0;
}

/* Style for headings in each claim section */
.claim-fields h3 {
  margin-top: 0;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* Required field indicator */
.wpcf7-form .required {
  color: red;
}

/* Success message */
.wpcf7-response-output.wpcf7-mail-sent-ok {
  border: 2px solid #4CAF50;
  padding: 10px;
  margin: 20px 0;
  background-color: #e7f3e8;
  border-radius: 4px;
}

/* Error message */
.wpcf7-response-output.wpcf7-validation-errors {
  border: 2px solid #f44336;
  padding: 10px;
  margin: 20px 0;
  background-color: #ffebee;
  border-radius: 4px;
}

/* Hide spinner */
.ajax-loader {
  display: none !important;
}


.wpcf7-form label {
 display: flex !important;
 flex-direction: column !important;
 gap: 8px;
 font-weight: bold;
}

/* Style for tooltips */
.wpcf7-form .tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.wpcf7-form .tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
}

.wpcf7-form .tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.wpcf7-response-output {
    display: none !important;
}


/* Responsive styling */
@media screen and (max-width: 600px) {
  .wpcf7-form {
    padding: 10px;
  }
  
  .claim-fields {
    padding: 15px;
  }
  
  .wpcf7-submit {
    width: 100%;
  }
}