/* === Anigdha Ausbildung — Query Popup (lead capture) === */

/* ═══════════════════════════════════════
   OVERLAY — dark semi-transparent backdrop
   ═══════════════════════════════════════ */
.query-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, .20);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.query-popup-overlay.is-visible {
    display: flex;
}

/* ═══════════════════════════════════════
   POPUP CARD
   ═══════════════════════════════════════ */
.query-popup-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .22);
    animation: popupSlideIn .35s ease;
}

@keyframes popupSlideIn {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════════════
   CLOSE BUTTON
   ═══════════════════════════════════════ */
.query-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background .2s;
}
.query-popup-close i {
    font-size: 16px;
    color: #fff;
}
.query-popup-close:hover {
    background: rgba(255, 255, 255, .3);
}

/* ═══════════════════════════════════════
   HEADER (dark strip)
   ═══════════════════════════════════════ */
.query-popup-header {
    background: #1A1A1A;
    padding: 30px 32px 24px;
}

/* ═══════════════════════════════════════
   BODY (white, form area)
   ═══════════════════════════════════════ */
.query-popup-body {
    padding: 28px 32px 32px;
}

/* ═══════════════════════════════════════
   CF7 FORM STYLING (inside popup)
   ═══════════════════════════════════════ */
.query-popup-form .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.query-popup-form .wpcf7 label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 6px;
}

.query-popup-form .wpcf7 input[type="text"],
.query-popup-form .wpcf7 input[type="email"],
.query-popup-form .wpcf7 input[type="tel"],
.query-popup-form .wpcf7 input[type="url"],
.query-popup-form .wpcf7 input[type="number"] {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    border: 1px solid #E8E8E8;
    background: #F8F9FA;
    padding: 0 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px;
    color: #1A1A1A;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

.query-popup-form .wpcf7 input[type="text"]:focus,
.query-popup-form .wpcf7 input[type="email"]:focus,
.query-popup-form .wpcf7 input[type="tel"]:focus {
    border-color: #DD0000;
}

.query-popup-form .wpcf7 select {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    border: 1px solid #E8E8E8;
    background: #F8F9FA;
    padding: 0 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px;
    color: #1A1A1A;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A8A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    cursor: pointer;
    box-sizing: border-box;
}

.query-popup-form .wpcf7 textarea {
    width: 100%;
    height: 90px;
    border-radius: 8px;
    border: 1px solid #E8E8E8;
    background: #F8F9FA;
    padding: 14px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px;
    color: #1A1A1A;
    outline: none;
    resize: vertical;
    transition: border-color .2s;
    box-sizing: border-box;
}

.query-popup-form .wpcf7 textarea:focus {
    border-color: #DD0000;
}

.query-popup-form .wpcf7 input[type="submit"] {
    width: 100%;
    height: 52px;
    border-radius: 8px;
    background: #DD0000;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background .2s;
}

.query-popup-form .wpcf7 input[type="submit"]:hover {
    background: #1A1A1A;
}

.query-popup-form .wpcf7 .wpcf7-response-output {
    font-size: 13px;
    border-radius: 5px;
    margin: 10px 0 0 !important;
}

.query-popup-form .wpcf7 .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #DD0000;
    margin-top: 4px;
}

/* ═══════════════════════════════════════
   RESPONSIVE — Tablet (max-width: 1024px)
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .query-popup-card { max-width: 420px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Mobile (max-width: 768px)
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    .query-popup-overlay { padding: 12px; align-items: flex-start; overflow-y: auto; }
    .query-popup-card { max-width: 100%; margin: auto; }
    .query-popup-header { padding: 24px 22px 20px; }
    .query-popup-header h3 { font-size: 20px !important; }
    .query-popup-body { padding: 22px 22px 26px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Small Mobile (max-width: 480px)
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
    .query-popup-overlay { padding: 8px; }
    .query-popup-card { border-radius: 12px; }
    .query-popup-header { padding: 20px 16px 18px; }
    .query-popup-header h3 { font-size: 18px !important; }
    .query-popup-body { padding: 16px 16px 20px; }
    .query-popup-close { top: 10px; right: 10px; width: 32px; height: 32px; }
    .query-popup-close i { font-size: 14px; }
}
