/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f7f7f7;
    color: #333;
}

/* Navbar Styles */
/* Navbar and Dropdown Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
}

.navbar ul li a:hover {
    background-color: #575757;
}

/* Dropdown */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #2c3e50;
    color: #ecf0f1;
}

.navbar h1 {
    font-weight: 600;
    font-size: 24px;
    margin: 0;
}

.navbar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar nav ul li {
    margin-left: 20px;
    position: relative;
    padding-bottom: 5px; /* Slightly increase padding to expand the hover area */
}

.navbar nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 400;
    display: block;
}

.navbar nav ul li a:hover {
    color: #3498db;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #34495e;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    margin-top: 10px; /* Increase margin-top slightly */
    left: 0;
    width: 200px;
    transition: visibility 0.2s ease, opacity 0.2s ease; /* Smooth transition */
}

.dropdown-content a {
    color: #ecf0f1;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #3498db;
}

.dropdown:hover .dropdown-content {
    display: block;
    visibility: visible; /* Ensure it's visible */
    opacity: 1; /* Full opacity */
}

/* Hero Section */
.hero {
    background-image: url('https://via.placeholder.com/1600x600');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    color: white;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero button {
    background-color: #e74c3c;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}

.hero button:hover {
    background-color: #c0392b;
}

/* Features Section */
.features {
    padding: 60px 20px;
    background-color: #ecf0f1;
    text-align: center;
}

.features h2 {
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 600;
}

.feature-box {
    display: inline-block;
    width: 30%;
    padding: 20px;
    background-color: white;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.feature-box h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-box p {
    font-size: 16px;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}


/* Form Section */
.form-section {
    padding: 60px 20px;
    background-color: #ecf0f1;
    max-width: 600px;
    margin: 0 auto;
}

.form-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 18px;
    font-weight: 400;
    display: block;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-group input[type="file"] {
    border: none;
}

.form-group select {
    background-color: #ffffff;
}

.form-group button {
    background-color: #e74c3c;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    display: inline-block;
}

.form-group button:hover {
    background-color: #c0392b;
}

.pdf-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.pdf-input-group select {
    margin-left: 10px;
    flex-shrink: 0;
    width: 200px;
}

/* Remove PDF Button */
/* Smaller "X" Button */
.removePdfButton {
    margin-left: 10px;
    background-color: transparent;
    color: #e74c3c;
    padding: 0;
    border: none;
    font-size: 18px; /* Adjust the size of the 'X' */
    cursor: pointer;
    line-height: 1; /* Ensures the button is aligned properly */
}

.removePdfButton:hover {
    background-color: #c0392b;
}

/* Existing styles unchanged */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #34495e;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    margin-top: 5px;
    left: 0;
    width: 200px;
}

.dropdown-content a {
    color: #ecf0f1;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #3498db;
}

.dropdown.open .dropdown-content {
    display: block;
}