/* Phase 1 Partner Expression of Interest form */

:root {
    --eoi-green: #2d5016;
    --eoi-green-dark: #1a3010;
    --eoi-gold: #c9a227;
    --eoi-bg: #f3f4f6;
    --eoi-border: #e5e7eb;
    --eoi-text: #374151;
    --eoi-muted: #6b7280;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body.eoi-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--eoi-bg);
    color: var(--eoi-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.eoi-header {
    background: var(--eoi-green);
    color: #fff;
    padding: 0.85rem 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.eoi-header-inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.eoi-back {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.eoi-back:hover {
    color: #fff;
}

.eoi-header-title {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.eoi-header-title strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
}

.eoi-header-title span {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.15rem;
}

.eoi-logo {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.eoi-main {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
}

.eoi-intro {
    background: #fff;
    border: 1px solid var(--eoi-border);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
    font-size: 0.925rem;
    color: var(--eoi-text);
}

.eoi-intro p {
    margin: 0;
}

.eoi-card {
    background: #fff;
    border: 1px solid var(--eoi-border);
    border-radius: 12px;
    padding: 1.35rem 1.35rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.eoi-progress {
    margin-bottom: 1.25rem;
}

.eoi-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    color: var(--eoi-muted);
}

.eoi-progress-label strong {
    color: #111827;
    font-size: 0.9375rem;
}

.eoi-progress-bar {
    height: 6px;
    background: #eef0f3;
    border-radius: 999px;
    overflow: hidden;
}

.eoi-progress-fill {
    height: 100%;
    background: var(--eoi-green);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.eoi-step-dots {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.65rem;
    flex-wrap: wrap;
}

.eoi-step-dot {
    font-size: 0.6875rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--eoi-muted);
}

.eoi-step-dot.active {
    background: rgba(45, 80, 22, 0.12);
    color: var(--eoi-green);
    font-weight: 600;
}

.eoi-step-dot.done {
    background: rgba(45, 80, 22, 0.08);
    color: var(--eoi-green-dark);
}

.eoi-step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.35rem;
}

.eoi-step-sub {
    font-size: 0.875rem;
    color: var(--eoi-muted);
    margin: 0 0 1.25rem;
}

.eoi-field {
    margin-bottom: 1rem;
}

.eoi-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.4rem;
}

.eoi-field label .req {
    color: #b45309;
}

.eoi-field input[type="text"],
.eoi-field input[type="email"],
.eoi-field input[type="tel"],
.eoi-field input[type="url"],
.eoi-field select,
.eoi-field textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--eoi-border);
    border-radius: 8px;
    font: inherit;
    font-size: 0.9375rem;
    color: #111827;
    background: #fff;
}

.eoi-field textarea {
    min-height: 110px;
    resize: vertical;
}

.eoi-field input:focus,
.eoi-field select:focus,
.eoi-field textarea:focus {
    outline: none;
    border-color: var(--eoi-green);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.12);
}

.eoi-hint {
    font-size: 0.75rem;
    color: var(--eoi-muted);
    margin-top: 0.35rem;
}

.eoi-word-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--eoi-muted);
    margin-top: 0.25rem;
}

.eoi-word-count.over {
    color: #b91c1c;
    font-weight: 600;
}

.eoi-grid-2 {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .eoi-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.eoi-check-grid {
    display: grid;
    gap: 0.45rem;
}

.eoi-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--eoi-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    background: #fafafa;
    transition: border-color 0.15s, background 0.15s;
}

.eoi-check-item:hover {
    border-color: #cbd5e1;
}

.eoi-check-item.selected {
    border-color: var(--eoi-green);
    background: rgba(45, 80, 22, 0.06);
}

.eoi-check-item input {
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--eoi-green);
}

.eoi-county-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.eoi-county-toolbar button {
    border: 1px solid var(--eoi-border);
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--eoi-text);
}

.eoi-county-toolbar button:hover {
    border-color: var(--eoi-green);
    color: var(--eoi-green);
}

.eoi-county-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.4rem;
    max-height: 220px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--eoi-border);
    border-radius: 8px;
    background: #fafafa;
}

.eoi-county-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
}

.eoi-county-item input {
    accent-color: var(--eoi-green);
}

.eoi-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.eoi-radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--eoi-border);
    border-radius: 999px;
    font-size: 0.875rem;
    cursor: pointer;
    background: #fafafa;
}

.eoi-radio-pill:has(input:checked) {
    border-color: var(--eoi-green);
    background: rgba(45, 80, 22, 0.08);
    color: var(--eoi-green-dark);
    font-weight: 600;
}

.eoi-radio-pill input {
    accent-color: var(--eoi-green);
}

.eoi-declaration {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem;
    border: 1px solid var(--eoi-border);
    border-radius: 8px;
    background: #fafafa;
    margin-bottom: 0.65rem;
    font-size: 0.875rem;
}

.eoi-declaration input {
    margin-top: 0.2rem;
    accent-color: var(--eoi-green);
}

.eoi-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--eoi-border);
}

.eoi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 1.15rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.eoi-btn-primary {
    background: var(--eoi-green);
    color: #fff;
}

.eoi-btn-primary:hover:not(:disabled) {
    background: var(--eoi-green-dark);
}

.eoi-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.eoi-btn-ghost {
    background: #fff;
    color: var(--eoi-text);
    border-color: var(--eoi-border);
}

.eoi-btn-ghost:hover {
    background: #f9fafb;
}

.eoi-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.eoi-success {
    text-align: center;
    padding: 2rem 1rem;
}

.eoi-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(45, 80, 22, 0.12);
    color: var(--eoi-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}

.eoi-success h2 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    color: #111827;
}

.eoi-success p {
    margin: 0 0 0.75rem;
    color: var(--eoi-text);
    font-size: 0.9375rem;
}

.eoi-ref {
    display: inline-block;
    padding: 0.5rem 0.85rem;
    background: #f3f4f6;
    border-radius: 8px;
    font-weight: 700;
    color: var(--eoi-green-dark);
    margin: 0.5rem 0 1rem;
}

.eoi-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

@media (max-width: 480px) {
    .eoi-actions {
        flex-direction: column;
    }

    .eoi-actions .eoi-btn {
        width: 100%;
    }
}
