﻿/* Container for the entire form layout */
.vk-public-form-layout_R {
    display: flex;
    flex-direction: column; /* Stacks header and body vertically */
    gap: 10px; /* Adds space between the header and body sections */
}


/* Header section styling */
.vk-public-header_R {
    /* Pin the container to the top of the viewport */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Ensure it spans the full width and sits above other content */
    width: 100%;
    z-index: 900001; /* Use a high z-index to ensure visibility */
    /* Keep the flexbox layout for aligning buttons and placeholder */
    display: flex;
    flex-direction: row; /* Arranges buttons and placeholder in a row */
    justify-content: space-between; /* Pushes buttons to one side, placeholder to the other */
    align-items: center; /* Vertically centers the items */
    /*gap: 10px;*/ /* Space between the button group and the placeholder */
    /*padding: 10px;*/
    /*background-color: #f0f0f0;*/ /* Example background color to distinguish it */
    /*border-bottom: 1px solid #ccc;*/ /* Optional styling to separate header */
}


/* Header content placeholder styling */
.vk-public-header-placeholder_R {
    flex-grow: 1; /* Allows the placeholder to take up remaining space */
}


/* Main body section */
.vk-public-body_R {
    margin-top: 30px;
    margin-bottom: 30px;
}


.vk-public-footer_R {
    /* Pin the container to the bottom of the viewport */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* Ensure it spans the full width and sits above other content */
    width: 100%;
    z-index: 900001; /* Use a high z-index to ensure visibility */
    /* Keep the flexbox layout for aligning button groups */
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 10px;*/
    /*background-color: #f0f0f0;*/ /* Example background color */
    /*border-top: 1px solid #ccc;*/ /* Add a border for separation */
}



/* Button group styling */
.vk-public-header-button-group_R {
    display: flex;
    gap: 5px; /* Space between buttons */
}






/* Responsive adjustments for smaller screens (e.g., mobile phones) */
@media (max-width: 768px) {
    .vk-public-header_R {
        flex-direction: column; /* Stack buttons and placeholder vertically */
        align-items: stretch; /* Stretch items to fill the container width */
        text-align: center;
        z-index: 900001;
        flex-wrap: wrap;
    }

    .vk-public-header-button-group_R {
        justify-content: center; /* Center the buttons on small screens */
        flex-wrap: wrap;
    }


    /* Main body section */
    .vk-public-body_R {
        margin-top: 40px;
        margin-bottom: 20px;
    }


    .vk-public-footer_R {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        z-index: 900001;
        flex-wrap: wrap;
    }

    .vk-public-footer-button-group_R {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }


    .vk-public-footer-button-group_R--left,
    .vk-public-footer-button-group_R--center,
    .vk-public-footer-button-group_R--right {
        flex-wrap: wrap;
        justify-content: center;
    }

}
