/* Apply Trigger Styles (Middle Floating Button) */
.apply-trigger {
    overflow: hidden; /* Mask the wave */
    z-index: 1; /* Ensure stacking context */
    width: 65px;
    height: 65px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 70, 184, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    animation: float-mild 3s ease-in-out infinite;
}

/* Rotating Gold Wave Effect (Visible Spinning) */
.apply-trigger::before {
    content: ''; position: absolute;
    top: -25%; left: 50%; transform: translateX(-50%); /* Centered */
    width: 150%; height: 150%; /* Sized to ensure coverage but keep gradient tight */
    background: conic-gradient(from 0deg, #0066ff, #0066ff, #e6eeff, #0066ff, #0066ff); /* Conic for visible spin */
    border-radius: 40%; /* Squircle for organic edge feel if it dips */
    transition: all 0.8s ease;
    z-index: -1;
    animation: wave-spin 4s linear infinite; /* Faster spin for small size */
}

.apply-trigger:hover::before {
    top: -25%; /* Stay centered */
}

@keyframes wave-spin {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

.apply-trigger i { font-size: 24px; margin-bottom: -2px; color: #3C1E1E; }
.trigger-label { font-size: 10px; font-weight: 800; letter-spacing: -0.5px; margin-top: 2px; color: #3C1E1E; }

.apply-trigger:hover {
    transform: scale(1.1) translateY(-5px);
    background: var(--accent-color); /* Fallback */
    box-shadow: 0 12px 35px rgba(253, 185, 49, 0.4); /* Gold Glow */
    animation-play-state: paused;
}

/* Mild Floating Animation */
@keyframes float-mild {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); } /* Less movement than cta-float (-10px) */
}


/* Nav Button Styling */
.apply-nav-btn {
    background: var(--accent-color);
    color: var(--secondary-color) !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 800;
    margin-left: 10px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.apply-nav-btn:hover {
    background: #fff !important;
    color: var(--primary-color) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5) !important;
}

.daonpay-header.scrolled .apply-nav-btn {
    box-shadow: 0 4px 15px rgba(0, 70, 184, 0.2);
}

/* Mobile Responsiveness for Apply Trigger */
@media (max-width: 480px) {
    .apply-trigger {
        width: 55px !important;
        height: 55px !important;
    }
    .apply-trigger i { font-size: 20px; }
    .trigger-label { font-size: 9px; }
}
