﻿.dcc-postcode-lookup {
    width: 100%;
    max-width: 740px;
    margin: 24px 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}

/* Postcode form */

.dcc-form-group {
    margin-bottom: 16px;
}

.dcc-label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.dcc-search-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.dcc-input {
    box-sizing: border-box;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    border: 2px solid #4b4b4b;
    border-radius: 0;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.dcc-input:hover {
    border-color: #222;
}

.dcc-input:focus {
    border-color: #A648A1;
    outline: 3px solid #ffdd00;
    outline-offset: 0;
}

.dcc-input::placeholder {
    color: #666;
    opacity: 1;
    text-transform: none;
}

/* Find address button */

.dcc-button {
    flex-shrink: 0;
    min-height: 48px;
    padding: 10px 22px;
    border: 2px solid #8D2F88;
    border-radius: 0;
    background: #8D2F88;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.dcc-button:hover {
    border-color: #A648A1;
    background: #A648A1;
}

.dcc-button:focus {
    border-color: #351657;
    outline: 3px solid #ffdd00;
    outline-offset: 0;
}

.dcc-button:active {
    border-color: #351657;
    background: #351657;
}

.dcc-button:disabled {
    border-color: #777;
    background: #777;
    color: #fff;
    cursor: wait;
}

/* Lookup and error messages */

.dcc-message {
    min-height: 24px;
    margin: 12px 0;
    font-weight: 600;
    line-height: 1.5;
}

.dcc-message:empty {
    min-height: 0;
    margin: 0;
}

.dcc-message.dcc-error {
    padding: 10px 12px;
    border-left: 5px solid #b10e1e;
    background: #fdf2f3;
    color: #8a0b17;
}

/* Address selector */

.dcc-address-results {
    margin: 20px 0 24px;
}

.dcc-select-wrapper {
    position: relative;
    width: 100%;
}

.dcc-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    padding: 0 52px 0 14px;
    border: 2px solid #4b4b4b;
    border-radius: 0;
    background-color: #fff;
    color: #222;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, #555 50%),
        linear-gradient(135deg, #555 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 22px,
        calc(100% - 16px) 22px;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.dcc-select:hover {
    border-color: #8D2F88;
}

.dcc-select:focus {
    border-color: #A648A1;
    outline: 3px solid #ffdd00;
    outline-offset: 0;
}

.dcc-select:disabled {
    border-color: #aaa;
    background-color: #eee;
    color: #666;
    cursor: not-allowed;
}

/* Results container */

.dcc-location-results {
    margin-top: 24px;
}

.dcc-location-results[hidden] {
    display: none;
}

/* Current councils */

.dcc-current-councils {
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 1px solid #d5cadb;
    background: #fff;
}

.dcc-result-heading {
    margin: 0;
    padding: 20px 26px;
    background: #f1edf5;
    color: #351657;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.dcc-result-row {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin: 0;
    padding: 22px 26px;
    border-top: 1px solid #e6dfea;
}

.dcc-result-heading + .dcc-result-row {
    border-top: 0;
}

.dcc-result-label {
    color: #444;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

.dcc-result-value {
    color: #351657;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#dcc-parish-row[hidden] {
    display: none;
}

/* Transition */

.dcc-transition {
    margin: 36px 0;
    text-align: center;
}

.dcc-transition-arrow {
    color: #8D2F88;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.dcc-transition-text {
    margin-top: 10px;
    color: #5b3a58;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Future council */

.dcc-future-council {
    box-sizing: border-box;
    margin: 0;
    padding: 20px !important;
    border-left: 7px solid #8D2F88;
    background: #f1edf5;
}

.dcc-future-title {
    display: block;
    margin: 0 0 14px;
    padding: 0;
    color: #5b3a58;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-transform: uppercase;
}

.dcc-future-council-name {
    display: block;
    margin: 0;
    padding: 0;
    color: #351657;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* Prevent inherited heading margins */

.dcc-current-councils h2,
.dcc-future-council h2 {
    margin-top: 0;
}

/* Mobile */

@media (max-width: 600px) {
    .dcc-postcode-lookup {
        margin: 18px 0;
    }

    .dcc-search-row {
        display: block;
    }

    .dcc-input,
    .dcc-button {
        width: 100%;
    }

    .dcc-button {
        margin-top: 10px;
    }

    .dcc-result-heading {
        padding: 16px 18px;
    }

    .dcc-result-row {
        display: block;
        padding: 18px;
    }

    .dcc-result-label {
        margin-bottom: 5px;
    }

    .dcc-result-value {
        font-size: 1.1rem;
    }

    .dcc-transition {
        margin: 28px 0;
    }

    .dcc-transition-arrow {
        font-size: 2rem;
    }

    .dcc-future-council {
        padding: 20px 20px 24px !important;
    }

    .dcc-future-title {
        margin-bottom: 10px;
    }

    .dcc-future-council-name {
        font-size: 1.65rem;
    }
}

/* Reduced motion preference */

@media (prefers-reduced-motion: reduce) {
    .dcc-button {
        transition: none;
    }
}