h1 {
    color: #1da1f2;
    justify-content: center;
}

.landingPage {
    height: 100%;
}

.landingPageOuterContainer {
    display: table;
    margin: auto;
}

.landingPageInnerContainer {
    display: table-cell;
    vertical-align: middle;
    width: 40%;
}

#landingPageHeading {
    text-align: center;
}

.contentContainer {
    display: flex;
    justify-content: center;
}

.demoPageContentContainer {
    width: 100%;
    max-width: 1366px !important;
}

.demoPageCardContainer {
    top: 10% !important;
    width: 100%;
}

/* Bootstrap's .container caps at ~1140px; widen it for demo cards so wide inputs
   (e.g. a full UUID das-farm-id) and the map have room. */
.container:has(.demoPageCardContainer) {
    max-width: 1500px;
}

/* Trim the large card-body padding (Bootstrap p-md-5 = 3rem) to reclaim width. */
.demoPageCardContainer .card-body {
    padding: 2rem !important;
}

.buttonContainer {
    width: 50%;
}

.inputPadding {
    padding: 12px 0;
}

.multipleInputContainer {
    display: inline-flex;
    gap: 20px;
}

.detailsDisplay {
    display: flex;
    gap: 10px;
}

.detailsInnerContainer {
    width: 480px;
    padding-top: 10px;
}

.mapContainer {
    flex: 1;
    padding-top: 10px;
}

#diffMapContainer {
    padding-left: 6px;
}

.infoParagraph {
    padding-left: 12px;
}

.button {
    border-radius: 6px;
    padding: 12px;
    margin: 6px 0;
    cursor: pointer;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
    background-color: #4cc0ba;
    text-align: center;
}

.buttonGap {
    gap: 20px;
}

.button:hover {
    background: #34938e;
}

.button > a {
    color: #fff;
    text-decoration: none;
}

input {
    background-color: #fff;
    width: 100%;
    margin: 10px;
    padding: 0 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    justify-content: space-between;
    height: 40px;
    border: 1px solid #4a4b4f;
}

.checkboxSwitch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.checkboxSwitch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e1e1e3;
    border-radius: 6px;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 6px;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #4cc0ba;
}

input:focus + .slider {
    box-shadow: 0 0 1px #4cc0ba;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

input::placeholder {
    color: #4a4b4f;
    font-weight: 500;
}
input:focus {
    outline: 0;
}

.tab {
    display: none;
}

/* Shared demo layout: labelled inputs + a large, prominent map. */
.propertySection {
    display: flex;
    gap: 24px;
    align-items: stretch;
    margin: 8px 0 4px;
}

.fieldGroup {
    flex: 0 0 480px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.field input {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 14px;
    /* Entered value matches the label size (14px) and is dark, so it reads as real content. */
    font-size: 14px;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Placeholder is a lighter grey and un-bolded so it's clearly distinct from an entered value. */
.field input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.field input:focus {
    border-color: #4cc0ba;
    box-shadow: 0 0 0 3px rgba(76, 192, 186, 0.25);
}

.fieldRow {
    display: flex;
    gap: 16px;
}

.fieldRow .field {
    flex: 1;
}

.deprecatedBadge {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
}

/* Section headings need clear separation from the content above and below them. */
.demoPageCardContainer h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.mapPanel {
    flex: 1;
    min-height: 600px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}

.mapPanel das-map {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 900px) {
    .propertySection {
        flex-direction: column;
    }

    .fieldGroup {
        flex: 1 1 auto;
        width: 100%;
    }
}
