/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header Banner Styles - Fixed yellow background */
.header-banner {
    background-color: #facc15;
    color: #000;
    padding: 20px 0;
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}
@media only screen and (max-width: 767px) {
    .header-content {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
}

.header-title {
    font-size: 2em;
    margin-right: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #000;
}

.header-image {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
}

/* Main Title Styles */
.main-title {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid #ccc;
}

.main-title h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

/* Card Styles */
.card {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Location Grid Styles - Adjusted for better layout */
.location-grid {
    display: grid;
    grid-template-columns: 0.275fr 0.275fr 0.25fr 0.25fr 0.2fr;
    gap: 20px;
    align-items: end;
}

@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 1em;
    margin-bottom: 5px;
    color: #555;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    color: #333;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.disabled-input {
    background-color: #eee;
    cursor: not-allowed;
}

/* Area Input Error Styling */
.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
    display: block;
}

/* Improve area input group styling */
.area-input-group {
    position: relative;
}

.area-input {
    padding-right: 8px;
}

/* Unit Buttons Styles */
.unit-buttons {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.unit-button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 0.9em;
    color: #555;
}

.unit-button.active {
    background-color: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.unit-button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

/* Button group styling for Submit and Reset buttons */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.button-group .btn {
    flex: 1;
    min-width: 80px;
}

/* Total Cost Styles */
.total-cost {
    text-align: center;
    padding: 20px;
}

.cost-amount {
    font-size: 2.5em;
    color: #4CAF50;
    margin-top: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cost-amount.placeholder {
    color: #888;
    font-size: 1.8em;
}

/* Chart Container Styles */
.chart-container {
    padding: 20px;
}

/* Resource Section Styles */
.resource-section {
    padding: 20px;
}

.resource-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.resource-table th,
.resource-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.resource-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.resource-table tbody tr:hover {
    background-color: #f5f5f5;
}

.resource-total {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

/* Resource Table Styles */
.table-container {
    overflow-x: auto;
}

.resource-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resource-icon {
    font-size: 1.2em;
}

/* Share Section Styles */
.share-section {
    text-align: center;
    padding: 20px;
}

/* Button Styles */
.btn {
    padding: 12px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.btn-blue {
    background-color: #007BFF;
}

.btn-blue:hover {
    background-color: #0056b3;
}

.btn-yellow {
    background-color: #ffc107;
    color: #212529;
}

.btn-yellow:hover {
    background-color: #e0a800;
}

/* Disclaimer Styles */
.disclaimer {
    background-color: #f9f9f9;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    color: #777;
    border-radius: 8px;
}

/* Sticky Footer Styles */
.sticky-footer {
    background-color: #343a40;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    position: sticky;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-info {
    display: flex;
    gap: 30px;
    margin-bottom: 10px;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-item span {
    font-size: 0.8em;
    color: #ccc;
}

.footer-item .value {
    font-size: 1.5em;
}

.footer-area {
    font-size: 0.9em;
    color: #ccc;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

.modal.show {
    display: block;
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.modal-title {
    margin: 0;
    font-size: 1.5em;
}

.close-btn {
    cursor: pointer;
    font-size: 1.5em;
    color: #aaa;
    border: none;
    background: none;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Contact Form 7 Styles - Adjust as needed */
.wpcf7-form p {
    margin-bottom: 10px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 5px;
}

.wpcf7-form input[type="submit"] {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Fallback Form Styles */
.form-row {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}