.flex-column {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
}

.flex-column div:first-child{
  width: 50%;
}
.flex-column div:last-child{
  width: 50%;
}
.checkbox-and-button {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
  margin-top: 12px;
}

/* Text inputs, email, tel */
.custom-cf7-form input[type="text"],
.custom-cf7-form input[type="email"],
.custom-cf7-form input[type="tel"],
.custom-cf7-form input[type="url"] {
  background-color: #F7F7FA; /* bg-lightred equivalent */
  border-radius: 2px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
  font-style: italic;
  color: #081F2C; /* text-red */
  width: 100%;
  border-radius: 10px;
  outline: none;
  box-shadow: none;
  margin-bottom: 10px;
}


.custom-cf7-form input[type="text"]::placeholder,
.custom-cf7-form input[type="email"]::placeholder,
.custom-cf7-form input[type="tel"]::placeholder,
.custom-cf7-form input[type="url"]::placeholder {
  color: #081F2C;
  font-style: italic;
}

/* Textarea */
.custom-cf7-form textarea {
  background-color: #F7F7FA;
  border-radius: 2px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
  font-style: italic;
  color: #081F2C;
  width: 100%;
  height: 180px;
  border-radius: 10px;
  outline: none;
  resize: none;
  box-shadow: none;
}


.custom-cf7-form textarea::placeholder {
  color: #081F2C;
  font-style: italic;
}


/* Submit button */
.custom-cf7-form input[type="submit"] {
  background-color: #F3D03E;
  color: #081F2C;
  border: none;
  border-radius: 30px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: medium;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 208px;
  height: 55px;
  display: block;
}

.custom-cf7-form input[type="submit"]:hover {
  background-color: #c6a72b;
}

/* Error messages */
.custom-cf7-form .wpcf7-not-valid {
  border: 2px solid #F7F7FA !important;
}

.custom-cf7-form .wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 12px;
  font-style: italic;
  margin-top: 4px;
}

.custom-cf7-form .wpcf7-validation-errors {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px;
  border-radius: 4px;
  margin-top: 16px;
}

.custom-cf7-form .wpcf7-mail-sent-ok {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 12px;
  border-radius: 4px;
  margin-top: 16px;
}

/* Responsive design */



/*  ////////////////////////////////////////////////////////  */


/* Make the label inline without offsets (undo earlier right: … edits) */

/* Checkbox styling */
.custom-cf7-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  appearance: none;
  border-radius: 2px;
  background-color: #ffffff;
  border: 2px solid #081F2C;
  position: relative;
  vertical-align: middle;
}

.custom-cf7-form input[type="checkbox"]:checked {
  background-color: #081F2C;
  border-color: #081F2C;
}

.custom-cf7-form input[type="checkbox"]:checked::before {
  content: '✓';
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -55%);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}


/* Acceptance field (CF7 acceptance checkbox) label styling */
.custom-cf7-form .wpcf7-acceptance label,
.custom-cf7-form .wpcf7-form-control-wrap-term_and_conditions label {
  font-size: 12px;
}

/* Ensure links inside acceptance field labels are underlined */
.custom-cf7-form .wpcf7-acceptance label a,
.custom-cf7-form .wpcf7-form-control-wrap-term_and_conditions label a {
  text-decoration: underline;
  font-weight: bold;
}



/* Ensure checkbox and multi-line label align as separate elements */
.custom-cf7-form .wpcf7-acceptance label,
.custom-cf7-form .wpcf7-form-control-wrap-term_and_conditions label {
  display: flex;
  align-items: flex-start;
  gap: 8px; /* space between checkbox and text */
  max-width: 95%;
  margin: 0;
  padding: 0;
  color: #293831;
}

.custom-cf7-form .wpcf7-acceptance input[type="checkbox"],
.custom-cf7-form .wpcf7-form-control-wrap-term_and_conditions input[type="checkbox"] {
  flex: 0 0 auto; /* prevent shrinking; keeps checkbox fixed */
  margin-top: 2px; /* optical alignment with first line of text */
}

