/* ============================================
   STICKY APPLY NOW BUTTON
   ============================================ */

.sticky-apply-btn {
    position: fixed;
    right: -200px; /* Hidden by default */
    top: 50%;
    transform: translateY(-50%);
    background: #FFC107;
    color: #1a2332;
    padding: 15px 25px;
    border-radius: 5px 0 0 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    z-index: 9999;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.sticky-apply-btn.show {
    right: 0;
}

.sticky-apply-btn:hover {
    background: #FFD54F;
    color: #1a2332;
    transform: translateY(-50%) scale(1.05);
    text-decoration: none;
}

.sticky-btn-icon {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.sticky-apply-btn:hover .sticky-btn-icon {
    transform: translateX(5px);
}

/* Mobile responsive */
@media (max-width: 767px) {
    .sticky-apply-btn {
        right: -150px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .sticky-btn-text {
        font-size: 14px;
    }
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 3px solid #FFC107;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 20px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #1a2332;
    font-weight: bold;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #FFC107;
    color: #1a2332;
}

.cookie-btn-primary:hover {
    background: #FFD54F;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cookie-btn-secondary {
    background: transparent;
    color: #1a2332;
    border: 2px solid #1a2332;
}

.cookie-btn-secondary:hover {
    background: #f5f5f5;
}

/* Mobile responsive for cookie banner */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* ============================================
   COOKIE PREFERENCES MODAL
   ============================================ */

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-modal-content {
    background: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-modal-header {
    padding: 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #1a2332;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.cookie-modal-close:hover {
    color: #1a2332;
}

.cookie-modal-body {
    padding: 25px;
}

.cookie-modal-body > p {
    margin: 0 0 25px 0;
    color: #666;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.cookie-category h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #1a2332;
    font-weight: 600;
}

.cookie-category p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #FFC107;
}

input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.cookie-modal-footer .cookie-btn {
    min-width: 150px;
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
    .cookie-modal {
        padding: 10px;
    }
    
    .cookie-modal-content {
        max-height: 95vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-switch {
        align-self: flex-start;
    }
}

/* ============================================
   LOGO YELLOW SQUARE BACKGROUND
   ============================================ */

.logo {
    background-color: #ffea00 !important;
    padding: 15px !important;
    border-radius: 0 !important; /* Square corners */
    display: inline-block;
    box-sizing: border-box;
}

.logo-img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Ensure logo looks good on all screen sizes */
@media (max-width: 767px) {
    .logo {
        padding: 10px !important;
    }
}

/* Fix for sticky button to match theme yellow */
.sticky-apply-btn {
    background: #ffea00 !important;
}

.sticky-apply-btn:hover {
    background: #ffe54f !important;
}
