/******************************************************************
 * GLOBAL / SHARED WEBSITE EVENT STYLES
 ******************************************************************/

.o_wevent_ticket_selector .text-muted.text-center.mb-0 {
    display: none !important;
}


.event-floating-register {
    display: none !important;
}


/******************************************************************
 * KUQIAN EVENT
 ******************************************************************/

.fsg-ku-qian-event .modal-body .row > div {
    padding-bottom: 1rem;
}


#fsg_lunch_note {
    display: block;
    width: 100%;
}


/******************************************************************
 * SHARED AIR DATEPICKER
 ******************************************************************/

.air-datepicker-global-container,
.air-datepicker {
    z-index: 2000 !important;
}


/******************************************************************
 * SHARED DATE PICKER OVERLAY
 *
 * Shared by every event using convertDate().
 ******************************************************************/

#fsg_global_datepicker_overlay,
#fsg_dob_calendar_overlay {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 16px;

    background:
        rgba(
            0,
            0,
            0,
            0.45
        );

    overflow-y: auto;
}


#fsg_global_datepicker_overlay.show,
#fsg_dob_calendar_overlay.show {

    display: flex;
}


/******************************************************************
 * SHARED DATE PICKER PANEL
 ******************************************************************/

.fsg-dob-calendar-panel {

    width: 100%;

    max-width: 420px;

    max-height:
        calc(
            100vh - 32px
        );

    background: white;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 10px 30px
        rgba(
            0,
            0,
            0,
            0.25
        );
}


/******************************************************************
 * SHARED DATE PICKER HEADER
 ******************************************************************/

.fsg-dob-calendar-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 16px;

    border-bottom:
        1px solid #ddd;
}


/******************************************************************
 * SHARED DATE PICKER CONTENT
 *
 * Do not depend on event-specific container IDs.
 *
 * Any content area inside the shared panel that is not the
 * header becomes the centered calendar body.
 ******************************************************************/

.fsg-dob-calendar-panel
> div:not(.fsg-dob-calendar-header) {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    padding: 16px;
}


/******************************************************************
 * SHARED AIR DATEPICKER INSIDE PANEL
 ******************************************************************/

.fsg-dob-calendar-panel .air-datepicker {

    position: static !important;

    width: 100%;

    max-width: 360px;

    margin-left: auto;

    margin-right: auto;

    border: 0;

    box-shadow: none;
}


/******************************************************************
 * SHARED INTERNAL DATE PICKER INPUT
 ******************************************************************/

.fsg-dob-picker-input {

    position: absolute;

    opacity: 0;

    pointer-events: none;

    width: 1px;

    height: 1px;
}


/******************************************************************
 * 流年 EVENT - RESTRUCTURED ATTENDEE FORM
 ******************************************************************/

.fsg-profile-event-form {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    padding-top: 8px;
}


/******************************************************************
 * FORM SECTIONS
 ******************************************************************/

.fsg-profile-event-form .fsg-form-section {
    width: 100%;
    margin-bottom: 42px;
}


.fsg-profile-event-form .fsg-form-section:last-child {
    margin-bottom: 16px;
}


/******************************************************************
 * SECTION HEADER
 ******************************************************************/

.fsg-profile-event-form .fsg-form-section-header {
    gap: 12px;
    margin-bottom: 28px;
}


.fsg-profile-event-form .fsg-form-section-title {
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #111;
    white-space: nowrap;
}


.fsg-profile-event-form .fsg-form-section-line {
    flex: 1;
    height: 2px;
    background: #1f1f1f;
    margin-top: 0.5rem;
}


/******************************************************************
 * SECTION BODY / GRID
 ******************************************************************/

.fsg-profile-event-form .fsg-form-section-body {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.4rem;

    margin-top: 0;
}


/******************************************************************
 * FIELD BLOCK
 ******************************************************************/

.fsg-profile-event-form .fsg-form-field {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;

    padding-bottom: 1rem !important;
}


/******************************************************************
 * FIELD LABEL
 ******************************************************************/

.fsg-profile-event-form .fsg-form-field-label {
    display: inline-block;
    width: auto;

    margin: 0;

    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;

    color: #111827;
}


/******************************************************************
 * REQUIRED MARKER
 ******************************************************************/

.fsg-profile-event-form .fsg-form-required {
    display: inline-block;
    width: auto;

    margin-left: 6px;

    font-size: 18px;
    line-height: 1.35;

    color: #111827;
}


/******************************************************************
 * FORM CONTROLS
 ******************************************************************/

.fsg-profile-event-form .fsg-form-field-control {
    flex: 0 0 100%;

    display: block;

    width: 100%;
    max-width: 100%;

    min-height: 48px;

    margin-top: 0.5rem;

    padding: 12px 16px;

    font-size: 17px;
    line-height: 1.35;

    color: #111827;

    border: 1px solid #d6d6d6;

    border-radius: 8px;

    background: #fff;

    box-shadow: none;
}


.fsg-profile-event-form .fsg-form-field-control:focus {
    border-color: #bfc3c8;
    box-shadow: none;
    outline: none;
}


.fsg-profile-event-form .fsg-form-field-control::placeholder {
    color: #8b95a5;
    opacity: 1;
}


/******************************************************************
 * REMOVE ORIGINAL CONTROL COLUMN WIDTHS
 ******************************************************************/

.fsg-profile-event-form
.fsg-form-field-control[class*="col-"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}


/******************************************************************
 * NORMAL TEXTAREA
 ******************************************************************/

.fsg-profile-event-form
textarea.fsg-form-field-control {
    min-height: 110px;
    resize: vertical;
}


/******************************************************************
 * SINGLE-LINE FIELDS
 *
 * Used by:
 * - Full Address
 * - Time of Birth
 * - Place of Birth
 ******************************************************************/

