/**
 * Newsletter Modal Styles
 * Standalone modal CSS - works without Bootstrap
 * Uses !important to override Bootstrap styles on legacy pages
 */

/* Modal backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal-backdrop.in {
    opacity: 1;
}

/* Modal container - hide all modals by default */
.modal.fade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.fade.in {
    display: block;
}

/* Body when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Modal dialog - centered */
#newsletter-popup .modal-dialog {
    position: relative;
    width: auto;
    max-width: 900px;
    margin: 30px auto;
    padding: 15px;
}

@media (min-width: 768px) {
    #newsletter-popup .modal-dialog {
        margin: 100px auto;
    }
}

/* Modal content box */
#newsletter-popup .modal-content {
    position: relative;
    background-color: #0033a1 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
    outline: 0;
}

/* Modal header */
#newsletter-popup .modal-header {
    padding: 15px !important;
    border-bottom: none !important;
    position: relative;
    min-height: 16.5px;
    background-color: transparent !important;
}

/* Close button */
#newsletter-popup .modal-header .close {
    position: absolute !important;
    right: 15px !important;
    top: 15px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    background: transparent !important;
    border: 0 !important;
    -webkit-appearance: none;
    appearance: none;
    z-index: 10;
    opacity: 1 !important;
    float: none !important;
}

#newsletter-popup .modal-header .close .button-wrapper {
    width: 30px;
    height: 30px;
    background-color: #ffda00 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#newsletter-popup .modal-header .close .button-character {
    color: #0033a1 !important;
    font-size: 24px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

#newsletter-popup .modal-header .close:hover .button-wrapper {
    background-color: #fff !important;
}

/* Modal body */
#newsletter-popup .modal-body {
    padding: 20px 30px 40px !important;
    color: #fff !important;
    background-color: #0033a1 !important;
}

/* Title */
#newsletter-popup .modal-body .title {
    font-size: 28px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
    text-transform: uppercase;
    color: #fff !important;
}

@media (min-width: 768px) {
    #newsletter-popup .modal-body .title {
        font-size: 36px !important;
    }
}

/* Description */
#newsletter-popup .modal-body .description {
    font-size: 14px !important;
    margin-bottom: 25px !important;
    line-height: 1.5 !important;
    color: #fff !important;
}

@media (min-width: 768px) {
    #newsletter-popup .modal-body .description {
        font-size: 16px !important;
    }
}

/* Form elements */
#newsletter-popup .form-group {
    margin-bottom: 15px;
}

#newsletter-popup .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: 15px;
}

#newsletter-popup .row > div {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 15px;
}

#newsletter-popup .col-xs-12 {
    width: 100%;
}

#newsletter-popup .col-sm-4 {
    width: 100%;
}

#newsletter-popup .col-md-3 {
    width: 100%;
}

#newsletter-popup .col-md-6 {
    width: 100%;
}

@media (min-width: 576px) {
    #newsletter-popup .col-sm-4 {
        width: 33.33333%;
    }
}

@media (min-width: 768px) {
    #newsletter-popup .col-md-3 {
        width: 25%;
    }
    #newsletter-popup .col-md-6 {
        width: 50%;
    }
}

/* Labels */
#newsletter-popup label {
    display: block;
    font-size: 12px !important;
    font-weight: bold !important;
    margin-bottom: 5px !important;
    text-transform: uppercase;
    color: #fff !important;
}

/* Inputs */
#newsletter-popup input[type="text"],
#newsletter-popup input[type="email"] {
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: #fff !important;
    color: #333 !important;
    box-shadow: none !important;
    height: auto !important;
}

#newsletter-popup input[type="text"]:focus,
#newsletter-popup input[type="email"]:focus {
    outline: 2px solid #ffda00 !important;
    box-shadow: none !important;
}

/* Select wrapper */
#newsletter-popup .select-wrapper {
    position: relative;
}

#newsletter-popup select {
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: #fff !important;
    color: #333 !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    height: auto !important;
    box-shadow: none !important;
}

#newsletter-popup .select-wrapper::after {
    content: "▼";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #333;
    pointer-events: none;
}

/* Checkbox */
#newsletter-popup input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin-right: 10px !important;
    vertical-align: middle;
    cursor: pointer;
}

#newsletter-popup input[type="checkbox"] + label,
#newsletter-popup label#privacy-newsletter-label {
    display: inline !important;
    font-size: 12px !important;
    font-weight: normal !important;
    text-transform: none !important;
    vertical-align: middle;
    cursor: pointer;
    color: #fff !important;
}

#newsletter-popup label#privacy-newsletter-label a,
#newsletter-popup #privacy-newsletter-label a {
    color: #ffda00 !important;
    text-decoration: underline !important;
}

#newsletter-popup label#privacy-newsletter-label a:hover,
#newsletter-popup #privacy-newsletter-label a:hover {
    color: #fff !important;
}

/* Submit button */
#newsletter-popup button.ceys,
#newsletter-popup button#subscribirme-button {
    width: calc(100% - 15px) !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-transform: uppercase;
    border: none !important;
    border-radius: 0 !important;
    background-color: #ffda00 !important;
    color: #0033a1 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

#newsletter-popup button.ceys:hover:not(.disabled),
#newsletter-popup button#subscribirme-button:hover:not(.disabled) {
    background-color: #fff !important;
    color: #0033a1 !important;
}

#newsletter-popup button.ceys.disabled,
#newsletter-popup button#subscribirme-button.disabled {
    background-color: #666 !important;
    color: #999 !important;
    cursor: not-allowed;
}

/* Newsletter Thanks Modal */
#newsletter-popup-thanks .modal-dialog {
    position: relative;
    width: auto;
    max-width: 500px;
    margin: 100px auto;
    padding: 15px;
}

#newsletter-popup-thanks .modal-content {
    position: relative;
    background-color: #0033a1 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
    outline: 0;
}

#newsletter-popup-thanks .modal-header {
    padding: 15px !important;
    border-bottom: none !important;
    position: relative;
    min-height: 16.5px;
    background-color: transparent !important;
}

#newsletter-popup-thanks .modal-header .close {
    position: absolute !important;
    right: 15px !important;
    top: 15px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    background: transparent !important;
    border: 0 !important;
    z-index: 10;
    opacity: 1 !important;
}

#newsletter-popup-thanks .modal-header .close .button-wrapper {
    width: 30px;
    height: 30px;
    background-color: #ffda00 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#newsletter-popup-thanks .modal-header .close .button-character {
    color: #0033a1 !important;
    font-size: 24px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

#newsletter-popup-thanks .modal-body {
    padding: 20px 30px 40px !important;
    color: #fff !important;
    text-align: center;
    background-color: #0033a1 !important;
}

#newsletter-popup-thanks .modal-body .description {
    font-size: 24px !important;
    font-weight: bold !important;
    color: #fff !important;
}
