/* Floating CTA Group (Single Page) */
.gls-floating-cta-group {
    position: fixed;
    right: 20px;
    bottom: 30px; /* Moved down slightly to avoid covering content */
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100000; /* Extremely high z-index to stay on top of everything */
}

@media (max-width: 768px) {
    .gls-floating-cta-group {
        right: 15px;
        bottom: 20px;
    }
    .gls-floating-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

.gls-floating-btn {
    width: 60px; /* Increased from 50px */
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px; /* Bigger icons */
    box-shadow: 0 6px 16px rgba(0,0,0,0.25); /* Stronger shadow */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.gls-floating-btn:hover {
    transform: translateY(-5px) scale(1.05); /* Lifts up on hover */
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.gls-btn-whatsapp { background: #25D366; }
.gls-btn-enroll { background: #007bff; }
.gls-btn-courses { background: #ffc107; color: #000 !important; }
.gls-btn-courses:hover { color: #000 !important; }

/* Course Card Icon Buttons */
.gls-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.gls-card-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    font-weight: 500;
}

/* Modal Styling Overrides */
.gls-enroll-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gls-enroll-modal .modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    border-radius: 12px 12px 0 0;
}

/* Compact Form Styling */
.gls-form-compact .form-group { margin-bottom: 0.75rem; position: relative; }

/* Floating Labels */
.gls-floating-label {
    position: relative;
    margin-bottom: 1rem;
    overflow: visible; /* Prevent label clipping */
}

.gls-floating-label input,
.gls-floating-label select,
.gls-floating-label textarea {
    height: calc(3rem + 2px);
    padding: 1.1rem 0.75rem 0.25rem;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    width: 100%;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

/* Custom arrow for select */
.gls-floating-label select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.gls-floating-label textarea {
    height: auto;
    min-height: 85px;
    padding-top: 1.2rem;
}

.gls-floating-label label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.9rem 0.75rem;
    pointer-events: none;
    transition: all 0.2s ease;
    color: #888;
    margin-bottom: 0;
    font-size: 0.95rem;
    white-space: nowrap;
}

.gls-floating-label input:focus ~ label,
.gls-floating-label input:not(:placeholder-shown) ~ label,
.gls-floating-label select:focus ~ label,
.gls-floating-label select:valid ~ label,
.gls-floating-label textarea:focus ~ label,
.gls-floating-label textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 0.75rem;
    color: #007bff;
    font-weight: 700;
    background: #fff;
    padding: 0 8px;
    height: auto;
    z-index: 10;
}

.gls-floating-label input:focus,
.gls-floating-label select:focus,
.gls-floating-label textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Loader Styles */
.gls-loader {
    width: 18px;
    height: 18px;
    border: 2px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: gls-rotation 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes gls-rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.gls-form-compact .bg-light { background-color: #f8f9fa !important; border-radius: 8px; }
.gls-form-compact .gap-2 { gap: 0.5rem; }
