/* ── Appstechy Smart Button Styles ── */

.appstechy-smart-button-wrapper {
    width: 100%;
    display: block;
    box-sizing: border-box;
}

/* Base style for the button link */
.appstechy-smart-button {
    width: 130px;
    height: 40px;
    line-height: 40px;
    color: #ffffff;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    background: linear-gradient(144deg, #0176ab 0%, #575756 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5),
                7px 7px 20px 0px rgba(0,0,0,.1),
                4px 4px 5px 0px rgba(0,0,0,.1);
    outline: none;
    border: none;
    text-decoration: none !important;
    text-align: center;
    box-sizing: border-box;
    overflow: visible; /* Allows the border highlight box shadow to be visible */
}

/* Inner wrappers for draw borders */
.appstechy-smart-button > span {
    display: block;
    width: 100%;
    height: 100%;
}

.appstechy-smart-button span span {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Pseudo drawing border lines - right and bottom */
.appstechy-smart-button:before,
.appstechy-smart-button:after {
    position: absolute;
    content: "";
    right: 0;
    bottom: 0;
    background: #0176ab;
    box-shadow: -7px -7px 20px 0px rgba(255,255,255,.9),
                -4px -4px 5px 0px rgba(255,255,255,.9),
                7px 7px 20px 0px rgba(0,0,0,.2),
                4px 4px 5px 0px rgba(0,0,0,.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.appstechy-smart-button:before {
    height: 0%;
    width: 2px;
}

.appstechy-smart-button:after {
    width: 0%;
    height: 2px;
}

/* Pseudo drawing border lines - left and top */
.appstechy-smart-button span span:before,
.appstechy-smart-button span span:after {
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    background: #0176ab;
    box-shadow: -7px -7px 20px 0px rgba(255,255,255,.9),
                -4px -4px 5px 0px rgba(255,255,255,.9),
                7px 7px 20px 0px rgba(0,0,0,.2),
                4px 4px 5px 0px rgba(0,0,0,.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.appstechy-smart-button span span:before {
    width: 2px;
    height: 0%;
}

.appstechy-smart-button span span:after {
    height: 2px;
    width: 0%;
}

/* ── Hover States ── */
.appstechy-smart-button:hover {
    color: #0176ab;
    background: #ffffff !important;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.appstechy-smart-button:hover:before {
    height: 100%;
}

.appstechy-smart-button:hover:after {
    width: 100%;
}

.appstechy-smart-button:hover span span:before {
    height: 100%;
}

.appstechy-smart-button:hover span span:after {
    width: 100%;
}

/* ── CUSTOM POPUP MODAL STYLES ── */
.appstechy-custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.3s step-end;
}

.appstechy-custom-modal.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 99999;
    pointer-events: auto;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s;
}

.appstechy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
}

.appstechy-modal-container {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 800px;
    max-width: 90%;
    overflow: hidden;
    z-index: 10;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.appstechy-custom-modal.is-active .appstechy-modal-container {
    transform: scale(1);
}

.appstechy-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 12;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #333333;
}

.appstechy-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.appstechy-modal-content {
    padding: 0;
    width: 100%;
    height: 450px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

.appstechy-modal-logo {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    flex: 0 0 auto;
    padding-top: 20px;
}

.appstechy-modal-logo img {
    height: auto;
    max-width: 150px;
    display: inline-block;
}

.appstechy-modal-content iframe {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    border: none;
}

.appstechy-modal-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #777777;
    font-family: sans-serif;
    font-size: 15px;
    flex: 1;
}




/* ─────────────────────────────────────────────────────────────────────────────
   5. POPUP MODAL STYLES (WPFORMS INTEGRATION)
   ───────────────────────────────────────────────────────────────────────────── */

/* Base Custom Modal overlay/container (fallback if smart-button.css not loaded) */
.appstechy-custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.3s step-end;
}

.appstechy-custom-modal.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 99999;
    pointer-events: auto;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s;
}

.appstechy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.appstechy-modal-container.hero-popup-container {
    position: relative;
    border-radius: 12px;
    width: 890px !important;
    max-width: 92%;
    overflow: hidden;
    z-index: 10;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.appstechy-custom-modal.is-active .hero-popup-container {
    transform: scale(1);
}

/* Modal Close Button */
.hero-popup-container .appstechy-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    cursor: pointer;
    z-index: 15;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #ffffff !important;
}

.hero-popup-container .appstechy-modal-close:hover, 
.hero-popup-container .appstechy-modal-close:focus {
    background: transparent !important;
}

