/* =========================
   Variables for Colors
========================= */
:root {
    --primary-color: #27ae60;
    --secondary-color: #7251d1;
    --gradient-start: #51d172;
    --gradient-end: #32bd56;
    --text-color: #444444;
    --secondary-text-color: #f5f5f5;
    --bg-color: #333333;
    --background-image: url('/assets/images/pattern.jpg');
}

/* Ensure consistent box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Ensure the HTML and body take full height */
html,
body {
    margin: 0;
    min-height: 100vh;
}

body {
    padding: 0;
    background: var(--background-image) center center fixed;
    background-size: cover;
    color: var(--text-color);
    font-family: Arial, sans-serif;
}

/* Wrapper for form elements */
.org-registration-wrap {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 20px;
}

/* Registration container for side-by-side layout on desktop */
.registration-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px; /* Space between form and instructions */
    max-width: 60%; /* Limit container width */
    margin: 0 auto; /* Center container */
    min-height: 100vh; /* Ensure container has enough height for sticky */
}

/* Instructions section styles */
.org-registration-instructions {
    background: var(--bg-color);
    color: var(--secondary-text-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1; /* Allow equal width with form */
    max-width: 60%; /* Match form width for balance */
    position: sticky; /* Stick to viewport while scrolling */
    top: 80px; /* Increased to account for potential header */
    max-height: calc(100vh - 100px); /* Adjusted for header and padding */
    overflow-y: auto; /* Allow scrolling within instructions if needed */
}

/* Ensure form section matches instructions width */
.org-registration-form-section {
    flex: 1; /* Allow equal width with instructions */
    max-width: 60%; /* Consistent width */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .registration-container {
        flex-direction: column; /* Stack vertically on mobile */
        align-items: center; /* Center items */
        gap: 1.5rem; /* Space between stacked elements */
        min-height: auto; /* Reset for mobile */
    }

    .org-registration-instructions {
        max-width: 100%; /* Full width on mobile */
        margin: 0 auto;
        position: static; /* Disable sticky on mobile */
        max-height: none; /* Remove height constraint */
        overflow-y: visible; /* Reset scrolling */
    }

    .org-registration-form-section {
        max-width: 100%; /* Full width on mobile */
        margin: 0 auto;
    }
}
