* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    background-color: #f4f6fb;
    color: #1a1a1a;
}
.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #2f6cb7 0%, #2f6cb7 70%, #2a5da0 100%);
    color: #ffffff;
    padding: 2rem 1.5rem;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.logo-link {
    display: block;
}

.sidebar-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.sidebar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background-color: #ffffff;
    color: #2f6cb7;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
    text-align: center;
    width: 100%;
    max-width: 210px;
    white-space: normal;
    line-height: 1.35;
}

.sidebar-action:hover,
.sidebar-action:focus {
    background-color: #f0f4ff;
    transform: translateY(-1px);
}

.sidebar-action:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}

.sidebar h2 {
    margin: 0 0 1.5rem;
    font-size: 1.4rem;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-links a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background-color: rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a:focus {
    background-color: #ffffff;
    color: #2f6cb7;
    transform: translateX(4px);
}

.nav-links a.active {
    background-color: #ffffff;
    color: #2f6cb7;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

main {
    flex: 1;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-image {
    width: 100%;
    aspect-ratio: 7 / 2;
    min-height: 210px;
    border-radius: 18px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.hero-image-smaller {
    width: 100%;
    max-width: 100%;
    height: 250px;
    aspect-ratio: 7 / 2;
    border-radius: 18px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.activity-image {
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.logo {
    width: 100%;
    display: block;
    padding: 0rem 0rem;
    border-radius: 14px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border: none;
    border-radius: 999px;
    background-color: #ffffff;
    color: #2f6cb7;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    font-size: 1.125rem;
}

.menu-toggle:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}

.menu-toggle:hover {
    background-color: #f0f4ff;
    transform: translateY(-1px);
}

.content {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.content h1 {
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.content p {
    line-height: 1.6;
    margin: 0 0 1rem;
}

.content ul {
    padding-left: 1.2rem;
    margin: 0 0 1.25rem;
}

.button {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    border-radius: 10px;
    background-color: #2f6cb7;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.button:hover,
.button:focus {
    background-color: #254f82;
    transform: translateY(-1px);
}

form {
    display: grid;
    gap: 1.25rem;
    max-width: 520px;
}

form label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    gap: 0.4rem;
}

form input,
form textarea {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #cbd5f0;
    font-size: 1rem;
}

.alert {
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert.success {
    background-color: #e6f6ed;
    color: #196b3d;
}

.alert.error {
    background-color: #fde5e5;
    color: #912d2d;
}

footer {
    margin-top: auto;
    padding: 1.5rem 3rem;
    background-color: #ffffff;
    border-top: 1px solid #dbe2f5;
    color: #465375;
    font-size: 0.95rem;
}

/* Small desktop/large tablet - stack images to prevent awkward text wrapping */
@media (max-width: 1000px) {
    .activity-image {
        float: none !important;
        display: block;
        margin: 0 auto 1.5rem auto !important;
        max-width: 320px !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 1.5rem 1.25rem;
    }

    .sidebar-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
    }

    .logo-link {
        max-width: 190px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .sidebar-action {
        width: auto;
        max-width: none;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0.6rem;
        padding-top: 1rem;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        flex: 0 0 auto;
        text-align: left;
        transform: none;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        transform: none;
    }

    main {
        padding: 1.8rem 1.25rem;
    }

    .content {
        padding: 1.6rem 1.35rem;
        border-radius: 14px;
    }

    /* Make hero images full width on mobile */
    .hero-image-smaller {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 1.5rem;
    }

    /* Remove float and make activity images stack on mobile */
    .activity-image {
        float: none !important;
        display: block;
        margin: 0 auto 1.5rem auto !important;
        max-width: 280px !important;
        width: 100% !important;
    }

    form.extended-form {
        max-width: none;
        gap: 1.1rem;
    }

    form.extended-form fieldset {
        padding: 1.15rem 1.2rem;
    }
}

form.extended-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 960px;
}

form.extended-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

form.extended-form fieldset {
    border: 1px solid #dbe2f5;
    border-radius: 14px;
    padding: 1.5rem;
    background-color: #f9fbff;
}

form.extended-form legend {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

form.extended-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
}

form.extended-form .form-field {
    flex: 1 1 260px;
    min-width: 220px;
    max-width: 100%;
}

.form-field--address {
    flex: 2 1 380px;
}

.form-field--number {
    flex: 0 1 150px;
    max-width: 160px;
}

.form-field--date {
    flex: 0 1 240px;
    max-width: 240px;
}

form.extended-form .form-field input:not([type="radio"]):not([type="checkbox"]),
form.extended-form .form-field select,
form.extended-form .form-field textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #cbd5f0;
    font-size: 1rem;
}

.choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.choice-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.choice-group label input[type="radio"] {
    order: 0;
    margin: 0;
}

.checkbox-group {
    display: grid;
    gap: 0.45rem;
}

.checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.error-message {
    display: block;
    margin-top: 0.35rem;
    color: #912d2d;
    font-size: 0.95rem;
    font-weight: 500;
}

.summary-card {
    background-color: #f9fbff;
    border: 1px solid #dbe2f5;
    border-radius: 14px;
    padding: 1.75rem;
    margin-top: 1.5rem;
}

.summary-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.summary-list {
    display: grid;
    grid-template-columns: minmax(180px, 220px) 1fr;
    gap: 0.75rem 1.5rem;
    margin: 0;
}

.summary-list dt {
    font-weight: 600;
    color: #2f3d68;
}

.summary-list dd {
    margin: 0;
}

@media (max-width: 880px) {
    form.extended-form .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    form.extended-form .form-field,
    .form-field--address,
    .form-field--number,
    .form-field--date {
        flex: 1 1 100%;
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .content {
        padding: 1.05rem 1rem;
        border-radius: 12px;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    /* Adjust activity image for smaller screens */
    .activity-image {
        max-width: 240px !important;
        margin: 0 auto 1.25rem auto !important;
    }

    form.extended-form {
        gap: 0.85rem;
    }

    form.extended-form fieldset {
        padding: 0.95rem 1rem;
    }

    form.extended-form legend {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .choice-group {
        gap: 0.5rem 0.75rem;
    }

    .checkbox-group {
        gap: 0.3rem;
    }

    .summary-list {
        grid-template-columns: 1fr;
    }

    .summary-list dt {
        color: #1a1a1a;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 1.05rem;
    }

    .content h1 {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }

    .content p {
        margin-bottom: 0.85rem;
    }

    form.extended-form fieldset {
        padding: 0.8rem 0.85rem;
        border-radius: 12px;
    }

    form.extended-form .form-row {
        gap: 0.55rem;
    }

    form.extended-form .form-field {
        flex: 1 1 100%;
    }

    form.extended-form label,
    .field-label {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    form.extended-form .form-field input:not([type="radio"]):not([type="checkbox"]),
    form.extended-form .form-field select,
    form.extended-form .form-field textarea {
        padding: 0.6rem 0.65rem;
    }

    .choice-group label {
        font-size: 0.95rem;
    }

    .button {
        width: 100%;
        text-align: center;
    }
}