/* Content Layout (Two Columns) */
.hero-popup-content-wrapper {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	min-height: 508px;
	padding: 40px 20px 20px;
	background: #0176ab;
}

/* Left Panel */
.hero-popup-left-panel {
    position: relative;
    flex: 0 0 50%;
    max-width: 50%;
    color: #ffffff;
    padding: 0;
    overflow: hidden;
}
.hero-popup-left-panel .hero-popup-title {
	font-size: 28px;
	line-height: 36px;
	font-weight: 600;
	font-family: "Montserrat", sans-serif;
	color: #fff;
	margin: 0 0 20px;
    letter-spacing: normal;
    text-align: center;
}

/* Subtle circuit background lines styling */
.hero-popup-left-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
                      radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.hero-popup-left-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-popup-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.hero-popup-image-wrap {
	max-width: 415px;
	margin: 0;
}

.hero-popup-image-wrap img {
	width: 400px;
	height: 300px;
	display: block;
	margin: 0 auto;
}



/* Right Panel (Form Area) */
.hero-popup-right-panel {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 600px;
    overflow-y: auto;
}

.appstechy-popup-form {
    width: 100%;
}

.appstechy-popup-form .no-form-selected {
    text-align: center;
    color: #888888;
    padding: 40px 0;
}

/* WPForms custom styling inside popup */
.appstechy-popup-form .wpforms-container {
    margin: 0;
    padding: 0;
}

.appstechy-popup-form .wpforms-form {
    margin: 0;
}

/* Grid layout for WPForms fields (Desktop) */
.appstechy-popup-form .wpforms-field-container {
    
    row-gap: 15px;
}

/* Default full-width elements */
.appstechy-popup-form .wpforms-field {
    grid-column: span 2; 
    padding: 0 !important;
    margin: 0 !important;
}

/* Make typical input fields 1-column on desktop if side-by-side matches */
.appstechy-popup-form .wpforms-field.wpforms-field-text,
.appstechy-popup-form .wpforms-field.wpforms-field-email,
.appstechy-popup-form .wpforms-field.wpforms-field-phone {
    grid-column: span 1;
}

/* If a field contains first/last name subfields inside the name component */
.appstechy-popup-form .wpforms-field-name {
    grid-column: span 2;
}
.appstechy-popup-form .wpforms-field-name .wpforms-field-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
}
.appstechy-popup-form .wpforms-field-name .wpforms-field-row-block {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure textarea, radio, select and checkbox fields are always full width */
.appstechy-popup-form .wpforms-field.wpforms-field-textarea,
.appstechy-popup-form .wpforms-field.wpforms-field-radio,
.appstechy-popup-form .wpforms-field.wpforms-field-checkbox,
.appstechy-popup-form .wpforms-field.wpforms-field-select,
.appstechy-popup-form .wpforms-field.wpforms-field-html {
    grid-column: span 2;
}

/* Input styles */
.appstechy-popup-form .wpforms-field input[type="text"],
.appstechy-popup-form .wpforms-field input[type="email"],
.appstechy-popup-form .wpforms-field input[type="tel"],
.appstechy-popup-form .wpforms-field input[type="number"],
.appstechy-popup-form .wpforms-field textarea,
.appstechy-popup-form .wpforms-field select {
    width: 100% !important;
    max-width: 100% !important;
    background-color: #f7fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: #2d3748 !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    height: auto !important;
}

.appstechy-popup-form .wpforms-field input:focus,
.appstechy-popup-form .wpforms-field textarea:focus,
.appstechy-popup-form .wpforms-field select:focus {
    border-color: #0176ab !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(1, 118, 171, 0.15) !important;
}

/* Textarea height */
.appstechy-popup-form .wpforms-field textarea {
    min-height: 100px !important;
    resize: vertical;
}

/* Field label styles */
.appstechy-popup-form .wpforms-field-label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #4a5568 !important;
    margin-bottom: 6px !important;
}

/* Sublabels helper */
.appstechy-popup-form .wpforms-field-sublabel {
    display: none !important; /* Hide sublabels like "First", "Last" to match simple UI in screenshot */
}

/* Radio button styles */
.appstechy-popup-form .wpforms-field-radio ul,
.appstechy-popup-form .wpforms-field-checkbox ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 5px 0 0 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.appstechy-popup-form .wpforms-field-radio li,
.appstechy-popup-form .wpforms-field-checkbox li {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 14px !important;
    color: #4a5568 !important;
    cursor: pointer;
}

