/* General styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
}

h1, h2 {
    text-align: center;
    color: #3b82f6;
    font-weight: bold;
}

button {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

form {
    background: #ffffff;
    padding: 20px;
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #374151;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-sizing: border-box;
    background-color: #f9fafb;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    border-color: #3b82f6;
    outline: none;
}

#link-fields-container .link-item {
    margin-bottom: 15px;
}

.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    text-align: center;
    max-height: 80%; /* Limit the height of the pop-up */
    overflow-y: auto; /* Enable vertical scrolling if content exceeds max height */
    max-width: 700px; /* Increase the maximum width */
    width: 90%; /* Use 90% of the viewport width for responsiveness */
}

@media (max-width: 768px) {
    .popup {
        max-width: 95%; /* Use 95% of the viewport width on smaller screens */
        padding: 15px; /* Reduce padding for smaller screens */
    }
}

#popup-message ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#popup-message ul li {
    margin: 10px 0;
}

#popup-message ul li a {
    display: inline-block;
    text-decoration: none;
    background-color: #10b981;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#popup-message ul li a:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.link-item {
    margin: 10px 0;
    padding: 10px;
    border-radius: 10px;
    background-color: #f9fafb;
    transition: background-color 0.3s ease;
}

.link-item:nth-child(even) {
    background-color: #e0f2fe;
}

.remove-link-button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-top: 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.remove-link-button:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
}

/* Header styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 60%; /* Default width for larger screens */
    margin: 0 auto; /* Center the header content */
    padding: 10px 0; /* Adjust padding to maintain spacing */
    background-color: #3b82f6;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .header {
        width: 100%; /* Stretch the header to fill the entire screen on mobile */
        margin: 0; /* Remove margins on mobile */
        padding: 10px 20px; /* Add padding for spacing */
        border-radius: 0; /* Remove rounded corners on mobile */
    }
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-align: left;
    margin-left: 10%; /* Revert to 10% margin from the left edge */
}

/* Center the button container */
.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.button-container button {
    font-size: 20px; /* Increase font size */
    padding: 15px 30px; /* Adjust padding for larger buttons */
}

/* Hide forms by default */
#form-container, #request-form-container {
    display: none;
    margin-top: 20px;
}

/* Overlay for pop-up background */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Black background with 40% opacity */
    z-index: 1000;
}

/* Show the overlay when the pop-up is active */
.popup.active + .overlay {
    display: block;
}
