/**
 * CTA Overlay Styles
 * Extracted from app.min.css for gate pages
 * Version: 1.0
 * 
 * Contains styles for:
 * - Contact overlay (#main-overlay .contact-overlay, .contact-box, .contact-event)
 * - Poll overlay (#main-overlay .poll-overlay, .poll-box)
 * - Message overlay (#main-overlay .custom-message)
 * - Image overlay (.custom-message.custom-bg)
 * - Newsletter overlay (uses .contact-box)
 * - Coupon overlay (uses .contact-box)
 * - Animations (showup, showdown)
 */

/* ==========================================================================
   Contact Box (used by Contact, Newsletter, Coupon overlays)
   ========================================================================== */
.contact-box {
    padding: 15px;
    margin: 10px;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}
.contact-box .contact-label {
    font-size: 22px !important;
    font-weight: 700;
    color: #000;
}
.contact-box .contact-description {
    color: #000;
    opacity: 0.9;
    margin: 15px 0 !important;
}
.contact-box .form-group {
    margin-top: 20px;
}
.contact-box .form-group .control-label {
    color: #000;
}
.contact-box .form-group textarea {
    color: #000;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}
.contact-box .form-group input {
    color: #000;
    border-color: rgba(0, 0, 0, 0.2);
    padding: 5px 8px;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}
.contact-box button {
    background: #000;
    color: #fff;
    border: 0;
    padding: 5px 15px;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}

/* ==========================================================================
   Poll Box
   ========================================================================== */
.poll-box {
    padding: 15px;
    margin: 10px;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}
.poll-box .poll-question {
    font-size: 18px !important;
    font-weight: 700;
    color: #000;
}
.poll-box ol.poll-answers {
    padding: 0;
    margin: 10px 0;
}
.poll-box ol.poll-answers > li {
    list-style: none;
    border: 0 !important;
    color: #000;
    opacity: 0.95;
    padding: 10px 0;
    font-size: 1.1em !important;
    font-weight: 700;
}
.poll-box ol.poll-answers > li div {
    margin-right: 5px;
}
.poll-box button {
    background: #000;
    color: #fff;
    border: 0;
    padding: 5px 15px;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}

/* ==========================================================================
   Custom Overlay (standalone - for preview)
   ========================================================================== */
.custom-overlay {
    overflow: hidden;
}
.custom-overlay .custom-message {
    position: relative;
    margin: 10px;
    background-color: #0067F4;
    color: #fff;
    padding: 15px 35px 15px 15px;
    max-width: 320px;
    overflow: hidden;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}
.custom-overlay .custom-message .custom-label {
    position: absolute;
    background-color: #fff;
    top: 13px;
    right: -20px;
    color: #000;
    padding: 0 20px;
    font-size: 11px;
    font-weight: 700;
    width: 75px;
    height: 15px;
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}
.custom-overlay .custom-message p {
    margin: 0 !important;
}
.custom-overlay .custom-message .custom-img {
    float: left;
    margin-right: 10px;
}
.custom-overlay .custom-message .custom-img img {
    max-height: 50px;
    max-width: 50px;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}
.custom-overlay .custom-message .custom-text {
    display: block;
    color: #fff;
}
.custom-overlay .custom-message .btn {
    background-color: #fff;
    font-weight: 700;
    margin-top: 5px;
}
.custom-overlay .custom-message .btn:hover {
    color: #000;
}

/* ==========================================================================
   Main Overlay Container (injected on destination page)
   ========================================================================== */
#main-overlay {
    position: relative;
}
#main-overlay #site {
    position: absolute;
    z-index: 0;
}
#main-overlay .clickable {
    cursor: pointer;
}

/* Custom Message (Message & Image overlays) */
#main-overlay .custom-message.custom-bg {
    background-size: cover;
}
#main-overlay .custom-message {
    z-index: 99999;
    bottom: -500px;
    position: fixed;
    margin: 10px;
    background-color: #0067F4;
    color: #fff;
    padding: 15px 35px 15px 15px;
    max-width: 320px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

/* Position variants */
#main-overlay .custom-message.tl {
    top: 0;
    left: 0;
    bottom: auto;
    transform: translatey(10px);
    animation: showdown 1s ease-in;
}
#main-overlay .custom-message.tr {
    top: 0;
    right: 0;
    bottom: auto;
    transform: translatey(10px);
    animation: showdown 1s ease-in;
}
#main-overlay .custom-message.br {
    bottom: 0;
    right: 0;
    transform: translatey(-10px);
    animation: showup 1s ease-in;
}
#main-overlay .custom-message.bl {
    bottom: 0;
    left: 0;
    transform: translatey(-10px);
    animation: showup 1s ease-in;
}
#main-overlay .custom-message.bc {
    bottom: 0;
    left: 38%;
    transform: translatey(-10px);
    animation: showup 1s ease-in;
}

