/* Body blur when active */
body.dac-popup-active {
    overflow: hidden;
}
	
/* Two column form only inside popup */
#dac-defence-popup .dac-course-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Make specific fields full width */
#dac-defence-popup .dac-course-form .dac-full,
#dac-defence-popup .dac-course-form button,
#dac-defence-popup .dac-success-message {
    grid-column: 1 / -1;
}

#dac-defence-popup input,
#dac-defence-popup select,
#dac-defence-popup textarea {
    border-radius: 6px;
	border: 1px solid #ddd;
	background: #fafafa;
	padding: 6px 8px;
    font-size: 14px;
}

#dac-defence-popup input:focus,
#dac-defence-popup select:focus,
#dac-defence-popup textarea:focus {
    border-color: #B11226;
    background: #fff;
    outline: none;
}
	
#dac-defence-popup textarea {
    min-height: 80px;
    resize: none;
}

/* Overlay */
#dac-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 9998;

    align-items: center;
    justify-content: center;
}

#dac-defence-popup button {
    background: #B11226;
    color: #fff;
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(177,18,38,0.25);
}

#dac-defence-popup button:hover {
    background: #8E0E1C;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(177,18,38,0.35);
}

/* Popup container */
#dac-defence-popup {
	position: relative;
    width: 760px;
    max-width: 94%;
	background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
	border: 1px solid #eee;
    
    display: flex;
    flex-direction: row;
}

#dac-defence-popup {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

#dac-defence-popup:hover {
    box-shadow: 0 35px 90px rgba(0,0,0,0.28);
}

body.dac-popup-active #dac-defence-popup {
    opacity: 1;
    transform: translateY(0);
}

#dac-defence-popup::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, #B11226, #D94F5C);
}

.select2-dropdown {
    z-index: 10000 !important;
}
	
#dac-defence-popup .dac-field {
    margin-bottom: 8px;
}

#dac-defence-popup input,
#dac-defence-popup select {
    padding: 8px 10px;
}

#dac-defence-popup textarea {
    min-height: 70px;
}


/* LEFT IMAGE */
.dac-popup-left {
    flex: 1;
    min-height: 360px;
    position: relative;
	background: url('https://deltadefenceacademy.com/wp-content/uploads/2026/02/Delta-Defence-Academy-Dehradun-Pop-up-Banner.webp') center/cover no-repeat;
	border-radius: 18px 0 0 18px;
    overflow: hidden;
	
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 80px;
}

@media (max-width: 768px){

    .dac-popup-left {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 0;
    }

    .dac-popup-call {
        width: 75%;
		font-size: 13px;
        padding: 8px;
        margin: auto;
    }
	
	.dac-call-btn {
       bottom: 12px;
       width: 85%;
       font-size: 14px;
       padding: 10px;
    }

}	

.dac-popup-call {
    position: absolute;
    z-index: 5;
    width: 70%;
    padding: 8px 10px;
    font-size: 14px;
    text-align: center;
    display: block;
    margin: auto;
}

/* Fade effect into right section */
.dac-popup-left::after {
    display: none !important;
}

/* RIGHT SIDE GLASS EFFECT */
.dac-popup-right {
    flex: 1;
    padding: 22px 24px;
    color: #222;
    background: #ffffff;
    border-radius: 0 18px 18px 0;
    position: relative;
}

/* Headline */
.dac-popup-right h2 {
    font-size: 20px;
    font-weight: 800;
    color: #B11226;
    line-height: 18px;
}

.dac-popup-left {
    overflow: hidden; /* keep for image */
}

.dac-popup-right {
    overflow: visible; /* MUST be visible for dropdown */
}

.dac-popup-left {
    position: relative;
    z-index: 1;
}

.dac-popup-left {
    border-radius: 18px 0 0 18px;
    overflow: hidden;
}

.dac-popup-right {
    border-radius: 0 18px 18px 0;
	overflow: visible;
}

.dac-popup-right {
    position: relative;
    z-index: 10;
}

@media (max-width: 768px){

    .dac-popup-left {
        border-radius: 18px 18px 0 0;
    }

    .dac-popup-right {
		padding: 16px;
        border-radius: 0 0 18px 18px;
    }

}
	
/* Close */
.dac-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 50;
}

.dac-popup-close:hover {
    background: #B11226;
    color: #fff;
    transform: rotate(90deg);
}

/* Subtext */
.dac-popup-sub {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 1;
	color: #555;
	line-height: 18px;
}

/* Trust line */
.dac-popup-trust {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

/* Mobile Slide-Up */
@media (max-width: 768px){

    #dac-defence-popup {
        width: 92%;
        border-radius: 16px;
        flex-direction: column;
        max-height: 85vh;
    }

    .dac-popup-left {
        height: 90px;
        min-height: 90px;
    }

    #dac-defence-popup .dac-course-form {
        display: block;
    }

}

#dac-defence-popup select {
    width: 100%;
    position: relative;
	z-index: 30;
}

#dac-defence-popup .dac-course-form {
    position: relative;
    z-index: 20;
}

#dac-defence-popup label {
    display: none;
}

@media (max-width: 768px){

    .dac-popup-right h2 {
        font-size: 17px;
        line-height: 1.2;
        margin-bottom: 5px;
    }

    .dac-popup-sub {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

}

.dac-trust-icons {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #666;
    margin: 6px 0 12px;
    flex-wrap: wrap;
}

.dac-trust-icons span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Hide floating elements when popup active */
body.dac-popup-active .foundation-wrapper,
body.dac-popup-active .admission-strip {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}