/**
 * CRM Modal - CSS Styles
 * 
 * Consolidated CSS for Dynamics 365 CRM form modals
 * - Font Awesome: Using version 4 (matches theme)
 * - Logo width: 220px
 * - Heading size: 2.5rem
 */

/* Modal backdrop */
.modal.show {
    background-color: rgba(0, 0, 0, .75);
}

/* Modal dialog - responsive width */
@media (min-width: 580px) {
    #liveRacingSubscribe .modal-dialog.modal-md {
        width: 520px;
        padding: 25px auto;
    }
}

/* Modal dialog base styles */
#liveRacingSubscribe .modal-dialog {
    border-radius: 0;
}

#liveRacingSubscribe .modal-dialog.modal-dialog-centered {
    display: flex;
    height: 100%;
    align-items: center;
}

#liveRacingSubscribe .modal-dialog .modal-header,
#liveRacingSubscribe .modal-dialog .modal-body,
#liveRacingSubscribe .modal-dialog .modal-content {
    border-radius: 0;
}

/* Modal header */
#liveRacingSubscribe .modal-dialog .modal-header {
    border-bottom: 0 !important;
    text-align: center;
}

/* Logo */
#liveRacingSubscribe .modal-dialog .modal-header .svg-woodbine-logo {
    max-width: 80%;
    width: 220px;
    margin: 0 auto;
    padding-top: 1rem;
}

/* Close button */
#liveRacingSubscribe .modal-header .close {
    width: 60px;
    position: absolute;
    top: 2.5rem;
    right: 1rem;
    font-size: 1.7rem;
}

/* Close button icon - Using Font Awesome 4 */
#liveRacingSubscribe .modal-header .close:after {
    content: '\f00d';
    font-size: 1.7rem;
    font-family: "FontAwesome";
    color: #888;
}

#liveRacingSubscribe .modal-header .close span[aria-hidden="true"] {
    display: none;
}

/* Modal body */
#liveRacingSubscribe .modal-dialog .modal-body {
    text-align: center;
}

/* Heading */
#liveRacingSubscribe .modal-dialog .modal-body h4 {
    font-size: 2.5rem;
    border: 0;
    padding-top: 0;
}

/* Grey text (terms/privacy links) */
#liveRacingSubscribe .grey-text {
    font-size: 13px;
    color: #666;
}

#liveRacingSubscribe .grey-text a {
    color: #222;
    font-weight: 500;
}

#liveRacingSubscribe .grey-text a:hover {
    text-decoration: underline;
    color: rgb(226, 18, 56);
}

@media only screen and (max-width: 580px) {
    #liveRacingSubscribe .grey-text a {
        text-decoration: none;
    }
}

/* Marketing form styles (for form inside modal/iframe) */
#liveRacingSubscribe .marketingForm {
    margin: 0 !important;
    font-family: Euclid !important;
    text-transform: lowercase !important;
}

#liveRacingSubscribe .marketingForm .ui-sortable {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

#liveRacingSubscribe .marketingForm span,
#liveRacingSubscribe .marketingForm input,
#liveRacingSubscribe .marketingForm label {
    font-family: Euclid !important;
    font-size: 16px !important;
    color: #333;
}

#liveRacingSubscribe .marketingForm div[data-editorblocktype="TextFormField"],
#liveRacingSubscribe #dataContainer div[data-editorblocktype="DateTimeFormField"],
#liveRacingSubscribe .marketingForm div[data-editorblocktype="DateTimeFormField"] {
    position: relative;
    display: inline-flex;
    width: 49.5%;
}

#liveRacingSubscribe .marketingForm div[data-editorblocktype="TextFormField"] label,
#liveRacingSubscribe .marketingForm div[data-editorblocktype="DateTimeFormField"] label {
    position: absolute;
    top: -.6rem;
    font-size: 12px !important;
    white-space: nowrap;
    text-transform: capitalize;
    margin-top: 0;
}

#liveRacingSubscribe .marketingForm input {
    box-shadow: none !important;
    border-radius: 4px !important;
}

#liveRacingSubscribe .marketingForm input[type="text"],
#liveRacingSubscribe .marketingForm input[type="email"],
#liveRacingSubscribe .marketingForm input[type="date"] {
    padding: 1rem !important;
    line-height: 1rem !important;
    height: auto !important;
    max-height: 100% !important;
    border: 1px solid #555 !important;
    margin: 1rem .5rem;
    margin-top: 1.3rem !important;
}

#liveRacingSubscribe .marketingForm input:focus-visible {
    border: 1px solid #000;
    box-shadow: 0 0 1px 3px rgba(0, 0, 0, .5);
}

#liveRacingSubscribe .marketingForm div[data-editorblocktype="Divider"] {
    display: none;
}

#liveRacingSubscribe .marketingForm .submitButton {
    border-radius: 4px;
    color: white !important;
    text-transform: uppercase;
}

#liveRacingSubscribe .marketingForm .submitButton > span {
    color: white !important;
    font-size: 2rem !important;
}

#liveRacingSubscribe .marketingForm span {
    padding-left: .5rem;
    display: inline-block;
}

#liveRacingSubscribe .marketingForm input[type="checkbox"] {
    margin-left: .5rem;
}

#liveRacingSubscribe .marketingForm .twooption_checkbox {
    margin-top: .5rem;
}

#liveRacingSubscribe .marketingForm .twooption_checkbox > div {
    align-items: flex-start;
}

#liveRacingSubscribe .marketingForm .twooption_checkbox > div input[type=checkbox] {
    margin-top: .25rem;
}