.fsg-profile-event-form
.fsg-form-singleline-control {
    min-height: 48px !important;
    height: 48px !important;

    resize: none !important;
    overflow: hidden;
}


/******************************************************************
 * DATE OF BIRTH
 ******************************************************************/

.fsg-profile-event-form
input[name$="-text_box-50"].fsg-form-field-control {
    min-height: 48px;
    height: 48px;
}


/******************************************************************
 * SELECT
 ******************************************************************/

.fsg-profile-event-form
select.fsg-form-field-control {
    min-height: 48px;
    height: 48px;

    padding-right: 40px;
}


/******************************************************************
 * HOME ADDRESS
 ******************************************************************/

.fsg-profile-event-form
textarea[name$="-text_box-49"].fsg-form-field-control {
    min-height: 48px !important;
    height: 48px !important;

    resize: none !important;
    overflow: hidden;
}


/******************************************************************
 * TIME OF BIRTH
 ******************************************************************/

.fsg-profile-event-form
textarea[name$="-text_box-41"].fsg-form-field-control {
    min-height: 48px !important;
    height: 48px !important;

    resize: none !important;
    overflow: hidden;
}


/******************************************************************
 * PLACE OF BIRTH
 ******************************************************************/

.fsg-profile-event-form
textarea[name$="-text_box-42"].fsg-form-field-control {
    min-height: 48px !important;
    height: 48px !important;

    resize: none !important;
    overflow: hidden;
}


/******************************************************************
 * EMPLOYMENT / ROLES / POSITION
 ******************************************************************/

.fsg-profile-event-form
textarea[name$="-text_box-45"].fsg-form-field-control {
    min-height: 80px;
}


/******************************************************************
 * ENQUIRY ABOUT
 ******************************************************************/

.fsg-profile-event-form
textarea[name$="-text_box-46"].fsg-form-field-control {
    min-height: 100px;
}


/******************************************************************
 * MODAL BODY SPACING
 ******************************************************************/

#modal_ticket_registration
.modal-body.o_wevent_registration_question_global {
    padding: 24px 28px 32px;
}


/******************************************************************
 * MOBILE
 ******************************************************************/

@media (
    max-width: 767.98px
) {

    .fsg-profile-event-form {
        max-width: 100%;
    }


    .fsg-profile-event-form .fsg-form-section {
        margin-bottom: 32px;
    }


    .fsg-profile-event-form .fsg-form-section-header {
        margin-bottom: 20px;
    }


    .fsg-profile-event-form .fsg-form-section-title {
        font-size: 17px;
    }


    .fsg-profile-event-form .fsg-form-field-label,
    .fsg-profile-event-form .fsg-form-required {
        font-size: 16px;
    }


    .fsg-profile-event-form .fsg-form-field-control {
        font-size: 16px;
    }


    .fsg-profile-event-form .fsg-form-section-body {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }


    #modal_ticket_registration
    .modal-body.o_wevent_registration_question_global {
        padding: 20px 20px 28px;
    }
}


/******************************************************************
 * 流年 - TERMS & CONDITIONS CHECKBOX
 ******************************************************************/

.fsg-profile-event-form
.fsg-agreement-field {
    width: 100%;

    margin-top: 8px;

    padding-top: 20px;

    padding-bottom: 20px !important;

    border-top: 1px solid #ddd;
}


/******************************************************************
 * HIDE ORIGINAL ODOO AGREEMENT UI
 ******************************************************************/

.fsg-profile-event-form
.fsg-agreement-original-label,

.fsg-profile-event-form
.fsg-agreement-original-select {
    display: none !important;
}


/*
 * Hide the original Odoo required "*" because we will
 * display it inline with the checkbox text instead.
 */
.fsg-profile-event-form
.fsg-agreement-field
> .fsg-form-required,

.fsg-profile-event-form
.fsg-agreement-field
> span {
    display: none !important;
}


/******************************************************************
 * CHECKBOX ROW
 ******************************************************************/

.fsg-profile-event-form
.fsg-agreement-checkbox {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    width: 100%;

    margin: 0;

    cursor: pointer;
}


/******************************************************************
 * CHECKBOX
 ******************************************************************/

.fsg-profile-event-form
.fsg-agreement-checkbox-input {
    flex: 0 0 auto;

    width: 20px;

    height: 20px;

    margin-top: 3px;

    cursor: pointer;
}


/******************************************************************
 * AGREEMENT TEXT
 ******************************************************************/

.fsg-profile-event-form
.fsg-agreement-checkbox-text {
    display: block;

    flex: 1;

    font-size: 17px;

    line-height: 1.5;

    color: #111827;
}


/*
 * Required indicator inline with agreement text.
 */
.fsg-profile-event-form
.fsg-agreement-checkbox-text::after {
    content: " *";

    font-weight: 600;

    color: #111827;
}


/******************************************************************
 * VALIDATION ERROR
 ******************************************************************/

.fsg-profile-event-form
.fsg-agreement-invalid
.fsg-agreement-checkbox {
    padding: 10px 12px;

    border: 1px solid #dc3545;

    border-radius: 8px;

    background: rgba(220, 53, 69, 0.04);
}


.fsg-profile-event-form
.fsg-agreement-invalid
.fsg-agreement-checkbox-text {
    font-weight: 500;
}


/******************************************************************
 * MOBILE
 ******************************************************************/

@media (
    max-width: 767.98px
) {

    .fsg-profile-event-form
    .fsg-agreement-field {
        padding-top: 16px;

        padding-bottom: 16px !important;
    }


    .fsg-profile-event-form
    .fsg-agreement-checkbox-text {
        font-size: 16px;
    }
}