/* Preview & Test Page */
.wordform-preview-n-test-form-wrapper {
	width: 50%;
	margin: 3% auto;
}
/* Built Form Display */
.sc-wordform-built-form-frontend-outermost-div-wrapper form {
	width: auto;
	/*margin: 0 auto;*/
}
.sc-wordform-built-form-frontend-outermost-div-wrapper form.small {
	width: 30%;
	/*margin: 0 auto;*/
}
.sc-wordform-built-form-frontend-outermost-div-wrapper form.medium {
	width: 50%;
	/*margin: 0 auto;*/
}
.sc-wordform-built-form-frontend-outermost-div-wrapper form.large {
	width: 80%;
	/*margin: 0 auto;*/
}

.sc-wordform-built-form-frontend-outermost-div-wrapper 
input[type="text"], 
input[type="number"], 
input[type="range"],
input[type="date"], 
input[type="date"],
input[type="tel"], 
input[type="url"],
input[type="email"] {
	height: 40px;
	width: 100%;
	margin-bottom: 2%;
	margin-top: 1%;
	font-size: 16px;
	border-radius: 5px;
}
.sc-wordform-built-form-frontend-outermost-div-wrapper input, 
textarea, select, 
input[type="checkbox"], 
input[type="radio"], 
input[type="email"], 
input[type="date"], 
input[type="url"], 
input[type="tel"] {
	border: 1px solid #abb8c3;
	-webkit-transition: 0.2s;
	transition: 0.2s;
	outline: none;

}
.sc-wordform-built-form-frontend-outermost-div-wrapper input:focus, textarea:focus, select:focus {
	border: 2px solid #0D44D9;
}
.sc-wordform-error-input {
	border: 2px solid #F30D11;
	-webkit-transition: 0.2s;
	transition: 0.2s;
	outline: none;
}
/* Start Error Message */
/* .sc-wordform-error-msg {
	font-size: 12px;
	color: #F30D11;
	font-weight: 600;
} */
 /* Base styling */
.sc-wordform-error-msg {
	font-size: 13px;
	color: #F30D11;
	font-weight: 600;
	line-height: 1.4;
	display: inline-block;
	margin-top: 3px;
	opacity: 0;
	animation: wordformErrorFadeIn 0.4s ease forwards;
}

/* Tablet screens */
@media (max-width: 768px) {
	.sc-wordform-error-msg {
		font-size: 14px;
		font-weight: 700;
	}
}

/* Small mobile screens */
@media (max-width: 480px) {
	.sc-wordform-error-msg {
		font-size: 15px;
	}
}

