/* General Styling */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Times New Roman', Times, serif !important;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Fullscreen Background Image */
.background-container {
    background: url('./images/pexels-cytonn-955395.jpg') no-repeat center center fixed;
    background-size: cover;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content Overlay */
.content-overlay {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Left Section */
.left-section {
    flex: 1;
    padding: 20px;
    color: #ffffff;
    text-align: left;
}

.left-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    white-space: normal;  /* Ensures text wraps properly in small spaces */
    word-wrap: break-word; /* Prevents text from overflowing */
}

.left-section p {
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Right Section */
.right-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.form-container h3 {
    font-size: 1.8rem;
    color: #175f73;
    text-align: center;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #175f73;
    box-shadow: 0 0 5px rgba(23, 95, 115, 0.5);
}

.btn-submit {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    background-color: #175f73;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Policy Section Styling */
.policy-text {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    margin-top: 15px;
}

/* ✅ Changed Terms & Privacy Links to Blue */
.policy-text a {
    color: blue !important;
    text-decoration: none;
}

.policy-text a:hover {
    text-decoration: underline;
}

/* Enable Scrolling in Terms & Privacy */
.policy-content {
    display: none;
    margin-top: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
}

/* Scrollbar Styling */
.policy-content::-webkit-scrollbar {
    width: 8px;
}

.policy-content::-webkit-scrollbar-thumb {
    background-color: #175f73;
    border-radius: 5px;
}

.policy-content::-webkit-scrollbar-track {
    background: #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-overlay {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
    }

    .left-section {
        margin-bottom: 20px;
        width: 100%;
        text-align: center;  /* Center text on smaller screens */
    }

    .right-section {
        width: 100%;
    }
    
    /* Ensure the form container is always centered and full-width on smaller screens */
    .form-container {
        max-width: 100%;
        padding: 20px;
    }

    /* Ensure inputs and buttons are responsive */
    .form-group input,
    .form-group select,
    .btn-submit {
        font-size: 16px;
        padding: 12px;
    }

    .btn-submit {
        margin-top: 20px;
    }
}

/* For very small screens (portrait mode) */
@media (max-width: 480px) {
    /* Ensure background image fits on smaller screens */
    .background-container {
        background-size: contain;
    }

    .form-container {
        padding: 15px;
    }

    .form-group input,
    .form-group select,
    .btn-submit {
        font-size: 14px;
        padding: 10px;
    }

    .btn-submit {
        font-size: 16px;
    }

    /* Make sure the title text in the left section is properly displayed */
    .left-section h1 {
        font-size: 1.8rem; /* Smaller font size for mobile */
        margin-bottom: 10px;
        text-align: center; /* Center align title for mobile */
    }

    /* Prevent any overflow issues with smaller screens */
    .left-section p {
        font-size: 1rem;  /* Adjust paragraph size for mobile */
        line-height: 1.4;
    }
}
