body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
    padding: 0 0 40px 0;
    background-color: #f4f4f6;
}

.site-header {
    background-color: #5D3610;
    color: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
    
.header-logo {
display: flex;
align-items: center;
text-decoration: none;
color: #fcecd2;
font-size: 28px;
font-weight: 900;
font-style: italic;
letter-spacing: -0.5px;
}

.header-logo .number {
    color: #ffb800;
    font-size: 34px;
    margin-left: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.header-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 25px;
}
.header-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.2s ease;
}
.header-nav a:hover {
    color: #ffb800;
}
.search-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}
.search-btn:hover {
    color: #ffb800;
}

.form-step {
    display: none; 
}
.form-step.active {
    display: block; 
}

.custom-input-wrapper {
    display: none; 
    margin-top: 10px;
    flex-direction: column;
}

.custom-input-wrapper input.error {
    border-color: #ff4d4d; 
}

.error-message {
    display: none; 
    background-color: #fce4e4; 
    color: #cc0000;
    padding: 8px 10px;
    font-size: 0.85em;
    border-radius: 4px;
    margin-top: 5px;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto; 
    gap: 50px;
    padding: 40px;
    background-color: #ffffff; 
    border-radius: 12px; 
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04); 
}

.info-section {
    flex: 1;
}
.info-section h1 {
    font-size: 2.8em;
    line-height: 1.1;
    margin-bottom: 20px;
}
.info-section p, .info-section ol {
    font-size: 1.05em;
    line-height: 1.6;
}
.info-section ol {
    padding-left: 20px;
}
.info-section .scale {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
}

.form-section {
    flex: 1;
    background-color: #fcecd2; 
    padding: 40px;
    border-radius: 12px;
}

/* Progress Bar */
.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-weight: bold;
    font-size: 0.9em;
}
.progress-bar-container {
    flex: 1;
    height: 8px;
    background-color: #f3d7a8;
    border-radius: 4px;
}
.progress-bar-fill {
    width: 0%; 
    height: 100%;
    background-color: #ffb800; 
    border-radius: 4px;
    transition: width 0.3s ease;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9em;
}
.required {
    color: red;
}
input[type="text"], 
input[type="number"], 
select,
textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95em;
    background-color: #fff;
    color: #555;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

select {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #9c6f44;
}

.question-text {
    font-weight: 600;
    margin-bottom: 12px;
    color: #444;
    line-height: 1.4;
}
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}
.radio-options label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: normal;
    cursor: pointer;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.2s ease;
}
.radio-options label:hover {
    background-color: #fcecd2;
    border-color: #e5b376;
}

input[type="radio"] {
    margin: 0;
    accent-color: #5e3b1f;
    transform: scale(1.2);
    cursor: pointer;
}

.readonly-display {
        padding: 12px;
        background-color: #f1f1f1; 
        border: 1px solid #dcdcdc;
        border-radius: 6px;
        font-weight: 600;
        color: #666;
        cursor: not-allowed;
}

.btn-submit {
    background-color: #5e3b1f; 
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
}
.btn-submit:hover {
    background-color: #4a2e18;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.button-group.right-only {
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .container { flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .btn-submit { justify-self: stretch; width: 100%; }
    .header-nav { display: none; }
}

.banner-wrapper {
    width: 100%;
    /* Set this to the EXACT hex code of your solid edges */
    background-color: #5D3610; 
    top: 0;
    z-index: 1000; 
}

.site-banner {
    width: 100%;
    /* Keep this as 'auto' so it scales properly */
    height: auto; 
    display: block;
    max-height: 250px; 
    /* Change object-fit to 'contain' so the image never gets cropped */
    object-fit: cover; 
    margin: 0 auto; /* Centers the image */
}