/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Contact Form Container */
.contact-form-container {
    flex: 1;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    min-width: 300px;
    max-width: 800px;
    flex: 2;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-form-container h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    word-wrap: break-word; /* Break long words if needed */
}

.contact-form-container p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.input-container {
    margin-bottom: 20px;
    position: relative;
}

label {
    font-size: 1rem;
    color: #333;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    background-color: #f9f9f9;
    margin-top: 5px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #ffcc00;
    background-color: #fff;
}

textarea {
    height: 150px;
    resize: none;
}

.btn-submit {
    background-color: #ffcc00;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    display: block;
    width: 100%;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #e6b800;
}

/* Info Container */
.info-container {
    flex: 0.4;
    background-color: #333;
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: left;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    min-width: 280px;
    max-width: 350px;
    word-wrap: break-word;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.info-container h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #ffcc00;
}

.info-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.info-container ul li {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 1rem;
    align-items: flex-start;
    padding-right: 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    word-break: break-word;
}

.info-container ul li i {
    grid-column: 1;
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.info-container ul li span {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
}

.login-required-message {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
}

.login-required-message p {
    margin: 1rem 0;
    font-size: 1.1rem;
    color: #495057;
}

.login-required-message a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.login-required-message a:hover {
    text-decoration: underline;
}

.login-message {
    padding: 2rem;
    text-align: center;
}

.login-message .alert {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #e9ecef;
}

.login-message h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.login-message p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.login-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.login-buttons .btn {
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-buttons .btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

.login-buttons .btn-primary:hover {
    background-color: #0056b3;
}

.login-buttons .btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

.login-buttons .btn-secondary:hover {
    background-color: #545b62;
}

.or-divider {
    color: #666;
    font-weight: 500;
}

.alert-info .fas {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-form-container h1 {
        font-size: 2rem; /* Adjust font size for smaller screens */
    }

    .contact-wrapper {
        padding: 30px; /* Adjust padding for smaller screens */
        min-height: auto;  /* Allow natural height on smaller screens */
        gap: 20px;  /* Reduce gap on smaller screens */
    }
}

@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column; /* Stack elements vertically on smaller screens */
        padding: 20px;
    }

    .contact-form-container {
        margin-bottom: 30px;
        width: 100%; /* Ensure the form container takes full width */
    }

    .info-container {
        width: 100%; /* Ensure the info container takes full width */
        padding: 30px; /* Reduce padding on smaller screens */
        max-width: 100%;
    }

    .info-container ul li {
        font-size: 0.95rem;
    }

    .contact-form-container h1 {
        font-size: 1.8rem; /* Further reduce the size of the header on small screens */
    }
}
