/* Align the form container to the center */
.cv-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh; /* Full viewport height */
}

/* Style for the form itself */
#cv-search-form {
    text-align: center;
    width: 100%; /* Full width */
    max-width: 500px; /* Maximum width */
}

/* Input field styling */
#cv-search-form input[type="text"] {
    margin-bottom: 20px; /* Increased space between input and button */
    width: calc(100% - 20px); /* Full width minus padding */
    padding: 15px; /* Increased padding for better height */
    border: 1px solid #ccc; /* Subtle border */
    border-radius: 5px; /* Rounded corners */
    font-size: 16px; /* Larger font size */
}

/* Button styling */
#cv-search-form button {
    cursor: pointer;
    padding: 15px 30px; /* Increased padding for a larger button */
    background-color: #0056b3; /* Deeper blue for a more professional look */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px; /* Larger font size */
    font-weight: bold; /* Bold font weight */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

#cv-search-form button:hover {
    background-color: #003d82; /* Darker shade on hover */
}

/* Popup styling for a modern, clean look */
.cv-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Overlay */
}

.cv-popup-content {
    background-color: #ffffff;
    margin: 5% auto; /* Adjusted margin for better vertical alignment */
    padding: 20px; /* Padding adjustment */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    width: 60%; /* Width adjustment for desktop */
    max-width: 800px; /* Maximum width */
    position: relative; /* For absolute positioning of close button */
    overflow-x: auto; /* Ensure table responsiveness */
}

.cv-close {
    position: absolute;
    right: 20px;
    top: 0px;
    color: #666666;
    font-size: 48px;
    font-weight: normal; /* Less bold for a cleaner look */
    cursor: pointer;
}

.cv-close:hover,
.cv-close:focus {
    color: #000000;
}

/* Table Styling for Beautiful Layout */
.cv-popup-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px; /* Space above the table */
}

.cv-popup-content th, .cv-popup-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cv-popup-content th {
    background-color: #4CAF50; /* Green header for a vibrant look */
    color: white;
}

.cv-popup-content td {
    color: #333; /* Dark text for readability */
}

.cv-popup-content tr:nth-child(even) {
    background-color: #f2f2f2; /* Zebra striping for better readability */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cv-popup-content {
        width: 95%; /* Adjusted width for smaller screens */
        margin: 20px auto; /* Adjust margin for smaller screens */
        padding: 10px; /* Adjust padding for smaller screens */
    }
}
