/* =========================================================
   AGERSØ - SINGLE EVENT
   ========================================================= */


/* ---------------------------------------------------------
   Fjern theme/WordPress standard event-titel
   --------------------------------------------------------- */

.single-event .entry-header,
.single-event .page-header {
    display: none;
}


/* ---------------------------------------------------------
   EVENT WRAPPER
   --------------------------------------------------------- */

.agersoe-event {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 80px;

    color: #172f40;
}


/* =========================================================
   HERO
   ========================================================= */

.agersoe-event-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
    gap: 72px;
    align-items: center;

    margin-bottom: 40px !important;
}


/* ---------------------------------------------------------
   CATEGORY
   --------------------------------------------------------- */

.agersoe-event-category {
    display: inline-flex;
    align-items: center;

    margin-bottom: 16px;
    padding: 7px 12px;

    border-radius: 999px;

    background: #e9f2f5;
    color: #194b67;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.agersoe-event-category a {
    color: inherit !important;
    text-decoration: none !important;
}

.agersoe-event-category a:hover,
.agersoe-event-category a:focus-visible {
    text-decoration: underline !important;
    text-underline-offset: 0.15em;
}

.em.pixelbones .agersoe-event-category a {
    color: #194b67 !important;
}


/* ---------------------------------------------------------
   TITLE
   --------------------------------------------------------- */

.agersoe-event-title {
    margin: 0 0 30px;

    color: #17384d;

    font-size: clamp(38px, 4vw, 54px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
}


/* =========================================================
   META
   ========================================================= */

.agersoe-event-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 30px;
}


.agersoe-event-meta__item {
    display: flex;
    align-items: center;
    gap: 12px;
}


.agersoe-event-meta__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    border-radius: 10px;

    background: #eef4f6;

    font-size: 16px;
}


.agersoe-event-meta__item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}


