body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    font-family: Arial, sans-serif;
    padding-top: 100px;  /* Pushes the form below the banner */
    background-image: url("/static/wheat_field.jpg");
    background-size: cover;
    background-attachment: fixed;
}

.form-grid {
    background-color: #E8E8E8;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #D7D7D7;
    margin: auto;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 3 columns */
    gap: 20px;
    align-items: center
}

.form-item {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin: 5px
}

.ct-form-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: 5px;
    align-items: center;
}

.link-grid {
    background-color: #E99D3D;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #E99D3D;
    margin: auto;
    grid-template-columns: repeat(4, 1fr);  /* 3 columns */
    gap: 20px;
    align-items: center
}

.full-width {
    grid-column: span 3;  /* Makes the button span across all 3 columns */
    text-align: center;
}

.banner {
    background-color:#2e944b;
    color: white;
    text-align: center;
    font-size: 20px;
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #E99D3D !important;
    border: 1px solid #E99D3D !important;
    font-size: 25px;
    margin: 10px;
}

.crop-title::after {
    content: "\230E";
    margin-left: 10px;
    font-size: 1.2em;
}

.errorfield {
    color: red;
    margin-bottom: 3px;;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 400px;
    text-align: center;
}

.the-form {
    margin: 10px;
}

label {
    font-weight: bold;
    text-align: left;
    margin-bottom: 5px;
}

input, select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

button {
    padding: 10px;
    color: white;
    border: none;
    border-radius: 5px;
    width: 100%;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

h3 {
    margin: 10px;
    color: white;
}

h2 {
    margin: 10px;
    color: white;
    text-shadow: 2px 5px 20px black;
}

.result {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

/* Mobile Phones (Screens less than 768px) */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;  /* Stack form fields vertically */
    }

    .form-wrapper {
        width: 90%; 
        padding: 20px;
    }

    .banner h2 {
        font-size: 1.5em;
    }

    button {
        font-size: 18px;
        padding: 10px;
    }
}

/* Tablets and Small Laptops (768px - 1024px) */
@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 columns for tablets */
    }

    .form-wrapper {
        width: 80%;
    }
}

a {
    margin-left: 15px;
    margin-right: 15px;
}

.ct_label {
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
    font-size: 20px;;
}
