/* ============================================================
   Above Standard — Contact Form 7 styling
   Paste into Appearance > Customize > Additional CSS,
   or enqueue as a standalone stylesheet.
   ============================================================ */

.as-form-wrap {
  --as-orange: #EB6F1F;
  --as-orange-dark: #D9631A;
  --as-field-bg: #F4F4F2;
  --as-field-bg-hover: #ECECE9;
  --as-border: #E3E3E0;
  --as-text: #1A1A1A;
  --as-label: #1A1A1A;
  --as-radius: 10px;
  max-width: 640px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--as-text);
}

/* ---------- layout ---------- */
.as-form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.as-form-row:last-child {
    margin: 0px;
}
.as-form-field {
  flex: 1;
  min-width: 0;

}
.as-form-label {
	color: rgb(13, 38, 24);
    font-family: Poppins;
    font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.093), 16px);
    font-style: normal;
    font-weight: 500;
	    display: block;
    line-height: 1.2;
    letter-spacing: 0.32px;
    padding-bottom: 8px;	
}

.as-form-field.as-full {
  flex: 1 1 100%;
}

/* ---------- labels ---------- */
.as-form-field > label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--as-label);
  margin-bottom: 8px;
}

.as-form-field .req {
  color: var(--as-orange);
}

/* ---------- inputs / textarea / select ---------- */
.as-form-wrap input[type="text"],
.as-form-wrap input[type="email"],
.as-form-wrap input[type="tel"],
.as-form-wrap textarea,
.as-form-wrap select {
	border-radius: 6px;
    background: #f2f2f280 !important;
    border: none;
    padding: 15px 15px !important;
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    font-family: Poppins;
	box-sizing:border-box;
    letter-spacing: 0.54px;
}

.as-form-wrap input::placeholder,
.as-form-wrap textarea::placeholder {
  color: #9A9A96;
}


.as-form-wrap textarea {
  height: 130px;
  resize: vertical;
}

.as-form-wrap select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231A1A1A' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  padding-right: 40px;
	color: #9A9A96;
  cursor: pointer;
}

/* ---------- phone group ---------- */
.as-phone-group {
  display: flex;
  gap: 10px;
}

.as-phone-group select {
  flex: 0 0 90px;
  width: 90px;
  text-align: center;
  padding-right: 30px;
  background-position: right 10px center;
}

.as-phone-group input[type="tel"] {
  flex: 1;
}

/* ---------- upload dropzone ---------- */
.as-upload-dropzone {
    border: 2px dashed #d6d6d6;
    border-radius: var(--as-radius);
    padding: 20px;
    transition: border-color .15s ease, background-color .15s ease;
    min-height: 155px;
    flex-direction: column;
    padding: 20px 0px;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
	margin-bottom:30px;
}

.as-upload-dropzone.is-dragover {
  border-color: var(--as-orange);
  background: #FFF6EE;
}

.as-upload-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.as-upload-add {
    width: 40px;
    height: 40px;
    border-radius: 8px;
	    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B6B66;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.as-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.as-upload-file-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #6B6B66;
  background: #EFEFEC;
}

.as-upload-thumb .as-upload-filename {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.92);
  font-size: 10px;
  line-height: 1.3;
  padding: 2px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.as-upload-thumb .as-upload-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--as-border);
  color: #1A1A1A;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.as-upload-hint {
  color: #0d261880 !important;
    font-family: Poppins;
    font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.185), 16px) !important;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.28px;
    text-align: center;
    max-width: 400px;
    margin: 0px auto;
}
}

/* ---------- submit button ---------- */
.as-form-wrap input[type="submit"] {
  background: var(--as-orange);
  color: #fff;
  border: none;
  border-radius: var(--as-radius);
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease;
}


/* ---------- CF7 validation / status ---------- */
.as-form-wrap .wpcf7-not-valid-tip {
  color: #C0392B;
  font-size: 12.5px;
  margin-top: 6px;
}

.as-form-wrap .wpcf7-not-valid {
  border-color: #C0392B !important;
}

.as-form-wrap .wpcf7-response-output {
  border-radius: var(--as-radius);
  padding: 12px 16px;
  font-size: 14px;
}
@media (max-width: 640px) {
  .as-form-row {
    flex-direction: column;
  }
	.as-upload-dropzone {
		padding-inline:15px;
		min-height: 105px;
	}
	.as-form-wrap textarea {
    	height: 95px;
	}
	.as-form-row input.wpcf7-form-control.wpcf7-submit {
		padding: 13px 17px;
		font-size: 14px;
		min-width: 160px;
		background-size: 17px;
	}
	.as-upload-dropzone {
		margin-bottom:15px;
	}
}
@media (max-width:991px) and (min-width:782px){
	.as-form-row {
		flex-direction: column;
	}
	.as-upload-dropzone {
		min-height: 105px;
	}
}
