/**
 * Register Bar (Bottom Bar) Styles
 */

 .mivida-register-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a; /* Chic dark background */
    color: #ffffff;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mivida-register-bar.is-visible {
    transform: translateY(0);
}

.mivida-rb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (min-width: 768px) {
    .mivida-rb-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 40px;
    }
}

/* Content Area */
.mivida-rb-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

@media (min-width: 1024px) {
    .mivida-rb-content {
        flex-direction: row;
        gap: 32px;
        text-align: left;
    }
}

.mivida-rb-message {
    margin: 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

/* Coupon Wrapper */
.mivida-rb-coupon-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px dashed rgba(186, 158, 130, 0.5); /* Gold dashed border */
}

.mivida-rb-coupon-label {
    font-size: 13px;
    color: #cccccc;
}

.mivida-rb-coupon-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #BA9E82;
    font-family: monospace;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.2s ease;
}

.mivida-rb-coupon-btn:hover {
    color: #ffffff;
}

.mivida-rb-copy-feedback {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #1a1a1a;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: sans-serif;
    font-weight: 500;
    letter-spacing: normal;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mivida-rb-copy-feedback::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

.mivida-rb-coupon-btn.is-copied .mivida-rb-copy-feedback {
    opacity: 1;
    visibility: visible;
    top: -35px;
}

/* Actions Area */
.mivida-rb-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mivida-rb-button {
    background-color: #BA9E82; /* Gold */
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.mivida-rb-button:hover {
    background-color: #a48a70;
    color: #ffffff;
}

.mivida-rb-close {
    background: transparent;
    border: none;
    color: #888888;
    padding: 8px;
    margin: -8px; /* enlarge click area */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.mivida-rb-close:hover {
    color: #ffffff;
}

/* =========================================
   Registration Modal Styles
   ========================================= */

.mivida-register-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mivida-register-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.mivida-register-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.mivida-register-modal-content {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    z-index: 1;
    transform: translateY(20px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333333;
}

.mivida-register-modal.is-open .mivida-register-modal-content {
    transform: translateY(0) scale(1);
}

.mivida-register-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #999999;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.mivida-register-modal-close:hover {
    background-color: #f5f5f5;
    color: #1a1a1a;
}

.mivida-register-modal-body {
    padding: 40px 30px;
}

/* Restyle some form elements specifically for the modal */
.mivida-register-modal-body .mivida-register-title {
    margin-top: 0;
    font-size: 24px;
    text-align: center;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.mivida-register-modal-body .mivida-reg-submit {
    width: 100%;
    margin-top: 15px;
}
