@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* Global box-sizing for easier layout */
*, *::before, *::after {
    box-sizing: border-box;
}

.open-button {
    background-color: #3b82f6;
    color: #fff;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    transform: scale(1);
    border: none;
    cursor: pointer;
}

.open-button:hover {
    background-color: #2563eb;
    transform: scale(1.05);
}

.open-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.5);
}

/* The full-screen overlay for the pop-up */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Change this from 33% to 100% */
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* The actual content box of the pop-up */
.popup-content {
    max-width: 900px;
    max-height: 800px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    padding: 32px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Close button */
.close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #e5e7eb;
    color: #4b5563;
    width: 40px;
    height: 40px;
    border-radius: 9999px; /* full rounded */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.close-button:hover {
    background-color: #d1d5db;
}

.close-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.5);
}

.popup-header {
    font-size: 30px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 24px;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
	overflow-y:auto;
}

.form-group {
    display: flex;
    align-items: center; /* This centers the items vertically */
    gap: 10px; /* This adds space between the items */
}

.checkbox-container {
    display: flex;
    align-items: center;
}

.form-label {
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 4px;
}

.form-input, .form-textarea {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.form-textarea {
    resize: none;
    flex-grow: 1;
}

.submit-button {
    background-color: #3b82f6;
    color: #fff;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #2563eb;
}

.submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.5);
}

/* Hide the popup by default */
.hidden {
    display: none;
}




@media (max-width: 768px) {
    /* Main pop-up content box */
    .popup-content {
        /* Reduce the max-width to allow space on the sides for a cleaner look */
        max-width: 95%;
        /* Reduce padding for a more compact design */
        padding: 24px;
    }

    /* Header text within the pop-up */
    .popup-header {
        /* Make the header font a bit smaller for better fit */
        font-size: 24px;
        margin-bottom: 20px;
    }

    /* Form groups to stack vertically on mobile */
    .form-group {
        /* Change from horizontal to vertical layout */
        flex-direction: column;
        align-items: flex-start;
        /* Increase the gap for better spacing */
        gap: 8px;
    }

    /* Close button positioning */
    .close-button {
        /* Adjust positioning to be slightly smaller and closer to the corner */
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}
