/**
 * 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;
    }
}
