body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;  /* Prevent horizontal scroll */
    background-color: #f4f7fa; /* Light blue-gray */
}

.container {
    text-align: left;
    margin: 15px auto;
    padding: 10px 20px 10px 40px;  /* Increased left padding */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Create a wrapper for the header content */
.header-content {
    transform: translateX(40px);  /* Move content right by 40px */
}

/* Or alternatively, we could try absolute positioning */
.container {
    position: relative;  /* Add this if using absolute positioning */
}

.container h1 {
    position: relative;
    left: 40px;  /* Move right by 40px */
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 15px;
    color: #2b3e50;
    font-weight: 600;
}

.container p {
    position: relative;
    left: 40px;  /* Move right by 40px */
    margin-bottom: 70px;
    font-size: clamp(15px, 1.5vw, 18px);
    color: #555;
    line-height: 1.3;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
    margin: 10px auto 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.button-grid a {
    text-decoration: none;
}

.k-list .k-item.k-state-selected, .k-list-optionlabel.k-state-selected {
    color: #fff;
    background-color: #00BEC8 !important;
}

.grid-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    font-size: clamp(15px, 1.4vw, 20px);
    font-weight: 500;
    color: #0099cc;
    transition: all 0.2s ease-in-out;
    min-height: 90px;  /* Restored to original larger size */
    max-width: 100%;
    text-align: center;
    line-height: 1.4;
    aspect-ratio: 3/2;  /* Restored aspect ratio */
}

.grid-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background-color: #f8fbff;
    border-color: #40E0D0;
}

.footer {
    text-align: center;
    margin-top: 15px;  /* Less margin */
    padding: 10px;  /* Less padding */
    color: #666;
    font-size: 14px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .button-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .button-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .button-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
        width: 95%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
        margin: 15px auto;
    }

    .container h1,
    .container p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        position: static;  /* Remove relative positioning */
        left: 0;  /* Reset left offset */
    }

    .container h1 {
        font-size: 28px;
    }

    .container p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .grid-button {
        font-size: 16px;
        min-height: 100px;
        padding: 15px;
    }

    .button-grid {
        gap: 10px;
        padding: 0 5px;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Add new breakpoint for very small screens */
@media (max-width: 480px) {
    .button-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .grid-button {
        min-height: 80px;
        padding: 10px;
        font-size: 14px;
        aspect-ratio: 3/2;
    }
}

/* Global form styles */
.form-input,
.form-select,
.radio-group {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: white;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 0 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #2b3e50;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #666;
}