/* ISP Contact Form Popup Styles */

.isp-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.isp-popup-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.isp-popup-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.isp-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.isp-popup-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.isp-popup-container h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: center;
}

.isp-popup-container > p {
    color: #B8BCC8;
    font-size: 16px;
    margin: 0 0 30px 0;
    text-align: center;
}

.isp-form-group {
    margin-bottom: 20px;
}

.isp-form-group label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.isp-form-group .required {
    color: #DC2626;
}

.isp-form-group input {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.isp-form-group input:focus {
    outline: none;
    border-color: #DC2626;
    background-color: rgba(255, 255, 255, 0.08);
}

.isp-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.isp-btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(90deg, #DC2626 0%, #1E40AF 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.isp-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.isp-btn-submit:active {
    transform: translateY(0);
}

.isp-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.isp-form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
}

.isp-form-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    display: block;
}

.isp-form-message.error {
    background-color: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #DC2626;
    display: block;
}

/* Make Get Started button and any trigger button open popup */
a.isp-btn-primary[href="#services"],
.isp-contact-trigger {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .isp-popup-container {
        padding: 30px 20px;
    }
    
    .isp-popup-container h2 {
        font-size: 24px;
    }
}
