/* OCT Popup Module Styles */
.oct-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.oct-popup-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: octPopupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes octPopupSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(-100px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.oct-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #666666;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.oct-popup-close:hover {
    background: rgba(255, 255, 255, 1);
 
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.oct-popup-close span {
    line-height: 1;
}

.oct-popup-content {
    padding: 50px 40px 40px;
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.oct-popup-brand {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.oct-popup-logo {
    max-width: 180px;
    max-height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

.oct-popup-brand-name {
    font-size: 28px;
    font-weight: 800;
    color: #000000;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.oct-popup-brand-name::after {
    content: " | ";
    font-weight: 300;
    color: #666;
    margin: 0 10px;
}

.oct-popup-badge {
    background: #4CAF50;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 20px;
}

.oct-popup-title {
    font-size: 36px;
    font-weight: 900;
    color: #000000;
    margin: 0 0 20px 0;
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.oct-popup-subtitle {
    font-size: 16px;
    color: #666666;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

.oct-popup-preferences {
    margin: 25px 0;
    text-align: left;
}

.oct-popup-preferences-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 15px 0;
    text-align: center;
}

.oct-popup-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oct-popup-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.oct-popup-checkbox-label:hover {
    background-color: #f8f8f8;
}

.oct-popup-checkbox-label input[type="checkbox"] {
    margin: 0 12px 0 0;
    width: 18px;
    height: 18px;
    accent-color: #000000;
    cursor: pointer;
}

.oct-popup-checkbox-text {
    font-size: 14px;
    color: #333333;
    font-weight: 500;
}

.oct-popup-form {
    margin: 25px 0;
}

.oct-popup-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.oct-popup-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    color: #333333;
    background: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.oct-popup-input:focus {
    outline: none;
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.oct-popup-input::placeholder {
    color: #999999;
}

.oct-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
}

.oct-popup-btn {
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 60px;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oct-popup-btn-primary {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.oct-popup-btn-primary:hover {
    background: linear-gradient(135deg, #333333 0%, #000000 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.oct-popup-btn-link {
    background: transparent;
    color: #666666;
    text-decoration: underline;
    font-size: 16px;
    padding: 15px 0;
    min-height: auto;
    font-weight: 500;
}

.oct-popup-btn-link:hover {
    color: #000000;
    text-decoration: none;
    transform: translateY(-1px);
}

.oct-popup-legal {
    margin-top: 30px;
    font-size: 13px;
    color: #888888;
    line-height: 1.5;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.oct-popup-legal p {
    margin: 0 0 10px 0;
}

.oct-popup-legal a {
    color: #000000;
    text-decoration: underline;
    font-weight: 500;
}

.oct-popup-legal a:hover {
    color: #666666;
    text-decoration: none;
}

/* Background Image */
.oct-popup-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .oct-popup-overlay {
        padding: 15px;
    }
    
    .oct-popup-container {
        width: 100% !important;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .oct-popup-content {
        padding: 40px 25px 30px;
        min-height: 350px;
    }
    
    .oct-popup-brand {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .oct-popup-brand-name {
        font-size: 24px;
    }
    
    .oct-popup-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .oct-popup-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .oct-popup-actions {
        margin: 30px 0;
        gap: 15px;
    }
    
    .oct-popup-btn {
        padding: 16px 30px;
        font-size: 16px;
        min-height: 55px;
    }
    
    .oct-popup-checkboxes {
        gap: 10px;
    }
    
    .oct-popup-checkbox-label {
        padding: 8px 0;
    }
    
    .oct-popup-input {
        padding: 15px 18px;
        font-size: 16px;
    }
    
    .oct-popup-legal {
        font-size: 12px;
        margin-top: 25px;
        padding-top: 15px;
    }
}

@media (max-width: 480px) {
    .oct-popup-content {
        padding: 25px 15px 15px;
    }
    
    .oct-popup-title {
        font-size: 20px;
    }
    
    .oct-popup-brand-name {
        font-size: 20px;
    }
}

/* Loading State */
.oct-popup-loading .oct-popup-btn-primary {
    background: #666666;
    cursor: not-allowed;
}

.oct-popup-loading .oct-popup-btn-primary::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: octPopupSpin 1s linear infinite;
}

@keyframes octPopupSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Success State */
.oct-popup-success .oct-popup-content {
    padding: 60px 30px;
}

.oct-popup-success .oct-popup-title {
    color: #4CAF50;
    font-size: 28px;
}

.oct-popup-success .oct-popup-subtitle {
    color: #666666;
    font-size: 16px;
}