.appstechy-popup-form .wpforms-field-radio input,
.appstechy-popup-form .wpforms-field-checkbox input {
    margin: 0 6px 0 0 !important;
    cursor: pointer;
    width: auto !important;
}

/* Submit container */
.appstechy-popup-form .wpforms-submit-container {
    grid-column: span 2;
    margin-top: 10px !important;
    padding: 0 !important;
    text-align: right;
}

/* Submit button styling */
.appstechy-popup-form button[type="submit"].wpforms-submit,
.appstechy-popup-form .wpforms-submit {
    background: linear-gradient(135deg, #00d2ff 0%, #0176ab 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 12px 35px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(1, 118, 171, 0.25) !important;
    display: inline-block !important;
    outline: none !important;
    width: auto !important;
}

.appstechy-popup-form button[type="submit"].wpforms-submit:hover,
.appstechy-popup-form .wpforms-submit:hover {
    background: linear-gradient(135deg, #00c0ec 0%, #006897 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(1, 118, 171, 0.35) !important;
}

.wpforms-container .wpforms-form .wpforms-field.wpforms-field-name .wpforms-field-row {
	container-type: inherit !important;
	container-name: inherit !important;
	margin: 0 -10px;
	max-width: inherit;
	gap: 0;
}
.wpforms-container .wpforms-form .wpforms-field.wpforms-field-name .wpforms-field-row .wpforms-field-row-block {
	width: auto;
	max-width: 50%;
	flex: 0 0 50%;
	padding: 0 10px !important;
}
.wpforms-container .wpforms-field {
	margin: 0 0 30px !important;
}
.wpforms-container .wpforms-field .wpforms-field {
	margin: 0 !important;
}
.appstechy-popup-form .wpforms-field input[type="text"], 
.appstechy-popup-form .wpforms-field input[type="email"], 
.appstechy-popup-form .wpforms-field input[type="tel"], 
.appstechy-popup-form .wpforms-field textarea {
	font-family: "Montserrat", Sans-serif !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	color: #242424 !important;
	border-style: solid !important;
	border-width: 1px 1px 1px 1px !important;
	border-color: #e8e8e8 !important;
    padding: 0 20px !important;
    border-radius: 4px 4px 4px 4px !important;
    min-height: 43px;
}
.appstechy-popup-form .wpforms-field .wpforms-field-label {
	font-size: 16px !important;
	line-height: 19px !important;
	color: #fff !important;
	margin: 0 0 15px !important;
}
.wpforms-container .wpforms-field #wpforms-262-field_8 {
	gap: 0 !important;
}
.wpforms-container .wpforms-field #wpforms-262-field_8 .wpforms-field-label-inline {
	font-size: 14px;
	line-height: 18px;
	color: #fff;
	padding: 0;
}
.wpforms-container .wpforms-field .depth-1 {
	max-width: 25%;
	flex: 0 0 25%;
}
.appstechy-popup-form .wpforms-field textarea {
	padding: 20px !important;
	height: 120px !important;
}
.appstechy-popup-form .wpforms-submit-container {
	text-align: center;
}
.appstechy-popup-form button[type="submit"].wpforms-submit, .appstechy-popup-form .wpforms-submit {
	background: linear-gradient(90deg, rgba(5,120,172,1) 0%, rgba(255,255,255,1) 100%) !important;
	width: 130px !important;
	height: 40px;
	border-radius: 0 !important;
	padding: 0 !important;
	font-size: 14px !important;
	line-height: 14px !important;
	font-family: "Montserrat", Sans-serif !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
}
.appstechy-popup-form button[type="submit"].wpforms-submit:hover, .appstechy-popup-form .wpforms-submit:hover {
    background: #fff !important;
    color: rgba(5,120,172,1) !important;
}
.appstechy-popup-form button[type="submit"].wpforms-submit::before, 
.appstechy-popup-form button[type="submit"].wpforms-submit::after {
	position: absolute;
	content: "";
	right: 0;
	bottom: 0;
	background: #0176ab !important;
	box-shadow: -7px -7px 20px 0px rgba(255,255,255,.9), -4px -4px 5px 0px rgba(255,255,255,.9), 7px 7px 20px 0px rgba(0,0,0,.2), 4px 4px 5px 0px rgba(0,0,0,.3);
	transition: all 0.3s ease;
}
.appstechy-popup-form button[type="submit"].wpforms-submit::after {
	width: 0%;
	height: 2px;
}
.appstechy-popup-form button[type="submit"].wpforms-submit::before {
	height: 0%;
	width: 2px;
}
.appstechy-popup-form button[type="submit"].wpforms-submit:hover::after {
    width: 100%;
}
.appstechy-popup-form button[type="submit"].wpforms-submit:hover::before {
    height: 100%;
}


