/* Popup Redesign */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.popup-container.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.popup-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.popup-content::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--c3);
    border-radius: 50%;
    opacity: 0.2;
    z-index: 0;
}

.popup-content::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: var(--c4);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.popup-heading,
.popup-subheading,
.popup-form {
    position: relative;
    z-index: 1;
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    color: #333;
}

.popup-close-btn:hover {
    background: var(--c5);
    color: #fff;
    transform: rotate(90deg);
}

.popup-heading {
    font-size: 28px;
    font-family: var(--f2);
    color: var(--c5);
    text-align: center;
    margin-bottom: 5px;
}

.popup-subheading {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.popup-input-group {
    margin-bottom: 15px;
}

.popup-input-group input,
.popup-input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.popup-input-group input:focus,
.popup-input-group textarea:focus {
    border-color: var(--c4);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 180, 167, 0.1);
}

.themebtn--full {
    width: 100%;
    background: var(--c1);
    border: none;
    margin-top: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.themebtn--full:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(3, 3, 40, 0.3);
}

/* Header fix for popup z-index if needed */
.header {
    z-index: 100;
}