/* Global Styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box; /* Ensures padding is included in the width and height calculations */
    overflow-x: hidden; /* Prevents horizontal overflow */
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers items vertically */
    align-items: center; /* Centers items horizontally */
    width: 90%; /* Adjust width to fit the content dynamically */
    max-width: 1000px; /* Maximum width constraint */
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center; /* Center text inside the container */
    margin: 20px auto; /* Center container horizontally */
    box-sizing: border-box; /* Ensures padding is included in total width */
}

h1, h2, h3 {
    color: #111;
    margin-bottom: 20px;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
    overflow-wrap: break-word; /* Ensures text within paragraphs wraps properly */
    word-break: break-word; /* Adds support for wrapping long words or URLs */
    margin: 0; /* Resets margin to avoid overflow */
}

/* Content Box Styling */
.content-box, .recommendation {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box; /* Includes padding and border in width */
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Form Group Styling */
.form-group {
    margin-bottom: 20px;
    width: 100%;
    text-align: left;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

/* Modern Dropdown Styling */
.dropdown {
    width: 100%;
    max-width: 600px;
    padding: 12px 40px 12px 12px; /* Added right padding for arrow */
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><polygon fill="%23007BFF" points="0,0 10,0 5,5"/></svg>'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 15px center; /* Adjusted arrow position */
    background-size: 10px 10px;
}

.dropdown:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Select Element Styling */
select {
    width: 100%;
    max-width: 600px; /* Ensures select does not exceed container width */
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><polygon fill="%23007BFF" points="0,0 10,0 5,5"/></svg>'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 15px center; /* Adjusted arrow position */
    background-size: 10px 10px;
}

select:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Button Group Styling */
.button-group {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 10px;
    flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */
}

button, .btn-primary, .btn-secondary {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    display: inline-block;
    width: auto;
    margin-right: 10px; /* Adds some spacing between buttons */
}

.btn-primary {
    background-color: #007BFF;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        height: auto;
        padding: 20px;
    }

    .container {
        width: 100%;
        padding: 20px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    select {
        width: 100%;
    }

    .textarea {
        height: 150px;
    }
}
