/*
 * RSGT Elementor Addons - Global Styles & Utilities
 * ===================================================
 *
 * This file contains global utility classes, component overrides, and custom styles
 * that load after all other CSS to ensure proper cascading and overrides.
 *
 * Purpose: Provide consistent styling across the site, override Elementor defaults,
 * and add custom component behaviors for RSGT website.
 *
 * Loading Priority: High (999) - loads after all other CSS files
 * Version: 2.15.1
 */

/*
 * GLOBAL PAGE STYLES
 * ==================
 * Basic page-level styling and layout fixes
 */
html, body{
	overflow-x: hidden;
}
/*
 * SERVICE BOX COMPONENT
 * =====================
 * Animated service boxes with hover effects and floating icons
 */
.service-box{
	transition: transform 0.3s ease;
	position: relative;
}

.service-box:hover{
	transform: translateY(-20px);
}

.service-icon{
	display: none;
	position: absolute;
	top: -30px;
	left: 50%;
	transform: translate(-50%, -50%);
}

.service-box:hover .service-icon {
	display: block;
}

/*
 * QUICK FACTS COMPONENT
 * =====================
 * Styling for quick facts boxes with outlined icons
 */
.quick-facts-box .elementor-icon{
	outline: 1px solid rgba(255,255,255,0.9); /* White outline around icons */
	outline-offset: 20px; /* Space between icon and outline */
}

/*
 * UTILITY CLASSES
 * ===============
 * Reusable utility classes for common styling needs
 */
.text-center{
	text-align: center;
}

.line-height-0{
	line-height: 0;
}

/*
 * ELEMENTOR OFF-CANVAS OVERRIDES
 * ==============================
 * Custom styling for Elementor off-canvas panels and social icons
 */
.e-off-canvas__content .elementor-widget-social-icons .elementor-grid{
	display: flex !important;
}

/* Change social icon colors to dark theme on hover */
.e-off-canvas__content .elementor-social-icon:hover svg path,
.e-off-canvas__content .elementor-icon:hover svg path,
.hover-dark-icon .elementor-icon:hover svg path,
.hover-dark-icon .elementor-social-icon:hover svg path {
	fill: #172136;
}

/*
 * BUTTON AND ICON UTILITIES
 * ========================
 */
.explore-button .elementor-button-icon svg{
	width: auto;
}

.minus-1-index{
	z-index: -1;
	pointer-events: none;
}
/*
 * ELEMENTOR POPUP MODAL CUSTOMIZATION
 * ===================================
 * Custom styling for Elementor popup modals and close buttons
 */
.elementor-popup-modal .dialog-close-button{
	padding: 6px;
	border-radius: 100px;
}

.elementor-popup-modal .dialog-close-button svg {
	fill: #fff;
}

/*
 * POPUP CONTENT TYPOGRAPHY
 * =======================
 * Typography overrides for popup content elements
 */
.popup-designation{
	color: var(--e-global-color-secondary);
	line-height: normal;
	font-size: 17px !important;
	margin-block-end: 20px;
}

.popup-title {
	font-size: 20px !important;
	margin: 0 0 5px;
	line-height: normal;
}

/*
 * BACKGROUND EFFECTS
 * =================
 * Background blur and overlay effects
 */
.bg-filter{
	filter: blur(100px);
	opacity: 0.3;
}

/*
 * JOURNEY TIMELINE COMPONENTS
 * ===========================
 * Custom styling for journey/roadmap sections
 */
.our-journey-mobile .elementor-slide-heading{
	border: 1px solid #91DCD5;
	background: #91DCD51A;
	border-radius: 80px;
	padding: 8px 16px;
	display: inline-block;
	margin-top: 0;
}

/* Journey listing typography and spacing */
.journey-listing ul {
	padding-left: 20px;
}

.journey-listing ul li{
	margin-bottom: 4px;
}

.journey-listing ul li:last-child{
	margin-bottom: 0;
}


/*
 * RESPONSIVE DESIGN - TABLET AND MOBILE
 * ====================================
 * Media queries for tablet and mobile breakpoints
 */

/* Tablet styles (1024px and below) */
@media only screen and (max-width: 1023px) {
	.footer-menu .elementor-nav-menu__align-start .elementor-nav-menu {
		justify-content: center;
	}
}

/* Mobile styles (767px and below) */
@media only screen and (max-width: 767px) {
	.footer-menu .elementor-nav-menu__align-start .elementor-nav-menu {
		flex-direction: column;
		margin: 0 auto;
		gap: 24px;
	}

	.footer-menu .elementor-nav-menu--layout-horizontal .elementor-nav-menu::after{
		display: none;
	}

	.footer-menu .elementor-nav-menu--layout-horizontal .elementor-nav-menu > li a{
		justify-content: center;
		display: inline-flex;
		padding: 0 !important;
	}

	.footer-menu .elementor-nav-menu--layout-horizontal .elementor-nav-menu > li::after {
		display: none;
	}
}