.custom-cf7-form .wpcf7-acceptance .wpcf7-list-item-label,
.custom-cf7-form .wpcf7-form-control-wrap-term_and_conditions .wpcf7-list-item-label {
  flex: 1 1 auto; /* allow text to wrap on multiple lines */
  line-height: 1.5;
}
.wpcf7-acceptance {
  margin-left: -13px !important;
}

/* File Upload Drag & Drop Design */
.custom-cf7-form-control-wrap[data-name="attachment"] {
  display: block;
  position: relative;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Hide the default file input */
.custom-cf7-form-control-wrap[data-name="attachment"] input[type="file"] {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

/* Create the drag & drop area using the wrapper */
.custom-cf7-form-control-wrap[data-name="attachment"] {
  background-color: #F7F7FA;
  border: 2px dashed #081F2C;
  border-radius: 10px;
  padding: 40px 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.custom-cf7-form-control-wrap[data-name="attachment"]:hover {
  background-color: #e8e8ed;
  border-color: #F3D03E;
}

.custom-cf7-form-control-wrap[data-name="attachment"].drag-over {
  background-color: #e8e8ed;
  border-color: #F3D03E;
  border-style: solid;
}

/* Add icon using ::before pseudo-element */
.custom-cf7-form-control-wrap[data-name="attachment"]::before {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23081F2C' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.6;
  flex-shrink: 0;
}

/* Add text using ::after pseudo-element */
.custom-cf7-form-control-wrap[data-name="attachment"]::after {
  content: 'Drag & drop files here or click to browse\A Supported formats: PDF, JPG, PNG, DOC, AVI, M4A, MPG (Max 8MB)';
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  color: #081F2C;
  font-style: italic;
  line-height: 1.6;
  padding: 0 8px;
  box-sizing: border-box;
}

/* File list container (will be added by JavaScript) */
.custom-file-upload-files {
  width: 100%;
  margin-top: 16px;
  display: none;
}

.custom-cf7-form-control-wrap[data-name="attachment"].has-files .custom-file-upload-files {
  display: block;
}

.custom-cf7-form-control-wrap[data-name="attachment"].has-files {
  padding: 20px 24px;
  min-height: auto;
}

.custom-cf7-form-control-wrap[data-name="attachment"].has-files::before,
.custom-cf7-form-control-wrap[data-name="attachment"].has-files::after {
  display: none;
}

/* File item styling */
.custom-file-upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.custom-file-upload-item:hover {
  border-color: #F3D03E;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-file-upload-item-info {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.custom-file-upload-item-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  flex-shrink: 0;
  color: #081F2C;
  opacity: 0.7;
}

.custom-file-upload-item-icon svg {
  width: 100%;
  height: 100%;
}

.custom-file-upload-item-details {
  flex: 1;
  min-width: 0;
}

.custom-file-upload-item-name {
  font-size: 14px;
  font-weight: 500;
  color: #081F2C;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-file-upload-item-size {
  font-size: 12px;
  color: #081F2C;
  opacity: 0.6;
  font-style: italic;
}

.custom-file-upload-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: 12px;
  color: #dc2626;
  font-size: 18px;
  line-height: 1;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.custom-file-upload-item-remove:hover {
  color: #991b1b;
}

/* Error state */
.custom-cf7-form-control-wrap[data-name="attachment"].wpcf7-not-valid {
  border-color: #dc2626;
}

@media (max-width: 768px) {
  .flex-column {
    display: block;
  }
  .flex-column div:first-child{
    width: 100%;
  }
  .flex-column div:last-child{
    width: 100%;
  }
  .checkbox-and-button {
    display: block;
    margin-top: 12px;
  }
  .custom-cf7-form input[type="submit"] {
    margin-top: 12px;
  }
  
  /* File upload area mobile adjustments */
  .custom-cf7-form-control-wrap[data-name="attachment"] {
    padding: 24px 16px;
    min-height: 160px;
  }
  
  .custom-cf7-form-control-wrap[data-name="attachment"]::before {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }
  
  .custom-cf7-form-control-wrap[data-name="attachment"]::after {
    font-size: 12px;
    line-height: 1.5;
    padding: 0 4px;
  }
  
  .custom-cf7-form-control-wrap[data-name="attachment"].has-files {
    padding: 16px 12px;
  }
}