/* Fade-in animation */
@keyframes wordformErrorFadeIn {
	0% {
		opacity: 0;
		transform: translateY(-3px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* End Error Message */
.sc-wordform-built-form-frontend-outermost-div-wrapper textarea {
	width: 100%;
	min-height: 200px;
	margin-top: 1%;
	font-size: 16px;
	border-radius: 5px;
	margin-bottom: 2%;
}
.sc-wordform-built-select-element-label-wrapper {
	/*margin-top: 3%;*/
	margin-bottom: 0.5%;
}
.sc-wordform-built-select-wrapper, 
.sc-wordform-built-radio-wrapper, 
.sc-wordform-built-checkbox-wrapper, 
.sc-wordform-built-textarea-wrapper, 
.sc-wordform-built-captcha-wrapper,
.sc-wordform-built-number-wrapper,
.sc-wordform-built-date-wrapper,
.sc-wordform-built-tel-wrapper,
.sc-wordform-built-url-wrapper,
.sc-wordform-built-range-wrapper {
	margin-bottom: 2%;
}
.sc-wordform-built-form-frontend-outermost-div-wrapper select {
	width: 100%;
	background-color: #FFFFFF;
	height: 40px;
	font-size: 16px;
	cursor: pointer;
	padding-left: 10px;
	border-radius: 5px;
	margin-bottom: 2%;
}
.sc-wordform-built-upload-wrapper {
	margin-top: 3%;
	margin-bottom: 1%;
}
.wordform-tel-element-phone-hints {
	color: #404040;
}
.sc-wordform-built-text-element-label, 
.sc-wordform-built-number-element-label, 
.sc-wordform-built-url-element-label, 
.sc-wordform-built-textarea-element-label, 
.sc-wordform-built-select-element-label, 
.sc-wordform-built-email-element-label, 
.sc-wordform-built-captcha-element-label,
.sc-wordform-built-upload-element-label,
.sc-wordform-built-range-element-label,
.sc-wordform-built-date-element-label,
.sc-wordform-built-tel-element-label {
	font-weight: 600;
}
.sc-wordform-built-checkbox-element-label-wrapper, 
.sc-wordform-built-radio-element-label-wrapper, 
.sc-wordform-built-email-wrapper,
.sc-wordform-built-upload-element-label-wrapper {
	/*margin-top: 3%;*/
	margin-bottom: 0.5%;
	font-weight: 600;
}
.sc-wordform-built-form-frontend-outermost-div-wrapper input[type="checkbox"] + label {
	padding-left: 1.8%;
	vertical-align: text-bottom;
}
.sc-wordform-built-form-frontend-outermost-div-wrapper input[type="radio"] + label {
	padding-left: 1.8%;
	vertical-align: text-bottom;
}
.sc-wordform-built-form-frontend-outermost-div-wrapper input[type="checkbox"], input[type="radio"] {
	cursor: pointer;
	height: 20px;
	width: 20px;
	/*vertical-align: sub;*/
	margin: 8px 0;
}
.sc-wordform-captcha-container-wrapper {
	margin-top: 2%;
}
.sc-wordform-captcha-container-wrapper img {
	border-radius: 8px;
	box-shadow: 10px 10px 15px #bebebe, -10px -10px 10px #fff;
}

.g-recaptcha {
	margin-top: 1%;
}

/* Start First Last Name: Create Input Text - First Last Name */
/* Wrapper for the row */
.sc-wordform-built-firstlastname-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 1%;
  margin-bottom: 2%;
}

/* Each input wrapper */
.sc-wordform-built-first-name-wrapper,
.sc-wordform-built-last-name-wrapper {
  flex: 1;
  min-width: 180px; /* ensures they stack nicely on small screens */
  display: flex;
  flex-direction: column;
}

/* Inputs full width inside wrapper */
.sc-wordform-built-first-name,
.sc-wordform-built-last-name {
  width: 100%;
  box-sizing: border-box;
}
.sc-wordform-built-firstlastname-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.sc-wordform-built-first-name-wrapper,
.sc-wordform-built-last-name-wrapper {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.sc-wordform-built-first-name,
.sc-wordform-built-last-name {
  width: 100%;
  box-sizing: border-box;
}

/* End First Last Name: Create Input Text - First Last Name */

/* Frontend button */
.sc-wordform-built-form-frontend-outermost-div-wrapper .button {
	vertical-align: top;
}
.sc-wordform-built-form-frontend-outermost-div-wrapper .button-primary {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
	text-decoration: none;
	text-shadow: none;
	border-radius: 3px;
	white-space: nowrap;
	box-sizing: border-box;
	font-size: 18px;
	padding: 8px 25px;
	margin-top: 3%;
	cursor: pointer;
}
.sc-wordform-built-form-frontend-outermost-div-wrapper .button-primary:hover {
	transition: 0.3s;
	background: #006ba1;
}
.sc-wordform-built-form-frontend-outermost-div-wrapper .button-large {
	min-height: 32px;
	line-height: 2.30769231;
	padding: 0 12px;
}
.sc-wordform-built-form-submit-button-wrapper.left,
.sc-wordform-built-form-formname-label-wrapper.left {
	text-align: left;
	/*margin-top: 3%;*/
}
.sc-wordform-built-form-submit-button-wrapper.center,
.sc-wordform-built-form-formname-label-wrapper.center {
	text-align: center;
	/*margin-top: 3%;*/
}
.sc-wordform-built-form-submit-button-wrapper.right,
.sc-wordform-built-form-formname-label-wrapper.right {
	text-align: right;
	/*margin-top: 3%;*/
}

span.sc-wordform-required-field {
	color: red;
	font-weight: bolder;
	padding-left: 5px;
}
.sc-wordform-submission-success-msg-div-wrapper {
	text-align: center;
	color: green;
	font-weight: 600;
	padding-top: 5%;
}
.sc-wordform-submisson-fail-msg-div-wrapper {
	text-align: center;
	color: red;
	font-weight: 600;
}
.progress-bar {
	width: 0%;	
	margin-top: 3%;
	/* padding: 1%; */
	border-radius: 10px;
	color: #fff;
	text-align: center;	
}
/* Start uploaded files remove button */
/* .wordform-remove-selected-file {
	color: #F30D11;
	margin-left: 1%;
	cursor: pointer;
	vertical-align: middle;
} */

/* Remove file (delete) icon — clean, minimal, animated */
.wordform-remove-selected-file {
	color: #F30D11;
	margin-left: 6px;
	cursor: pointer !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	font-size: 18px; /* adjust based on icon font (dashicon/fa) */
	line-height: 1;
	transition: transform 0.25s ease, color 0.25s ease;
	transform: scale(1);
}

/* Hover / active effect */
.wordform-remove-selected-file:hover,
.wordform-remove-selected-file:focus,
.wordform-remove-selected-file:active {
	color: #B2080C; /* darker red */
	transform: scale(1.25);
}

/* Make icon scale slightly larger on small/touch screens */
@media (max-width: 600px) {
	.wordform-remove-selected-file {
		font-size: 20px;
		margin-left: 10px;
	}
}

/* Ensure file name and icon are aligned properly */
.wordform-file-list-item {
	display: flex;
	align-items: center;
	gap: 6px; /* space between file name and delete icon */
	padding: 4px 0;
	animation: wordformFadeIn 0.3s ease-in-out;
}

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

/* End uploaded files remove button */

ul.wordform-selected-file-names-list {
	margin-top: 0;
}
.sc-wordform-built-upload-element {
	/*display: none;*/
	/*visibility: hidden;*/
	opacity: 0;
	height: 1%;
}
.wordform-file-upload-label-wrapper {
	cursor: pointer;
}
.wordform-frontend-fileupload-icon {
	font-size: 30px;
	color: rgb(34, 113, 177);
	padding-right: 10px;
}
.sc-wordform-built-upload-element-label-wrapper {
	margin-bottom: 2%;
}

.sc-wordform-built-range-wrapper {
	position: relative;
	margin-right: 20px;
} 
.wordform-range-element-selected-value {
	position: absolute;
	top: 45%;
}

/* Block Editor */
/*.sc-wordform-block-editor-div-wrapper {
	max-width: 100% !important;
}*/
select.sc-wordform-block-editor-form-selector-select {
	margin-left: 20%;
	width: 100%;
	height: 40px;
	background-color: aliceblue;
}

.sc-wordform-built-date-element {
	cursor: pointer;
}

/* Start front-end datepicker calendar icon */
.sc-wordform-built-date-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}
.sc-wordform-built-date-wrapper input.sc-wordform-built-date-element {
  width: 100%;
  padding-right: 36px; /* space for the icon */
  box-sizing: border-box;
}
.sc-wordform-built-date-wrapper .sc-wordform-built-date-element-input-icon {
  position: absolute;
  right: 10px;
  top: 60%;
  transform: translateY(-50%);
  pointer-events: none; /* so clicks go to input */
  cursor: pointer;
  color: #555;
  transition: color 0.2s ease;
}
.sc-wordform-built-date-wrapper .sc-wordform-built-date-element-input-icon:hover {
  color: #008080; /* WordPress admin teal accent on hover */
}
.sc-wordform-built-date-wrapper .sc-wordform-built-date-element-input-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}
/* End front-end datepicker calendar icon */


/* Start Input Textarea Placeholder text */

/* Apply to both input & textarea inside wrapper */
.sc-wordform-built-form-frontend-outermost-div-wrapper input,
.sc-wordform-built-form-frontend-outermost-div-wrapper textarea {
	padding-left: 10px; 
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* clean modern font */
	transition: all 0.3s ease;
}

/* Default placeholder (cross-browser) */
.sc-wordform-built-form-frontend-outermost-div-wrapper input::placeholder,
.sc-wordform-built-form-frontend-outermost-div-wrapper textarea::placeholder {
	color: #777;
	opacity: 1;
	text-indent: 0;
	transition: all 0.4s ease;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* On focus: fade + slide placeholder */
.sc-wordform-built-form-frontend-outermost-div-wrapper input:focus::placeholder,
.sc-wordform-built-form-frontend-outermost-div-wrapper textarea:focus::placeholder {
	opacity: 0.4;
	text-indent: 10px;
}

/* Legacy browser placeholder support */
.sc-wordform-built-form-frontend-outermost-div-wrapper input::-webkit-input-placeholder,
.sc-wordform-built-form-frontend-outermost-div-wrapper textarea::-webkit-input-placeholder {
	color: #777;
}
.sc-wordform-built-form-frontend-outermost-div-wrapper input:-ms-input-placeholder,
.sc-wordform-built-form-frontend-outermost-div-wrapper textarea:-ms-input-placeholder {
	color: #777;
}
.sc-wordform-built-form-frontend-outermost-div-wrapper input::-ms-input-placeholder,
.sc-wordform-built-form-frontend-outermost-div-wrapper textarea::-ms-input-placeholder {
	color: #777;
}
/* End Input Textarea Placeholder text */

/* Start Preview & Test Page */
.wordform-preview-n-test-form-wrapper {
    /*transition: width 0.5s ease, margin 0.5s ease;*/
	transition: width 0.5s ease, margin 0.5s ease, transform 0.3s ease;
    max-width: 100%;
    box-sizing: border-box; /* keep padding/margin consistent */
}
.wordform-preview-n-test-form-wrapper.resizing {
    transform: scale(1.02);
}
.wordform-responsive-toolbar {
    position: fixed;
    top: 75px;
    right: 75px;
    z-index: 9999;
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.95);
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.wordform-responsive-toolbar .res-btn {
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 5px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
	position: relative;
}
.wordform-responsive-toolbar .res-btn:hover {
    background: #005a87;
    transform: scale(1.1);
}
/* Custom tooltip */
.wordform-responsive-toolbar .res-btn:hover::after {
    content: attr(title);
    position: absolute;
    top: -35px;
    right: 50%;
    transform: translateX(50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.2s ease;
    z-index: 10000;
}

.wordform-responsive-toolbar .res-btn.active {
    background: #ff9800;        /* highlight color */
    color: #fff;
    transform: scale(1.15);      /* slightly bigger to emphasize */
    box-shadow: 0 4px 12px rgba(255,152,0,0.35);
}

/* End Preview & Test Page */

@media (max-width:801px) {

	.wordform-preview-n-test-form-wrapper {
		width: 100%;
		margin: 2% auto;
	}

	.sc-wordform-built-form-frontend-outermost-div-wrapper .button-primary {
		margin-top: 5%;
	}

	.sc-wordform-built-form-frontend-outermost-div-wrapper form {
		width: auto;
		margin: 0 5%;
	}
	.sc-wordform-built-form-frontend-outermost-div-wrapper form.small {
		width: 50%;
		margin: 0 auto;
	}
	.sc-wordform-built-form-frontend-outermost-div-wrapper form.medium {
		width: 70%;
		margin: 0 auto;
	}
	.sc-wordform-built-form-frontend-outermost-div-wrapper form.large {
		width: 90%;
		margin: 0 auto;
	}

}