/*
 * E-PORTAL CARD COMPONENT
 * =======================
 * Animated expandable cards with slide-down effect
 */
.eportal-card-bottom1{
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.3s ease;
	height: 0;
}

.e-portal-card-title::after {
	content: "";
	display: block;
	width: 60px;
	height: 4px;
	background: #ffffff;
	margin-top: 8px;
	border-radius: 2px;
}

.e-portal-card:hover .eportal-card-bottom1{
	transform: scaleY(1);
	height: auto;
}

/*
 * CAROUSEL CUSTOMIZATION
 * =====================
 * Custom styling for Elementor carousels and navigation
 */
.elementor-widget-n-carousel .swiper-pagination-bullet{
	border: 2px solid #172136;
}

/* Mobile responsive: show expanded cards by default */
@media screen and (max-width: 1024px) {
	.e-portal-card .eportal-card-bottom1{
		transform: scaleY(1);
		height: auto;
	}
}
/*
 * VIDEO AND MEDIA ELEMENTS
 * ========================
 * Custom styling for video backgrounds and media elements
 */
.elementor-background-video-hosted {
	object-fit: cover;
	preload: metadata !important;
}

/*
 * BUTTON COMPONENTS
 * ================
 * Custom button styling for specific use cases
 */
button.desktop-app-btn {
	width: 100%;
	border: unset;
	margin-top: 10px;
}

/*
 * SWIPER CAROUSEL FIXES
 * =====================
 * Commented out: Position fixes for swiper wrapper (uncomment if needed)
 */
/* .swiper-wrapper{
	transform: translate3d(90.6px, 0px, 0px);
} */

/*
 * THIRD-PARTY PLUGIN OVERRIDES
 * ============================
 * Overrides for external plugins (Complianz GDPR, etc.)
 */
#cmplz-manage-consent .cmplz-manage-consent{
	color: var(--cmplz_banner_background_color) !important;
}

/*
 * FORM STYLING - AUTOFILL OVERRIDES
 * =================================
 * Custom styling for webkit autofill in form inputs
 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #172136 inset !important;
	-webkit-text-fill-color: #ffffff !important;
}
/*
 * CONTACT FORM 7 - GLASSMORPHISM DESIGN SYSTEM
 * =============================================
 * Modern glassmorphism styling for Contact Form 7 messages and validation
 * Features: Backdrop blur, gradient backgrounds, smooth animations
 * Color Scheme: #172136 (Primary Dark) | #8DD8F4 (Accent Blue)
 */

/* ===== BASE RESPONSE MESSAGE STYLING ===== */
.wpcf7-response-output {
    margin: 24px 0 0;
    padding: 20px 22px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(141, 216, 244, 0.35);
    background: rgba(23, 33, 54, 0.55);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    color: #e6f6fc;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    animation: rsgt-fade-in 0.35s ease-out;
}

/* ===== SUCCESS MESSAGE STYLING ===== */
.wpcf7-mail-sent-ok,
.wpcf7-response-output.wpcf7-mail-sent-ok {
	border-color: rgba(141, 216, 244, 0.6);
	background: linear-gradient(
		135deg,
		rgba(23, 33, 54, 0.65),
		rgba(141, 216, 244, 0.18)
	);
	color: #eaf9ff;
}

.wpcf7-mail-sent-ok::before {
	content: "✔";
	font-size: 18px;
	font-weight: 700;
	color: #8DD8F4;
}

/* ===== ERROR MESSAGE STYLING ===== */
.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-mail-failed {
	border-color: rgba(248, 113, 113, 0.55);
	background: linear-gradient(
		135deg,
		rgba(23, 33, 54, 0.7),
		rgba(248, 113, 113, 0.18)
	);
	color: #ffecec;
}

.wpcf7-validation-errors::before,
.wpcf7-mail-failed::before {
	content: "⚠";
	font-size: 18px;
	font-weight: 700;
	color: #f87171;
}

/* ===== FIELD VALIDATION TOOLTIPS ===== */
.wpcf7-not-valid-tip {
	color: #dc3232;
	;
	margin-top: 2px;
}

/* ===== INVALID INPUT FIELD HIGHLIGHTING ===== */
.wpcf7-not-valid {
    border-color: #dc3232 !important;
    background-color: rgba(23, 33, 54, 0.65) !important;
    color: #ffffff;
}

.wpcf7-spinner{
opacity: 0.75;
margin: 0px 24px 0 -33px; vertical-align: text-bottom;}

/*
 * ANIMATIONS & TRANSITIONS
 * ========================
 * Custom keyframe animations for smooth UI interactions
 */
@keyframes rsgt-fade-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/*
 * END OF FILE
 * ===========
 * This file loads after all other CSS with high priority (999)
 * to ensure these styles take precedence when needed.
 */