/**
 * Minimal Popup Form Styles with Country Flags and 3iGlobal Branding
 */

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container - Minimal Design */
.popup-form-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.popup-form-container.active {
    opacity: 1;
    visibility: visible;
}

/* Header with Logo and Flags */
.popup-header {
    background: linear-gradient(135deg, #0073e6, #005bb7);
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
}

.popup-logo {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #fff;
    padding: 4px 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.popup-header h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.country-flags {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    min-width: 50px;
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 6px;
}

.flag-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.flag-image {
    width: 32px;
    height: auto;
    margin-bottom: 4px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
    color: #fff;
    font-size: 16px;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.popup-close:before,
.popup-close:after {
    content: '';
    position: absolute;
    width: 12px;
    height: 2px;
    background-color: #fff;
}

.popup-close:before {
    transform: rotate(45deg);
}

.popup-close:after {
    transform: rotate(-45deg);
}

/* Popup Body - Minimal Styling */
.popup-body {
    padding: 25px;
}

/* Form Styles - Minimal and Clean */
.popup-form-group {
    margin-bottom: 15px;
}

.popup-form-group input,
.popup-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.popup-form-group input:focus,
.popup-form-group select:focus {
    border-color: #0073e6;
    outline: none;
}

.popup-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Submit Button - Minimal and Professional */
.popup-submit-btn {
    background: linear-gradient(135deg, #0073e6, #005bb7);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
}

.popup-submit-btn:hover {
    background: linear-gradient(135deg, #005bb7, #004494);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 230, 0.3);
}

.popup-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Messages - Simple and Clean */
#popup-form-messages {
    margin-bottom: 15px;
}

.form-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    font-size: 14px;
}

.form-errors {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    font-size: 14px;
}

.form-errors ul {
    margin: 0;
    padding-left: 20px;
}

/* Trust Badge - Minimal */
.trust-badge {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .popup-form-container {
        width: 95%;
        margin: 20px auto;
    }

    .popup-header {
        padding: 15px;
    }

    .popup-logo {
        width: 100px;
    }

    .popup-body {
        padding: 20px;
    }

    .country-flags {
        gap: 8px;
        margin-top: 8px;
    }

    .flag-item {
        font-size: 9px;
        min-width: 40px;
    }

    .flag-image {
        width: 24px;
        margin-bottom: 3px;
    }
}