.audit-form-wrapper .wpforms-container .wpforms-form .wpforms-field.wpforms-field-name .wpforms-field-row .wpforms-field-row-block {	
	max-width: 100%;
	flex: 0 0 100%;
}
.audit-form-wrapper .wpforms-container .wpforms-field {
	margin: 0 !important;
	padding: 0;
}
.audit-form-wrapper div.wpforms-container .wpforms-form .wpforms-field-layout .wpforms-field-layout-columns {
	flex-wrap: wrap;
}
.audit-form-wrapper div.wpforms-container .wpforms-form .wpforms-field-layout .wpforms-layout-column-50 {
	width: 100%;
}
.audit-form-wrapper .wpforms-container input.wpforms-field-medium {
    max-width: 100%;
}
.audit-form-wrapper div.wpforms-container-full input, 
.audit-form-wrapper div.wpforms-container-full .wpforms-form .iti--allow-dropdown {
    margin-bottom: 15px !important;
}
.audit-form-wrapper div.wpforms-container-full button[type="submit"] {
	width: 100%;
	background: linear-gradient(144deg, #0176ab 0%, #575756 100%) !important;
	text-transform: uppercase;
}
.audit-form-wrapper div.wpforms-container-full button[type="submit"]::after {
    display: none;
}

div.wpforms-container-full input[type="checkbox"]::before, 
div.wpforms-container-full input[type="radio"]::before {
	border-color: rgba(0, 0, 0, 0.25);
	border-width: 1px;
	border-style: solid;
	background-color: #fff;
	background-image: none;
	border-radius: 3px;
}
div.wpforms-container-full input[type="checkbox"]::before, 
div.wpforms-container-full input[type="checkbox"]::after, 
div.wpforms-container-full input[type="radio"]::before, 
div.wpforms-container-full input[type="radio"]::after {
	content: '';
	position: absolute;
	left: -2px;
	top: -2px;
	width: 16px;
	height: 16px;
	box-sizing: content-box;
	cursor: pointer;
}
div.wpforms-container-full input[type="radio"] {
	background: #fff !important;
}












/* ─────────────────────────────────────────────────────────────────────────────
   6. RESPONSIVENESS FOR POPUP MODALS
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .appstechy-modal-container.hero-popup-container {
        width: 95% !important;
        max-width: 768px;
    }
}

@media (max-width: 767px) {
    .hero-popup-content-wrapper {
        flex-direction: column;
    }
    
    .hero-popup-left-panel {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .hero-popup-right-panel {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
        max-height: inherit;
        overflow: inherit;
        margin: 30px 0 0;
    }
    
    .hero-popup-container .appstechy-modal-close {
        top: 0; 
        right: 0;
        background: transparent;
        color: #333333;
    }
    .hero-popup-container .appstechy-modal-close svg {
        stroke: currentColor;
    }
    
    .appstechy-popup-form .wpforms-field.wpforms-field-text,
    .appstechy-popup-form .wpforms-field.wpforms-field-email,
    .appstechy-popup-form .wpforms-field.wpforms-field-phone {
        grid-column: span 2;
    }

    .hero-popup-image-wrap img {
        width: 200px;
        height: auto;
    }
    div.wpforms-container-full, 
    div.wpforms-container-full * {
        width: 100%;
    }   
    .wpforms-container .wpforms-form .wpforms-field.wpforms-field-name .wpforms-field-row {
        margin: 0;
    }
    .wpforms-container .wpforms-form .wpforms-field.wpforms-field-name .wpforms-field-row .wpforms-field-row-block {        
        max-width: 100%;
        flex: 0 0 100%;
        padding: 0 !important;
        margin: 0 0 15px !important;
    }
    .wpforms-container .wpforms-field {
        margin: 0 !important;
    }
    div.wpforms-container .wpforms-form .wpforms-field-layout .wpforms-layout-column {        
        margin: 0 0 15px !important;
    }
    .wpforms-container .wpforms-field #wpforms-262-field_8 {        
        margin: 0 0 15px !important;
    }
    .appstechy-popup-form .wpforms-submit-container {
        margin-top: 15px !important;
    }
    .appstechy-popup-form .wpforms-form {        
        height: 250px;
        overflow-y: auto;
    }

}