.agersoe-event-meta__label {
    color: #758590;

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


.agersoe-event-meta__value {
    color: #263d4a;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}


.agersoe-event-meta__value a {
    color: #194b67;

    text-decoration: underline;
    text-underline-offset: 2px;
}


/* =========================================================
   CALENDAR
   ========================================================= */

.agersoe-event-calendar {
    margin-top: 30px;
}


.agersoe-event-calendar a,
.agersoe-event-calendar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 0 18px;

    border: 1px solid #d0dbe1;
    border-radius: 7px;

    background: #ffffff;
    color: #24495e;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}


.agersoe-event-calendar a:hover,
.agersoe-event-calendar button:hover {
    background: #f5f8f9;
    border-color: #b9cbd4;
}


/* =========================================================
   IMAGE
   ========================================================= */

.agersoe-event-hero__image {
    overflow: hidden;

    aspect-ratio: 4 / 3;

    border-radius: 16px;

    background: #eef2f3;
}


.agersoe-event-hero__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.agersoe-event-description {
    width: 100%;
    margin-bottom: 0;

    padding: 34px 36px !important;

    border: 1px solid #dbe4e9;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 6px 24px rgba(21, 56, 77, 0.05);
}


.agersoe-event-description h2 {
    margin: 0 0 18px;

    color: #17384d;

    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}


.agersoe-event-description__content {
    color: #344a57;

    font-size: 16px;
    line-height: 1.7;
}


.agersoe-event-description__content p {
    margin: 0 0 18px;
}


.agersoe-event-description__content p:last-child {
    margin-bottom: 0;
}


.agersoe-event-description__content img {
    max-width: 100%;
    height: auto;

    border-radius: 10px;
}


/* =========================================================
   BOOKING SECTION
   ========================================================= */

.agersoe-event-booking {
    width: 100%;
    margin: 24px auto 0 !important;

    overflow: hidden;

    border: 1px solid #dbe4e9;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 6px 24px rgba(21, 56, 77, 0.06);
}


/* ---------------------------------------------------------
   BOOKING HEADER
   --------------------------------------------------------- */

.agersoe-event-booking__header {
    padding: 26px 32px 22px;

    border-bottom: 1px solid #e2e9ed;

    background: #f7fafb;
}


.agersoe-event-booking__header h2 {
    margin: 0 0 6px;

    color: #17384d;

    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}


.agersoe-event-booking__header p {
    margin: 0;

    color: #677985;

    font-size: 14px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   BOOKING FORM WRAPPER
   --------------------------------------------------------- */

.agersoe-event-booking__form {
    padding: 28px 32px 32px;
}


/* =========================================================
   EVENTS MANAGER FORM
   ========================================================= */

.agersoe-event-booking form {
    margin: 0;
}


/* ---------------------------------------------------------
   LABELS
   --------------------------------------------------------- */

.agersoe-event-booking label {
    color: #293e4a;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   INPUTS
   --------------------------------------------------------- */

.agersoe-event-booking input[type="text"],
.agersoe-event-booking input[type="email"],
.agersoe-event-booking input[type="tel"],
.agersoe-event-booking input[type="number"],
.agersoe-event-booking select,
.agersoe-event-booking textarea {
    width: 100%;
    max-width: 100%;

    min-height: 46px;

    padding: 10px 12px;

    box-sizing: border-box;

    border: 1px solid #d5dfe4;
    border-radius: 7px;

    background: #ffffff;
    color: #243b48;

    font: inherit;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


.agersoe-event-booking textarea {
    min-height: 90px;

    resize: vertical;
}


.agersoe-event-booking input:focus,
.agersoe-event-booking select:focus,
.agersoe-event-booking textarea:focus {
    outline: none;

    border-color: #477b96;

    box-shadow:
        0 0 0 3px rgba(71, 123, 150, 0.1);
}


/* =========================================================
   EVENTS MANAGER SECTION HEADINGS
   ========================================================= */

.agersoe-event-booking h3 {
    margin: 30px 0 18px !important;

    padding: 0 0 9px !important;

    border: 0 !important;
    border-bottom: 1px solid #e3e9ec !important;

    background: transparent !important;

    color: #17384d !important;

    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3;
}


.agersoe-event-booking h3:first-child {
    margin-top: 0 !important;
}


/* =========================================================
   FORM SPACING
   ========================================================= */

.agersoe-event-booking p {
    margin-top: 0;
    margin-bottom: 20px;
}


/* =========================================================
   CHECKBOX
   ========================================================= */

.agersoe-event-booking input[type="checkbox"] {
    width: 17px;
    height: 17px;

    margin-right: 10px;

    vertical-align: middle;
}


/* Checkbox ligger inde i label */

.agersoe-event-booking label:has(input[type="checkbox"]) {
    display: inline-flex;
    align-items: flex-start;

    gap: 10px;

    line-height: 1.6;
}


/* Checkbox ligger før label */

.agersoe-event-booking input[type="checkbox"] + label {
    display: inline-block;

    margin-left: 8px;

    line-height: 1.6;
}


/* ---------------------------------------------------------
   Ekstra afstand omkring samtykkeområdet
   --------------------------------------------------------- */

.agersoe-event-booking .em-booking-form-details p:has(
    input[type="checkbox"]
) {
    margin-top: 24px;
    margin-bottom: 26px;
}


/* =========================================================
   BOOKING SUMMARY / TABLE
   ========================================================= */

.agersoe-event-booking table {
    width: 100%;

    margin-top: 4px;

    border-collapse: collapse;
}


.agersoe-event-booking td,
.agersoe-event-booking th {
    padding: 11px 0;

    border-bottom: 1px solid #e5eaed;

    text-align: left;
}


.agersoe-event-booking td:last-child,
.agersoe-event-booking th:last-child {
    text-align: right;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.agersoe-event-booking input[type="submit"],
.agersoe-event-booking button[type="submit"],
.agersoe-event-booking .em-booking-submit,
.agersoe-event-booking .agersoe-booking-submit {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 50px;

    margin-top: 24px;

    padding: 0 24px;

    border: 0 !important;
    border-radius: 7px !important;

    background: #194b67 !important;
    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    text-transform: none !important;

    letter-spacing: 0 !important;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        transform 0.15s ease;
}


.agersoe-event-booking input[type="submit"]:hover,
.agersoe-event-booking button[type="submit"]:hover,
.agersoe-event-booking .em-booking-submit:hover,
.agersoe-event-booking .agersoe-booking-submit:hover {
    background: #123c55 !important;
}


.agersoe-event-booking input[type="submit"]:active,
.agersoe-event-booking button[type="submit"]:active,
.agersoe-event-booking .em-booking-submit:active,
.agersoe-event-booking .agersoe-booking-submit:active {
    transform: translateY(1px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .agersoe-event {
        width: min(720px, calc(100% - 32px));

        padding-top: 30px;
        padding-bottom: 64px;
    }


    .agersoe-event-hero {
        grid-template-columns: 1fr;

        gap: 34px;

        margin-bottom: 32px !important;
    }


    .agersoe-event-hero__image {
        order: -1;

        aspect-ratio: 16 / 9;
    }


    .agersoe-event-description {
        padding: 28px 24px !important;
    }


    .agersoe-event-booking {
        width: 100%;

        margin-top: 24px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .agersoe-event {
        width: calc(100% - 24px);

        padding-top: 24px;
        padding-bottom: 50px;
    }


    .agersoe-event-title {
        font-size: 33px;
    }


    .agersoe-event-meta {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .agersoe-event-description {
        padding: 24px 20px !important;
    }


    .agersoe-event-description h2 {
        font-size: 26px;
    }


    .agersoe-event-booking__header,
    .agersoe-event-booking__form {
        padding-left: 20px;
        padding-right: 20px;
    }


    .agersoe-event-booking__header h2 {
        font-size: 26px;
    }

}