
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: LatoLatinWeb, Arial, Helvetica, sans-serif;
}

input
{
    font-family: LatoLatinWeb, Arial, Helvetica, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

header {
    padding: 12px;
    background: #d8654c;
    color: white;
    
}

header h1 {
    margin: 0;
    font-size: 1.2rem;
    font-family: LatoLatinWebSemibold, Arial, Helvetica, sans-serif;
}

header p {
    margin: 4px 0 0;
    font-size: 0.9rem;
}

#map {
    flex: 1;
    min-height: 500px;
}

.bottom-panel {
    padding: 12px;
    border-top: 1px solid #ccc;
    background: white;
}

.area-display {
    font-size: 1rem;
    margin-bottom: 10px;
}

button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    background: #1f4d2e;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    font-family: LatoLatinWebSemibold, Arial, Helvetica, sans-serif;
}

.action-start:hover {
    background: #27643c;
}

.action-cancel:hover {
    background: #b45309;
}

.action-clear:hover {
    background: #b91c1c;
}

.button-bar {
    display: flex;
    gap: 10px;
}

.button-bar button {
    flex: 1;
}

#submitBtn:not(:disabled):hover {
    background: #27643c;
}

button:disabled,
button:disabled:hover {
    background: #999;
    cursor: not-allowed;
}

.action-start {
    background: #1f4d2e;
}

.action-cancel {
    background: #d97706;
}

.action-clear {
    background: #dc2626;
}


.icon-button {
    width: 40px !important;
    height: 40px;
    min-width: 40px;
    padding: 0;
    margin: 0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #374151;
}

.icon-button:hover {
    background: #d1d5db;
}

.icon-button svg {
    width: 20px;
    height: 20px;
}

.search-bar {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
    background: white;
}

.site-address {
    padding-bottom: 0;
    gap: 8px;
    margin-top: 8px;
    margin-left: 12px;
    margin-right: 12px;
    background: white;
}

.site-address input{
    font-size: 1rem;
}

.search-bar{
     display: flex;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.search-bar button {
    width: auto;
    padding: 10px 16px;
}

.postcode-message {
    margin-top: 4px;
    margin-bottom: 8px;
    margin-left: 12px;
    margin-right: 12px;
    font-size: 0.9rem;
    color: #dc2626;
}

.postcode-input-error {
    border: 2px solid #dc2626 !important;
}

#findPostcodeBtn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#findPostcodeBtn svg {
    width: 18px;
    height: 18px;
}

.site-address-input {
    margin-top: 4px;
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.address-input-error {
    border: 2px solid #dc2626 !important;
}

.address-message {
    margin-top: 4px;
    margin-bottom: 4px;
    color: #dc2626;
    font-size: 0.9rem;
    
}