/* Custom message elements */
#main-overlay .custom-message .custom-label {
    position: absolute;
    background-color: #fff;
    top: 9px;
    right: -21px;
    color: #000;
    padding: 0 20px;
    font-size: 11px !important;
    font-weight: 700;
    width: 88px;
    text-align: center;
    height: 24px;
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}
#main-overlay .custom-message a.remove {
    color: #fff;
    position: absolute;
    bottom: 0;
    right: 3px;
}
#main-overlay .custom-message p {
    margin: 0 !important;
}
#main-overlay .custom-message .custom-img {
    float: left;
    margin-right: 10px;
}
#main-overlay .custom-message .custom-img img {
    max-height: 50px;
    max-width: 50px;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}
#main-overlay .custom-message .custom-text {
    display: block;
    color: #fff;
}
#main-overlay .custom-message .btn {
    background-color: #fff;
    font-weight: 700;
    margin-top: 5px;
}
#main-overlay .custom-message .btn:hover {
    color: #000;
}

/* ==========================================================================
   Contact Overlay (floating button + form)
   ========================================================================== */
#main-overlay .contact-overlay {
    position: fixed;
    z-index: 9999;
    min-width: 100px;
}
#main-overlay .contact-overlay.br {
    bottom: 10px;
    right: 15px;
    transform: translatey(-10px);
    animation: showup 1s ease-in;
}
#main-overlay .contact-overlay.bl {
    bottom: 10px;
    left: 10px;
    transform: translatey(-10px);
    animation: showup 1s ease-in;
}

/* Contact event button */
#main-overlay .contact-event {
    background: #fff;
    color: #000;
    padding: 8px;
    width: auto;
    display: block;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
}
#main-overlay .contact-event i {
    background: #000;
    color: #fff;
    padding: 5px 6px;
    border-radius: 20px;
    margin-right: 5px;
}
#main-overlay .contact-event i.success {
    background: #82e26f !important;
}

/* Contact box in overlay */
#main-overlay .contact-box {
    width: 320px;
    max-width: 450px;
    position: relative;
}
#main-overlay .contact-box a.contact-close {
    position: absolute;
    right: 6px;
    top: 6px;
    color: #000;
    opacity: 0.4;
}
#main-overlay .contact-box a.contact-close:hover {
    opacity: 0.6;
}

/* ==========================================================================
   Poll Overlay
   ========================================================================== */
#main-overlay .poll-overlay {
    position: fixed;
    z-index: 9999;
}
#main-overlay .poll-overlay.br {
    bottom: 10px;
    right: 15px;
    transform: translatey(-10px);
    animation: showup 1s ease-in;
}
#main-overlay .poll-overlay.bl {
    bottom: 10px;
    left: 10px;
    transform: translatey(-10px);
    animation: showup 1s ease-in;
}
#main-overlay .poll-overlay .poll-box {
    width: 320px;
    position: relative;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes showdown {
    0% {
        transform: translatey(-300px);
    }
    100% {
        transform: translatey(10px);
    }
}
@keyframes showup {
    0% {
        transform: translatey(300px);
    }
    100% {
        transform: translatey(-10px);
    }
}

/* ==========================================================================
   Utility Classes (needed by overlays)
   ========================================================================== */
.ml-auto, .ms-auto {
    margin-left: auto !important;
}
.mr-auto, .me-auto {
    margin-right: auto !important;
}
.right-4, .end-4 {
    right: 15px;
}
.top-4 {
    top: 15px;
}

/* Custom text helper */
.custom-text {
    display: block;
}

/* ==========================================================================
   Form Elements (basic styling for overlay forms)
   ========================================================================== */
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.form-group {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Button Styles (basic for overlay buttons)
   ========================================================================== */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover {
    text-decoration: none;
}
.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}
.btn-primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}
.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   Flexbox Utilities (used by overlay layouts)
   ========================================================================== */
.d-flex {
    display: flex !important;
}
.d-block {
    display: block !important;
}
.d-none {
    display: none !important;
}
.align-items-center {
    align-items: center !important;
}
.flex-grow-1 {
    flex-grow: 1 !important;
}

/* ==========================================================================
   Spacing Utilities
   ========================================================================== */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }

/* ==========================================================================
   Border & Background Utilities
   ========================================================================== */
.border { border: 1px solid #dee2e6 !important; }
.rounded { border-radius: 0.25rem !important; }
.bg-white { background-color: #fff !important; }

/* ==========================================================================
   Position Utilities
   ========================================================================== */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.bottom-0 { bottom: 0 !important; }

/* ==========================================================================
   Width Utilities
   ========================================================================== */
.w-100 { width: 100% !important; }
.w-50 { width: 50% !important; }
